Re:Overwriting Hard Drive Data: The Great Wiping Controversy...
by pstrateman on Monday July 03, 2017 @06:13PM
(#14691840)
Linux kernels after 4.8 use chacha which is significantly faster than the previous implementation. (~250MB/s on my laptop).
Re:Overwriting Hard Drive Data: The Great Wiping Controversy...
by sliken on Monday July 03, 2017 @05:20PM
(#14691492)
I didn't downvote, but /dev/urandom isn't a particularly large bottleneck for any recent machine. I've got a 4 generation old I5 (3570) dd of /dev/urandom gets 300MB/sec for me. SATA is only capable of twice that, so it's not a particularly large bottleneck.
I do wonder what machine you used that's 20 times slower than a 4 generation old i5.
Re:Overwriting Hard Drive Data: The Great Wiping Controversy...
by rini17 on Monday July 03, 2017 @05:57PM
(#14691724)
I had similar problem with urandom, instead used openssl like this and it's fast enough:
openssl enc -aes-256-cbc -in /dev/zero -out /dev/sdX
Re:Overwriting Hard Drive Data: The Great Wiping Controversy...
by sliken on Monday July 03, 2017 @07:06PM
(#14692116)
Interesting. Looks like for newer kernels (newer than 4.8) that's about twice as fast. But for older kernels it's around 20 times as fast.
Re:Overwriting Hard Drive Data: The Great Wiping Controversy...
by gist on Monday July 03, 2017 @06:04PM
(#14691780)
Thanks for this. I actually spent a bit of time playing around and learning about dd based on the above. I found that on my machine it is also slower as well. Never really had a need to use dd even with many years of playing with Unix.
This post appears to have the reason:
https://superuser.com/questions/359599/why-is-my-dev-random-...
(This raises the question of why using openssl (per other comment) makes it faster.)
Not sure why some have downvoted me. It's easy to verify.