martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
801 stars 86 forks source link

Nwipe keeps syncing?! #286

Closed JoeyHelmond0492 closed 4 years ago

JoeyHelmond0492 commented 4 years ago

Hi there, i'm using nwipe for over a month and it works great except for one thing... It keeps saying "syncing". i tried to wipe an 80GB hdd with the "fill zero" method and it took me 4-5 hours to get to 50% with ShredOS and SystemRescueCD i have the same problem as mentioned above!

what causes this and how can i fix this? Greeting from Holland,

~ Joey ~

mdcato commented 4 years ago

First, the time you are getting is not unusual. Even if the 80GB drive could keep up with sustained SATA-III speeds (it cannot), it would take 2.22 hours to do a single 80GB write pass (without verification).

Here’s the speed breakdown: Processor, very fast, for example 3.2GHz (assuming older test computer). Simplifying to a single core, even if the processor has multiple, it can get a lot of work done. Memory is slower than processor speed, which is why processors have caches that run faster than memory. PCIe bus to connect processor & SATA-III controller is ~1000MB/s for PCIe 3.0 x1 (circa 2010, I’m assuming a not-brand-new test computer to run nwipe) SATA-III is 6Gbps, or 600MBps, which is the speed a single data transaction can be transferred to the hard drive’s cache (not the data platters themselves). While none of the spinning drives can truly keep up with writing a continuous 600MBps, many mfrs “updated” their previous models by putting a faster controller, so the underlying “raw” speed wasn’t increased. (Before anyone gets too annoyed, this is a reasonable approach since the drive takes the usually intermittent data quickly and lets the bus, memory & processor get back to other things.) The size of the drive’s cache, and the number of simultaneous transactions it’s on-board processor can handle varies by model. Finally, the drive has to decide how to reach the desired block to be written (even though nwipe generally writes large blocks sequentially) move the heads to the right position, and wait for the spinning platter to get the data underneath the head to actually write it.

Those last two items are what take the greatest time. And thus why nwipe spends most of its time showing “syncing” waiting for a signal from the hard drive that it is finished writing. Nwipe can shove out the data, whether zeroing or random, much faster than it can be written.

And in your case, since its been a while since 80GB drives were made (you can hardly find any new spinning drives less 1TB from reputable dealers) I’ll bet it has a relatively small cache, and on-board controller that only handle a few simultaneous transactions. Further, in that length of time it’s seen a lot of use, so the bearings or bushings are worn on both the platter spindle and head arm, so there is a lot of positioning retries (which take considerable time) to [re]locate the proper place to write the data.

From: Joey van Beek notifications@github.com Sent: Monday, September 21, 2020 12:30 To: martijnvanbrummelen/nwipe nwipe@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [martijnvanbrummelen/nwipe] Nwipe keeps syncing?! (#286)

Hi there, i'm using nwipe for over a month and it works great except for one thing... It keeps saying "syncing". i tried to wipe an 80GB hdd with the "fill zero" method and it took me 4-5 hours to get to 50% with ShredOS and SystemRescueCD i have the same problem as mentioned above!

what causes this and how can i fix this? Greeting from Holland,

~ Joey ~

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/martijnvanbrummelen/nwipe/issues/286, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANGK2PTQEOAB553ITALYJLTSG6ESBANCNFSM4RUZROFA.

JoeyHelmond0492 commented 4 years ago

it's indeed an old test computer, AMD Athlon 2, overclocked to 3 GHz, 2x 4GB DDR3-1333 ECC RAM on a GIGABYTE 333 motherboard. hard drive is a Western Digital Caviar 80 GB 2,5 inch. so i guess you're right, i'm gonna ask a friend if i can use his game pc to see if it improves speed. i'll let you know! thanks for the help!!!

mdcato commented 4 years ago

My guess is it won’t make (much) difference. The limiting factor is the hard drive.

From: Joey van Beek notifications@github.com Sent: Monday, September 21, 2020 13:43 To: martijnvanbrummelen/nwipe nwipe@noreply.github.com Cc: Mike Cato / Hays Technical Services mike@haystech.com; Comment comment@noreply.github.com Subject: Re: [martijnvanbrummelen/nwipe] Nwipe keeps syncing?! (#286)

it's indeed an old test computer, AMD Athlon 2, overclocked to 3 GHz, 2x 4GB DDR3-1333 ECC RAM on a GIGABYTE 333 motherboard. hard drive is a Western Digital Caviar 80 GB 2,5 inch. so i guess you're right, i'm gonna ask a friend if i can use his game pc to see if it improves speed. i'll let you know! thanks for the help!!!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/martijnvanbrummelen/nwipe/issues/286#issuecomment-696298399, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANGK2PTU2GYXDKPZTHXKJRTSG6NDBANCNFSM4RUZROFA.

JoeyHelmond0492 commented 4 years ago

thanks for the help! guess i'll have to drill a hole in it

PartialVolume commented 4 years ago

Like @mdcato says, it almost certainly the drive. You can tell a lot from the throughput figure as to whether you have an issue or not, when compared to other drives you are wiping. If you take a look at the animated gif on nwipes github main page there was a 80GB drive that had a throughput of 22MB/s connected via a USB interface rather than SATA or IDE. Is your throughput in that same ball park or is it considerably lower ?

PartialVolume commented 4 years ago

Looking at the summary page of the example gif, Screenshot_20200922-080931

the 80GB Western Digital drive conpleted in just under 3hrs on a USB interface. That was a zero fill with blanking and verification too. So if you were only getting to 50% after 3-4hrs I would look at the spec of you drive to see if it's similiar to the Western Digital being wiped in the example. It does sound like it's the drive that's the issue.