progress icon indicating copy to clipboard operation
progress copied to clipboard

Feature proposal: dirty memory not written on disk

Open k-bx opened this issue 7 years ago • 6 comments

I just ran a dd command, and progress was showing the progress, but then it finished, but running sync to ensure data is written fully just hanged. Turns our there's more than a gigabyte left to write on the USB drive and it's moving slowly. Progress can be seen by looking at /proc/meminfo in the "Dirty" column.

I think it would be a nice addition to the progress utility to show a progress of that thing somehow.

k-bx avatar Aug 28 '18 21:08 k-bx

I kind of imagine this as adding support for sync; I would also love that feature. :)

HalosGhost avatar Oct 31 '20 23:10 HalosGhost

Anyone knows if this information is also available for MacOS X?

Xfennec avatar Nov 02 '20 08:11 Xfennec

I don't actually. But my spouse has a macbook pro; if you can tell me where I might look, I can try to investigate.

HalosGhost avatar Nov 02 '20 23:11 HalosGhost

Perhaps @BestPig have a clue about that? He's the mind behind MacOS X's port ;)

Xfennec avatar Nov 03 '20 08:11 Xfennec

I didn't found any information about Dirty or Writeback buffer information for OS X. But even for Linux, I'm not sure that it's a good idea to monitor that.

There is many buffer to watch Dirty, WriteBack, WriteBackTmp, maybe others ? And it doesn't give you information about the process you are monitoring, it can be writeback for your harddrive and you are monitoring a cp on an usb key. And Dirty memory will probably never go to 0 until a sync is request.

BestPig avatar Nov 07 '20 17:11 BestPig

I think I'd love a command-line option to enable watching it. The only reason I'm interested is actually to monitor sync itself. :)

HalosGhost avatar Nov 07 '20 20:11 HalosGhost