Sample Header Ad - 728x90

How can I estimate the whole time of a write process including sync?

0 votes
1 answer
671 views
Progress and estimated time to write without and with sync --- I have found no tool (or straightforward method) that will include flushing the buffers when showing the progress and estimating the estimated time for the whole write process, ETA (Estimated Time of Arrival). - pv can show the time for the progress as seen by the operating system, but if the target drive is slow and there is a lot of RAM, it shows only the time until the data are written to a buffer. This time can be a small fraction of the the real time until the buffers are flushed. - dd writes a final report about amount of data used time and transfer rate. It can also be made to write 'progress' reports. It used to give a much better estimate than pv, but nowadays the USB drives and memory cards are still very slow, while the other processes are fast and the available memory for buffers big. So dd will also finish long before the buffers are flushed. - I can 'time' the write process including sync with the time command time ( write command; sync ) and it will give me the real time used which is useful, but only after it has finished. It does not show the progress and does not estimate the total remaining time. - I can run iotop to show read and write processes and how fast things are read and written, but it does not estimate the remaining time. How to show progress and estimated time for the *whole* write process? --- How can I show progress and estimated time for the whole write process, ETA (Estimated Time of Arrival), including flushing the buffers with sync? Link to related question --- - https://unix.stackexchange.com/questions/554237/understanding-sync-command-operations-in-linux#554237
Asked by sudodus (6666 rep)
Nov 26, 2019, 05:52 PM
Last activity: Aug 2, 2022, 11:17 AM