How to defrag a folder to make sequential file access faster

4

1

I work with real-time video apps, and just defragged my (Win XP) system to try to improve the general performance. It did... but it appears to have destroyed the generally contiguous nature of certain test folders filled with tens of thousands of sequential images.

Is there any utility that can make the contents of a particular folder as contiguous as possible on the disk so that the disk access time is minimised when reading files in that folder? That is... a folder-level defrag rather than a file-level one?

omatai

Posted 2012-01-09T21:48:45.403

Reputation: 273

2Just copying the folder should have a good chance of doing that. You can then delete the original. I guess for maximal effectiveness you'd do this from a live CD to minimise other activity on that disk. – RedGrittyBrick – 2012-01-09T22:07:08.580

If the file system is fat or fat32, defrag be it Mydefrag or windows, will not rearrange the folders themselves. making a full reorder defrag of Fat, only a partial defrag, a partial mess. Back in win98 days some defraggers were capable of doing the full file folder defrag (disktune). Most of the defraggers now will not touch FAT folders. Add to that the time it takes, and It can be effective to Copy the data to order. Like copy it all to another disk/partition compare it for insurance, then copy it back. FOR FAT. – Psycogeek – 2012-01-10T06:05:13.987

For what it is worth, I used Auslogics defrag 3.3.0.2 on my NTFS file system. My overnight tests are now on average taking nearly twice as long to run, and no longer complete overnight. – omatai – 2012-01-10T23:00:29.093

It's worth noting that defragmenting a folder is not the same thing as defragmenting the contents of a folder. Your question about the former is actually referring to the latter. – user541686 – 2013-03-19T04:56:41.473

Answers

6

MyDefrag is free and offers a scripting language, and optimizing (reordering) by path; "System Disk Monthly" and "Data Disk Monthly" do this. Best part: you can edit those scripts and make your own; note the "zone" functionality, etc. http://www.mydefrag.com/Manual-Scripts.html

Consider, if you didn't know already: disk access at the outer edge of the platter (logical start of the drive) is significantly faster than at the end (inner edge.)

Lastly: think about what your time is worth, and consider an SSD if random IO is really important; these days prices are getting pretty reasonable, approaching that of 10k RPM drives. If you do get an SSD and need the very highest IOPS, some benchmarks done by hardware review sites have shown that SATA interface speed has a significant impact on IOPS.

Brett Dikeman

Posted 2012-01-09T21:48:45.403

Reputation: 1 112

0

AusLogics Disk Defragmenter has a defrag folder option (version 6.2.1.0 checked). Access it via menu - Action > Advanced > Defrag folder.

Kozuch

Posted 2012-01-09T21:48:45.403

Reputation: 176

0

You can always purchase a Solid State Drive (SSD) and make fragmentation a non-issue.

Keltari

Posted 2012-01-09T21:48:45.403

Reputation: 57 019