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
Closed
@jfinkels

Description

@jfinkels

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0