shred is very slow
Bug #279598 reported by
kmvzxuwi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils |
Fix Released
|
Undecided
|
Unassigned | ||
coreutils (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: coreutils
Random passes of shred are painfully slow: it takes me 571 seconds to make the first (random) pass on a 2.0GiB flash device, while only 125 seconds where needed to perform the second pass.
So, random passes are nearly _five_ times slower than other passes while erasing flash devices...
Please note that this is the same for HDDs: with different times, for course, but the difference can be even bigger (near an order of magnitude on my systems).
Tested on Intrepid beta, Hardy and (if I recall correctly) Gutsy.
Feisty (again, if I recall correctly) worked just right.
Changed in coreutils: | |
status: | Incomplete → Confirmed |
To post a comment you must log in.
Thank you for opening this bug and helping make Ubuntu better.
Indeed. From coreutils 5.x to 6.0 shred moved from an internal PRNG to /dev/urandom (i.e., the system PRNG). It seems this move is most probably the reason for the new high time. I am trying to get some times from the execution of shred to confirm.
If this is indeed the case (and I think it is, but I am still to query upstream on that) I do not think there is much for us to do. Perhaps using Fortuna (see http:// en.wikipedia. org/wiki/ Fortuna_ (PRNG)) as the PRNG might make a difference.