8000 dd: status=progress should rewrite output once per second but rate is much faster · Issue #3073 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dd: status=progress should rewrite output once per second but rate is much faster #3073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jfinkels opened this issue Feb 5, 2022 · 1 comment
Labels

Comments

@jfinkels
Copy link
Collaborator
jfinkels commented Feb 5, 2022

This is hard to describe, so I encourage you to try running this command on your own:

GNU dd

$ timeout 5 dd status=progress < /dev/zero > /dev/null
5767469056 bytes (5.8 GB, 5.4 GiB) copied, 4 s, 1.4 GB/s

uutils dd:

$ timeout 5 ./target/debug/dd status=progress < /dev/zero > /dev/null
403468800 bytes (403 MB, 385 MiB) copied, 1.0 s, 396.7 MB/s

The status=progress causes the progress line to update repeatedly. GNU dd updates about once per second. uutils dd seems to update when each block is written. That makes the text change way too fast. Furthermore, you can see here that after five seconds, uutils dd reports that it has been running for 1.0 seconds, which is not correct.

@jfinkels
Copy link
Collaborator Author

Fixed by #3078.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0