mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* how to check how much data left to sync to disk at umount?
@ 2015-09-07  5:29 Jeff Chua
  2015-09-17  1:50 ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Chua @ 2015-09-07  5:29 UTC (permalink / raw)
  To: lkml

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?

Thanks,
Jeff.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to check how much data left to sync to disk at umount?
  2015-09-07  5:29 how to check how much data left to sync to disk at umount? Jeff Chua
@ 2015-09-17  1:50 ` Dave Chinner
  2015-09-18 11:36   ` Jeff Chua
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Chinner @ 2015-09-17  1:50 UTC (permalink / raw)
  To: Jeff Chua; +Cc: lkml

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to check how much data left to sync to disk at umount?
  2015-09-17  1:50 ` Dave Chinner
@ 2015-09-18 11:36   ` Jeff Chua
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Chua @ 2015-09-18 11:36 UTC (permalink / raw)
  To: Dave Chinner; +Cc: lkml

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-18 11:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-07  5:29 how to check how much data left to sync to disk at umount? Jeff Chua
2015-09-17  1:50 ` Dave Chinner
2015-09-18 11:36   ` Jeff Chua

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®