Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1227787

Re: how to check how much data left to sync to disk at umount?

Path csiph.com!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod
From Jeff Chua <jeff.chua.linux@gmail.com>
Newsgroups linux.kernel
Subject Re: how to check how much data left to sync to disk at umount?
Date Fri, 18 Sep 2015 13:40:01 +0200
Message-ID <qa2bf-1mt-3@gated-at.bofh.it> (permalink)
References <q5XjQ-4JR-11@gated-at.bofh.it> <q9wEq-5yg-5@gated-at.bofh.it>
X-Original-To Dave Chinner <david@fromorbit.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AziyyaPk0jxx9kT7OOOEQLiDziHq/5v/5qpygPsDzM0=; b=G+l2d5j8S3rM/W4g0xtKKKk85NZFUx8s1BddB7t8nBpde3NvYliyczSOewl9bUEO5C /6QS+izA2E7KVQQR0cG2SPhcsaYTS6pv/t7fLaaVlsijqtpyYX2FHWk2YSjiQs+K4PSM 8oLex7SCh39yEYx2QlBsM6OWO+2MNrpCG+1ZUhUzentr+Pi9YtaPvrnhDiGN55XgPacH FvH921pKgs6pjcYhRLfUJr4rJxaojigheR8FWnkpXaE/hkD0yHUMDTR6WJmVwV8HvqxF rqxlWSMhKQdJmvPQry03xUxKVnmGLOyBDLtN4TxGOtp9jDn9sLAYQBug+90trMkQ7jpj +jEg==
MIME-Version 1.0
X-Received by 10.182.96.168 with SMTP id dt8mr3102097obb.36.1442576166886; Fri, 18 Sep 2015 04:36:06 -0700 (PDT)
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 19
Organization linux.* mail to news gateway
X-Original-Cc lkml <linux-kernel@vger.kernel.org>
X-Original-Date Fri, 18 Sep 2015 19:36:06 +0800
X-Original-Message-ID <CAAJw_ZvJEx00psiGOk1_2WtUVGgztiap-p0uqYK4vu8Qz2O46w@mail.gmail.com>
X-Original-References <CAAJw_ZvgSrKFG4cWL++jLROoNm7R=w7s8m6u2D2KMiXJtqg2=Q@mail.gmail.com> <20150917015052.GY26895@dastard>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1227787

Show key headers only | View raw


On Thu, Sep 17, 2015 at 9:50 AM, Dave Chinner <david@fromorbit.com> wrote:
> On Mon, Sep 07, 2015 at 01:29:33PM +0800, Jeff Chua wrote:
>> When umount a slow device such as an SD card, the command will take a
>> while to run depending on how much data is left to write to the
>> device. Is there way to check how much data is remaining waiting to
>> write to the device?
>
> $ grep "Dirty\|Writeback" /proc/meminfo
>
> And infer from that.

It be a big challenge if the SD write is not the only disk activity!

Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: how to check how much data left to sync to disk at umount? Dave Chinner <david@fromorbit.com> - 2015-09-17 04:00 +0200
  Re: how to check how much data left to sync to disk at umount? Jeff Chua <jeff.chua.linux@gmail.com> - 2015-09-18 13:40 +0200

csiph-web