Why is multi-thread defragging not possible?
Posted 19 August 2012 - 11:58 PM
Posted 20 August 2012 - 02:17 AM
Posted 20 August 2012 - 06:50 AM
Posted 20 August 2012 - 08:00 AM
These apps perform most of their work on data containing in primary storage; not the hard drive. In the case of games; they utilize multi-threading to allow for background processing without delaying the foreground thread, which would cause choppyness.
What's the difference between primary storage and the hard drive?
Posted 20 August 2012 - 09:39 AM
Simultaneous reads slow it down because it has to seek multiple locations. It may seem instant, but it is not. It has to physically move back & forward between the locations, so it slows down when it is parallel processing as opposed to sequential.
Modern HDD try to alleviate this a bit with an onboard CACHE mem that acts as RAM on the HDD.
With Games, the OS typically loads them to RAM & your multi-threaded CPU is able to process them in parallel because RAM doesn't have a read/write head & thus is up to 1,000 times faster than accessing from the HDD.
With Defragging, it would be impossible to load the entire HDD to mem for defraggling, and even if it was possible, that would be dangerous because of the possibility of a power outage, etc...
* HDD are very similar to CD/DVD access, except CD/DVD read & write to plastic disks via laser, while HDD read & write to metallic disks via magnetic currents.
But the concept is very similar, & HDD are like a very high speed CD/DVD drive.
If you want, try this test to see what the difference would be if you tried to do parallel defraggling with an HDD.
Insert a CD with lots of files on it into your CD/DVD reader.
Create an empty folder on your desktop.
Select all files on the CD & copy them to the empty folder.
Time how long it takes.
Next, delete the files in this empty folder.
Select 1/3 of the files on the CD & copy them to the folder.
While this is copying, select another 1/3 & select for it to copy these to the folder as well.
Then, select the remaining 1/3 & let it copy also.
Time how long it takes.
You will find that the laser is having to switch back & forth to read between the 3 sets, as opposed to the first file copy where everything was sequential.
You will also find that this takes much longer.
Hope this helps clear things up!