Xfennec / progress

Linux tool to show progress for cp, mv, dd, ... (formerly known as cv)
GNU General Public License v3.0
8.55k stars 313 forks source link

Feature proposal: dirty memory not written on disk #107

Open k-bx opened 6 years ago

k-bx commented 6 years ago

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.

HalosGhost commented 3 years ago

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

Xfennec commented 3 years ago

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

HalosGhost commented 3 years ago

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.

Xfennec commented 3 years ago

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

BestPig commented 3 years ago

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.

HalosGhost commented 3 years ago

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. :)