Re: Question on shredding a terebyte drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Is shred cpu bound?
I see two ways to test:
Fill the drive from /dev/zero .
cp is not cpu bound.
Run top while shred is running.
top will tell you how much cpu time shred has used.
After an hour,
divide the number of shred's cpu seconds by 36 to get the percentage.
If random number generation is the problem,
you can replace it by passing shred a named FIFO.
Pick two relativle prime integers, both larger than one million.
Use these as the sizes of two arrays, call them A and B.
Fill them from /dev/random .
byte(j) = A[j%sizeof A] ^ B[j%sizeof B]
Unlike urandom, random can block, so the fill step could be slow.
urandom, wh3en random would block uses pseudo-random numbers,
so either way, you will be using pseudo-random numbers.

IIRC shred doesn't just write different data patterns on different passes,
it also write blocks in different orders.
That can affect the precise placement of the r/w heads
and can cause shred to affect more of the platter area.


As other have noted, company policy seems just a bit silly.
Using any of the following tools would seem cheaper and more effective:
degausser
sledge hammer
arc welder
NaK bath

shred-ing would seem more appropriate for an internal drive.
A preference for shred-ing over cracking a case seems rational to me.

--
Michael   hennebry@xxxxxxxxxxxxxxxxxxxxx
"Pessimist: The glass is half empty.
Optimist:   The glass is half full.
Engineer:   The glass is twice as big as it needs to be."

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux