src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md |
Sync With Progress
Like title says, it just executes sync
command and every second displays amount of 'Dirty' and 'Writeback' memory from /proc/meminfo
Why?
Before I unmount and remove an external device, I like to run sync
before so that I know it's all nicely written onto the drive.
However, when I'm using slower devices, sync can take a while, and I'd just like to have some more information about the progress.
So I made this.
Todo
- ETA
- That's basically it
Limitations
Essentialy it only accounts for amount of dirty memory and memory in the writeback (memory currently being written), it can't account
for stuff like hardware still writing to physical medium, etc. For more information about this topic check out what sync
does, this
is just small wrapper for displaying 2 pieces of information which is usually enough to tell when will sync
be done.