Feature proposal: dirty memory not written on disk
k-bx opened this issue · 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.
I kind of imagine this as adding support for sync
; I would also love that feature. :)
Anyone knows if this information is also available for MacOS X?
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.
Perhaps @BestPig have a clue about that? He's the mind behind MacOS X's port ;)
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.
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. :)