From: Dave Chinner <david@fromorbit.com>
To: Jeff Chua <jeff.chua.linux@gmail.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: how to check how much data left to sync to disk at umount?
Date: Thu, 17 Sep 2015 11:50:52 +1000 [thread overview]
Message-ID: <20150917015052.GY26895@dastard> (raw)
In-Reply-To: <CAAJw_ZvgSrKFG4cWL++jLROoNm7R=w7s8m6u2D2KMiXJtqg2=Q@mail.gmail.com>
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.
-Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2015-09-17 1:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-07 5:29 Jeff Chua
2015-09-17 1:50 ` Dave Chinner [this message]
2015-09-18 11:36 ` Jeff Chua
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150917015052.GY26895@dastard \
--to=david@fromorbit.com \
--cc=jeff.chua.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®