Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you syncfs every reasonable-unit-of-time, you can get a progress bar.


Not always. If you're reading from a SSD and writing to a slow USB 2.0 flash drive, you could end up enqueuing in one second a volume of writes that will take the USB drive tens of seconds to sync(), leading to a very unresponsive progress bar. You almost have to do a TCP-like ramp up of block sizes until you discover where the bottleneck is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: