How long will it take to zero fill 1TB (using dd dev/zero)?
I'm actually doing two 500G drive simultaneously if it matters.
|
How long will it take to zero fill 1TB (using dd dev/zero)? I'm actually doing two 500G drive simultaneously if it matters. |
|||
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
|
It depends on many factors, including but not limited to:
Additionally, although zeroing a drive is a simple task for the CPU and RAM, there may still be an effect from:
Assuming a fairly recent computer with middle-grade drives, on a minimal linux boot disk running JUST the zeroing operation (no gui, internet, etc) loaded entirely to RAM, it could be anywhere from 2-12 hours. If I had to throw a single number out, I'd say closer to 3 and a half hours, but again, there's not enough information to get a good estimate other than actually doing it. If you have more than 1GB free space, you could try mounting the drive and running |
|||||||
|
|
I did a dd with random data on a 750GB drive. I think it took about 20 hours. The thing that really sucked about it, is I had to do that four times for a four disk RAID array. I think the bottleneck is the write speed of your drives. You're being smart to do it to the drives in parallel. |
|||
|
|
I'm guessing, but my guess is that it would depend on the drive controller, the controller on the motherboard, and what else is soaking up CPU/IO. My guess, on the order of hour or hours. Days seems long. Depending on how your machine is set up, running both at the same time may actually slow things down if you create contention for the drive controller. Even though you're pumping out zeros, nothing in your drive knows that and it needs to write every byte. |
|||
|
|
|
If you're just erasing the drives, a great tool to use for parallel throughput is DBAN in simple erase mode. It's available as an ISO and basically does the |
||||
|
|
|
With a partition of +100 GB, Acer Aspire 5750G, external sata hdd, usb 2, 5400rpm:
and
|
||||
|
|
|
It should take 2-5 hours. Your bottleneck is the disk, not the RAM, the CPU, the cables or controller configuration. Unless you have a very old computer, like an original Pentium, your CPU and memory are way faster than the hard disk's spindle speed, as are your SATA cables. Cache does not even come into play because you are zeroing the drive (unless you have 1 TB of cache). |
||||
|
|
dd if=/dev/zero of=/dev/sdX bs=8Mon two brand new Seagate ST4000DM000 4 TB drives over SATA-300 ports simultaneously (I think it was more or less perfectly parallelizable — CPU usage was constant at ~20% for the firstddprocess before the second was started, and then both took ~20% each). The first disk finished in 8h50min (530 min), and the second in 8h30min (510 min). It amounts to a write speed of ~130 MB/s per drive, which is not that strange considering the monotone input. The hardware was from 2009 (CPU: C2D E8400; chipset: Intel P43/ICH10). – Daniel Andersson Mar 20 at 8:42