Project

General

Profile

Feature #4494

Make dd show progress when you send INFO/USR1 signals

Added by Robert Mustacchi over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
cmd - userland programs
Start date:
2014-01-16
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

This came about as a common feature request from our customer base. Basically: With gdd you get progress when you send SIGUSR1 which is helpful when you're writing a lot of data. Eg:

# gdd if=/dev/urandom of=/dev/zvol/rdsk/zones/fatty bs=1M
357+0 records in
356+0 records out
373293056 bytes (373 MB) copied, 32.2509 s, 11.6 MB/s
3714+0 records in
3713+0 records out
3893362688 bytes (3.9 GB) copied, 291.616 s, 13.4 MB/s
5512+0 records in
5511+0 records out
5778702336 bytes (5.8 GB) copied, 423.144 s, 13.7 MB/s
8350+0 records in
8350+0 records out
8755609600 bytes (8.8 GB) copied, 635.632 s, 13.8 MB/s
8482+0 records in
8482+0 records out
8894021632 bytes (8.9 GB) copied, 643.929 s, 13.8 MB/s
15079+0 records in
15079+0 records out
15811477504 bytes (16 GB) copied, 1139.55 s, 13.9 MB/s

It outputs a new entry every time I send SIGUSR1.

--

We ourselves opt to do this with both SIGUSR1 for GNU compatibility and with the new SIGINFO.

#1

Updated by Robert Mustacchi about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 90 to 100

Resolved in 19d32b9ab53d17ac6605971e14c45a5281f8d9bb.

Also available in: Atom PDF