defragger : Java Glossary
home D words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish 2008-03-09 by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
CurrCon neededThe CurrCon Java Applet displays prices on this web page converted with today's exchange rates into your local international currency, e.g. Euros, US dollars, Canadian dollars, British Pounds, Indian Rupees… CurrCon requires Java 1.1 or later, preferably 1.6.0_06 . If you can’t see the prices, of you if just want to learn more about CurrCon, click here for help.
defragger defragger
A defragger is a utility that ensures files on disk are in one contiguous chunk. A defragger may also position files on disk so that frequently used files get prime real estate. Ideally it would order files by last access date, perhaps weighted by frequency of use statistics. That way all your hot files are close together, and files that end to be used together live side by side. It may also defrag and tidy directories and other system tables. It may consolidate free space fragments.

Windows has an official NTFS defrag interface. It is extremely conservative and slow. The idea is that defraggers can safely run while other programs are running simultaneously messing up the disk. Another advantage of the interface is that bugs in the defragger are very unlikely to corrupt the disk. Further system crashes while a defragger is running are also very unlikely to corrupt the disk. It would be much faster if Microsoft would implement it properly. It should buffer up several requests to move small files, and move a batch of them (or file fragments) in one single elevator seek. The interface could stay the same. It would just have some extra intelligence inside to do the moves slightly out of order, in batches.

Defragger Products O & O Defragger
Systems Internals PageDefrag JetDefrag
Built-In Windows Defragger Symantec PartionMagic
Defrag.zip Symantec Norton SpeedDisk
JkDefrag Difficult To Defrag Files
Auslogics Disk Defrag Defragging the Pagefile
Winternals Defrag Manager Feature Comparision Matrix
DiskTrix Ultimate Defrag Keeping Files Defragged
Executive Software Diskeeper9 Summary
Paragon Total Disk Defrag 2007 Links
Raxco Perfect Disk

Defragger Products

Windows Hard Disk Defraggers
Product Price in
mindprod.com CurrCon international currency Applet needs Java installed for it to display prices in any world currency.
mindprod.com CurrCon international currency Applet needs Java installed for it to display prices in any world currency.
Last revised 2005-08-18.
Strengths Weaknesses
Systems Internals PageDefrag free defrags pagefile.sys file. Does nothing else besides defrag pagefile.sys Can only run at boot time. You can almost as easily, and more safely, defrag pagefile.sys by temporarily moving it to another partition in the Control Panel, reboot, defrag, then move it back, then reboot again. However you need a spare FAT or NTFS partition to do that. For NT/W2K/XP. Does not work on Vista.
Built-In Windows defragger free This is the defragger that comes bundled with Windows. It is a stripped down version of Norton Defrag that does not attempt to place most commonly used files in prime real estate — half the purposes of a defgragger.
Defrag.zip free Not supported. Only works on XP/W2K3/Vista. Very slow. Not too bright about file placement. It just doggedly defrags using the official NTFS defrag interface.
JkDefrag free Open source, source available. Can order by last access date. Bare bones. Purely command line driven. You need the -f 0 option or similar to make it work sensibly. It cannot defrag locked or system files.
Auslogics Disk Defrag 1.6.2 Free. They say “free trial download”, but it is 100% free. Works on W2K/XP/W2K3/Vista. Quick. It offers no options to control how the defrag is done. Does not have a way of handling locked or system files. It appears to do the equivalent of an O & O STEALTH or SPACE option, just befragging non-contiguous files, without any attempt at optimum file placement.
Winternals Defrag Manager $19.00 USD for single station; $159.00 USD for ten station. defrags network drives Defrags using safe but slow MS API. It is thus not currently capable of Page File defragmentation (or of the MFT and related NTFS metadata, since these require off-line defragmenting). You do not install it on each machine. It defrags via a central administrator control. 30 day trial.
Disktrix Ultimate Defrag
DiskTrix Ultimate Defrag 2008 v 1.72
$20.00 USD for lite version (no order by access date),$40.00 USD for full version (6 defrag methods). Supports XP/W2K3/Vista. Six different placement algorithms:
  • fragmented files
  • consolidate
  • folder/file name
  • recency (last accessed/last modified)
  • volatility
  • auto
It focuses on placing files, putting most used files on the fast outer tracks (beginning of the partition). It automatically consolidates the directories and places them next to the MFT. This is a highly desirable feature for fast file lookups and file opens. It comes with lots of interesting technical documentation on how defrag and file placement works. The cluster inspector responds instantly. Apparently by default Vista does not maintain last access dates of files. DiskTrix gives you the option of turning it on. You can also control it with fsutil. It lets you select wildcards to be put in the high performance outer band or the low performance attic inner archive band. With a boot-time option, in can defrag pagefile.sys, hiberfil.sys and “other metafiles” (not specified exactly which ones). The colourful bullseye like display is makes it very clear what it is doing at any point. It, at least psychologically, appears faster than other defraggers, though I have not benchmarked it. It uses the standard Microsoft defragger interface. The display lets you point to a file to see its clusters or point to a cluster to see which file it is. Its scheduler is capable of waking the computer to run the job. This version is much faster than previous versions. There are modes where you can do a defrag in a few minutes.
To defrag pagefile.sys, hiberfile.sys and other metafiles you must enable boot time defrag. It cannot defrag VSC (volume shadow copy / system volume information) files unless you turn off System Restore, which will permanently discard all your restore points. Disktrix 2007 tends to place some files on the outer rim and the rest at the hub, leaving a wide empty band between. It would make more sense to place the archive band just inside the outer band. Sometimes it does that. In Disktrix 2008, I could not get the scheduler or the boot-time defrag to work at all. Perhaps these are disabled in the trial version. In Disktrix 2007, it often went into an endless loop moving the same file over and over. The settings did not stick properly; they kept reverting to previous settings. I have not had enough experience with Disktrix 2008 to see if these problems have been fixed. Confusingly, there are two menus for setting drive options. Neither have context sensitive help. There is PDF help file for the entire program. Disktrix refuses to answer emails until you register the product. They don’t seem to understand that customers don’t register a product until it is working satisfactorily. It is not as if potential customers can bum free support, get the product working, continue to use it and then not pay, as most of my customers do who seek pre-registration support. Last revised 2008-04-27.
Executive Software Diskeeper9 $20.00 USD home edition.
$50.00 USD professional edition.
Particularly good at speeding up file copies. Defrags, free space, directories, MFT and pagefile.sys, Moves dirs to centre of the disk. Very slow because it uses the official NTFS defrag interface. Makes no attempt to position files by last access date. Directory, MFT and pagefile.sys optimisation can only be done at boot time. Boot time defrag can take 15+ hours and is not interruptible. Executive Software has Scientology connections, which may cause trouble if you are in Germany. My computer was in my bedroom and it drove me nuts clicking away in the middle of the night after I installed Diskeeper. The only way I could get it to stop running was to uninstall it. Diskeeper claims that a badly fragmented MFT will double boot time and slow some apps by 50%. Software installs can take 5 times longer. They claim a badly fragmented page file can slow mouse response to 30 seconds.
Paragon Total Disk Defrag 2007
Paragon Total Defrag 2007
$30.00 USD . Pay by credit card, PayPal, cheque, wire transfer or Maestro. Can be run without installing from a bootable CD. From Germany. I own a copy.
  • It can move the MFT to the start of the disk, defrag it, compact it, and shrink it.
  • It automatically checks disk integrity before defragging. Defragging a corrupted disk would just make matters much worse.
  • It is thorough. All files are in the advertised order, without embedded empty space and fully defragged when it completes. It does not leave an empty cluster between directories for future growth.
  • Defrags paging files at boot time and directories on-line.
  • It has disk monopoly access mode to prevent the system from attempting to move already defragmented blocks.
  • It will put directories at the beginning/end and sort files by size or in order by last modification date, but not last access date.
  • It appears to defrag the log and journal files, absolutely everything.
  • It is unusually fast.
Paragon defragger would be the best defragger were it not for some glaring problems with the user interface. The authors got all the hard stuff correct, then stopped before they had polished the user interface. Other than the need to lock the entire drive, most of these problems would be fairly trivial to fix. The most important problems are near the top:
  • You can defrag only one partition at a time. You can’t give it a list to defrag and walk away. Further you have to defrag/move the MFT, and compact the MFT separately from defragging the files. If you have four partitions, you will need 16 reboots to defrag the files and compact and defrag the MFTs. It is not 24, because the MFTs automatically get defrags when you defrag the files in a partition.
  • It uses a fast but dangerous proprietary access method. If you loose power during a defrag, your disk could be damaged.
  • It will not order files by last access date.
  • It would not touch my C: system NTFS partition. It says it is an unsupported partition type. Other defraggers have no trouble with it. I can’t see anything unusual about it. They Paragon support people said a byte in the partition table is wrong and needs to be manually patched. Tech support said to patch byte 0x26 to 0x80 in the boot sector, but I so far don’t have a tool that will let me do that. It is a fault in Acer computers. The purchased version does not have this problem.
  • The boot time defragger sometimes just quietly terminates without an error message without doing any defragging.
  • You can’t do anything else with the computer when it is defragging.
  • You must reboot at the start and finish of each defrag. I was never able to get it to defrag on-line, except in safe mode. There was always some program using the partition.
  • Every time you defrag you have to respecify the options: put directories at the end, do not sort by size, sort by ascending last access date. It forgets your previous settings.
  • When you select the partition, the partitions are displayed showing the nested extended partition structure to scale, but they are not always labelled with drive letters. The display is further confused by showing Linux partitions and others it does not know how to defrag. It should just show a list of drive letters of defragable partitions.
  • The display during the defrag is just a progress bar. You have no idea what it is doing. You don’t know what file it is moving, or even which partition it is defragging.
  • the time to finish has the alarming habit of getting bigger and bigger and freezing, instead of counting down at a steady pace. The program should estimate high, based on previous runs, and refine the estimated time to finish in such a way the time to finish always keeps getting smaller.
  • The cluster display does not let you explore the disk. It tells you nothing about what is in the cluster or how it is is being used.
  • If you abort an operation in the GUI, you cannot start another. You have to exit and restart.
  • The defrag display often says there are 2 MFT fragments, but when you go to defrag the MFT, it says there is only one and no defrag is necessary.
  • It requires excessive hand-holding. It appears that it wants you to babysit it and hit space from time to time before it will get on with the next stage, but you can just let it sit for a while and eventually it starts up again on its own. It should be able to run unattended to defrag a group of partitions and shrink a group of MFTs. The boot time modules makes reference to a script, but I saw no documentation on how you might compose one.
  • The cluster display is misleading. It makes the disk look more fragmented than it really is.
  • In general you must purchase updates, though sometimes there is a free update.
  • The sort for the internal defrag pass is slow, possibly an O(n²) insertion sort, though not outrageously slow. It would be almost instantaneous with a 16-bit RadixSort.
  • The offline display quickly scrolls offscreen before you can read it with no way to scroll back to read it.
  • The information it displays about partitions does not include how badly the MFT in fragmented either externally or internally, so you don't know if you need to defragment/compact.
Last revised 2008-01-31.
Raxco Perfect Disk 2008 $40.00 USD This defragger targets the niche of very large disks where you must be quick and have to be parsimonious with RAM to get the disk defragged in reasonable time. It is faster than most other defraggers. It is particularly good at improving boot time. It optionally compresses small files. Places most frequently modified (not necessarily most frequently accessed) files near the center of the disk and rarely modified ones near the edges, with the free space in the central band. Defrags the page file, the MFT and the directories. The scheduler lets you allows you to set a maximum run time. Only defragger to fully defrag all the NT metadata (logfile, MFT mirror, etc.). It will work with only 5% free space.

It defrags metadata (NTFS alternate file forks), it defrags the hibernate file, it can defrag the page file even when there is no contiguous free space hole big enough to hold it and it does repositions MFT to the middle of the disk. I also suspect is prunes the size of the MFT, and may even internally tidy it.

It does not fully defrag free space, though Raxco claims this is a limitation of the NTFS defrag interface. Earlier versions often went into an infinite loop, but it has not done that with the most recent version. Leaves many files undefragged after a single pass. The graphic display does not keep up to date consistently as it works, but it has a window telling which file it is moving so you can at least tell it has not hung. If you shut down the program by clicking × the program does not stop, it just continues in the background as a system process eating up nearly all available CPU cycles. You can avoid this behaviour by using the stop icon to stop the program, though it seems to start itself and run at odd times even when you have not scheduled it too. You can’t get rid of the background service that runs all the time, however this is true of most defraggers. The partition notebook where you configure the options for how you want a given partition handled is cleverly hidden. The way you can access it is with a double click on the drive letter. If you do a defrag run, then run it again, and abort part way through, your disk will be messier than when you started.

You can configure aggressive space compaction, but oddly the option is ignored for space compaction defrags. It only works for SMARTPlacement defrags. It does not offer a full sort by last-access-date option. It places files in several rough bands.

Raxco says it holds a patent on the idea of file placement. This is prior art and I can prove it to anyone who needs to break the patent. I posted the idea years ago on BIX.

Their online store takes only credit cards, though they also sell through dealers.

O & O defragger
O & O Professional Defrag 10
$45.00 USD for the single user or $219.00 USD for the Server edition that lets you defrag an entire LAN of machines.

Advantages

  • This is what I decided to buy for myself. Five magazines gave it awards.
  • Comes from Germany. You can let it work in the background waking up whenever the system is idle to do a little defragging. You can tune the algorithm to use. You can tune it to sort files alphabetically, to order for fast read access (sorted by last access date, its most logical algorithm in my opinion) or fast write access, or to defrag with minimal resources. It sorts by ascending last access date. Ideally it should sort by descending last access date to put the most frequently accessed files on the fast outer tracks near the beginning of the partition. It supports FAT, FAT32, NTFS, NTFS5, RAID, EFS. Works even on drives larger than a terabyte. It has a scheduler so you can run the defrags unattended. It is clever enough to queue up a request to defrag a partition on the same disk as one being defragged, but will optionally simultaneously defrag a separate physical disk.
  • They take credit cards and PayPal.
  • The Complete/ACCESS algorithm has some nice features:
    • After the first time, it is relatively quick. It moves a few files you have not used in a while to the active end of the disk, creating holes. Then it rapidly slides files down to fill the holes. Often it does not even need to touch the first half of the disk.
    • It optimally organises the files so that the ones you use most often are near the active end of the disk and the ones you hardly ever use are near the beginning, perfectly sorted. No other defragger does this. Others use approximate bands or base the sorting on last modified date rather than last accessed date. This is the key reason I chose O&O for my own use. For this to work properly, you must first turn on last-access date maintenance with the fsutil utility.
    • You can think of it like a house with well-designed many-layered storage for commonly-used items, rarely-used items and an attic. Getting rarely-used files off to the attic reduces clutter.
    • It is equally important to get files used together close to each other on disk as is it to get the fragments of a files. This algorithm does that.
    • It defrags the hibernate file, the MFT and the registry. It can even defrag the registry and MFT without a reboot.

Disadvantages

  • It often simply stops without error message. Sometimes it starts by itself after a minute or so, but often it never recovers. You have to stop terminate it and restart. This is by far the most annoying feature, since when you leave it running, and come back hours later, you find it has not completed the work.
  • When defragging the C: drive, it seems to restart from the beginning over and over. I have every other application I can think of that might be interfering turned off.
  • It often crashes and freezes.
  • When you enter the registration key, it will ask for three fields, your name, your company and your registration key. In my case, to make it work I had to enter my company name in both the name and company field. This is odd given that I gave them both my name and company name during purchase and did not specify if it was an individual or corporate purchase.
  • It seems to be quite slow the first time out. Like most defraggers, it is using the official Windows NTFS defragger interface. On subsequent runs, it is reasonably quick. I choose to use the Complete/ACCESS algorithm. My machine was noticeably more spritely afterward, particularly program loads.
  • The menu talks about a C:\Windows\Prefetch\layout.ini file to control file layout, but does not document it. The O&O tech people told me it only works in XP/W2K3/Vista. If you enable the layout.ini option, the files used by Windows mentioned in layout.ini will be placed near the beginning of the hard disk, in the order specified, to load them faster. The layout.ini file uses UTF-16 encoding. It is a Windows feature for all defraggers, not just O & O. It is just a list of files and directories in the optimal order for bootup.
  • It is adequately fast for a 40 gig hard disk but is too slow for a 250 gig.
  • The shaded colours used in the cluster display are all subtle variations on blue, and on top of that appear to be blended for blocks that have a mixture of types inside them. You can’t tell much. Turn off shading to give a clearer viewer. Even then the default colour scheme uses three very similar shades of blue. You can configure a more distinctive colour scheme by double clicking on the colour swatch in the legend.
  • It used to consolidate directory entries together. Now it does not. I wrote a utility called touchdirs part of the FileTimes package, to encourage it, that stamps all directories with the current time as the last access date. If you use COMPLETE/ACCESS this tends to clump all directory entries together.
  • One of its best features in previous versions was the cluster inspector to see what file was at each spot on disk. It is very unresponsive under Vista, and using it will often crash the program. It seems to work only when the CPU is lightly loaded. O&O should bump the priority of its thread higher than the background defrag thread.
  • It does not completely compact the free space in one run. Running several times with the SPACE option gradually compacts it. Especially on the C: drive, no matter how many times you run, it does not completely compact the space.
  • It does not completely defrag the disk in a single run. See the features matrix below for files it never defrags. It takes many passes, alternating SPACE and ACCESS/COMPLETE and boot STEALTH defrag to get all the files defragged and the space consolidated. This make little practical difference to performance, but is annoying for someone like myself who also uses a defragger for compulsive aesthetic reasons. It may just be that files in use during the defrag bedevil it, but it seems more than that.
  • Defrag does not work on W95/W98/Me/NT. It requires W2K/XP/W2K3/Vista.
  • When using COMPLETE-Access mode, it works on the oldest files first, so if you abort the defrag, you don’t get any improvement. This is analogous to someone who starts his daily housecleaning by cleaning the attic.
  • It is hard to tell if it running or not. If you watch the tiny tray icon it changes from red triangle (running) to yellow (paused) to red X (stopped). When running, the ribbon Start button is disabled, and when stopped the ribbon stop button is disabled. However same button is used for both pause and resume. There is no paused indicator on the ribbon. The screen looks the same whether it is running or paused. It would be more logical to use a green triangle. The tray icon is so small, you need the colour clue.
  • It is often hard to tell just where it is working on disk. If often appears to be hung when it is moving many small files. There is nothing flickering in the cluster display.
  • Does not defrag metadata (NTFS alternate file forks), UsnJrnl or $bitmap.
  • It will not defrag the page file unless there is a contiguous free space hole big enough to hold it.
  • It does not internally tidy or resize the registry, the MFT (Master File Table), the directory etc.
  • When I tried to defrag a FAT32 C: partition in Win2K, it kept rebooting. It could however defrag a FAT32 D: partition in Win2K.
  • The documentation says you can do other work while the defrag is in progress. However, I have found that it will nearly alway hang if you attempt that.
  • It sometimes turns the machine off, suddenly, with no error message. I was able to correct the problem by running chkdsk (with automatically fix errors checked) on all drives. The problem turned out to be corrupted security descriptors.
Last revised 2008-01-27..
Jet Defrag Bundled in the Vcom System Suite Professional 6 (née Ontrack Mijenix Defrag Plus) $60.00 USD It organizes your disk in zones, so that files you rarely access don’t get in the way of other files you use more often. Under Windows NT/W2K/XP/W2K3/Vista, Jet Defrag defragments the paging file and the registry. No trial. That is why I have little to say about it. Neil Rubenking reviewed it saying was slow. It runs about seven times slower than the built-in defrag.
Symantec PartitionMagic 8.0 née PowerQuest $70.00 USD Quick. Not really a defragger. Squishes partitions without attempt to defrag, prior to moving or resizing them. Does not optimise at all. Can only run at boot time.
Symantec Norton Norton SpeedDisk 2005 $70.00 USD Particularly good at speeding up read access to files. Bundled with Norton SystemWorks 2005 and Norton SystemWorks Pro 2005 Fast since it does not use the klunky official defrag interface. It can defrag the MFT, pagefile, dirs etc. without a reboot. It places frequently accessed file near the start of the partition. Moves small files into the MFT which gives them faster access and ensures they take up less space. (The downside is the MFT needs more frequent defragging.) It is very simple to run. There are no options to configure other than the names of files you want put near the beginning or end of the disk. Puts frequently/infrequently accessed/modified files in separate bands. Places the MFT, then the pagefile, then the directories, then the high access files. Norton’s placement makes more sense to me. The rainbow hued analysis map changes in ways that make sense. Other defraggers seem to have no method to their actions. They appear to just as often be messing up the disk as defragging it. Norton is not perfect. It has the disturbing quality of redefining how much of each kind of file it has as it progresses. It requires only one session to fully defrag the disk. Cannot defrag the first 16 clusters of the MFT. It is quite slow when it defrags small files. Microsoft claims Symantec’s on-line defrag of the MFT is dangerous. This could just be Microsoft getting huffy over Symantec bypassing its official klutzy defrag interface, or it could represent a true problem. If Microsoft implemented it properly, there would be no need for bypassing it. The defragger is noisier than most, sounding as if it is going to shake your disk to death.

Two different sets of utilities all on one CD, a W95/W98/Me and NT/W2K/XP/W2K3/Vista set. For windows, make sure you manually configure a swap file with Control Panel ⇒ System ⇒ Performance ⇒ Virtual Memory, otherwise SpeedDisk will keep restarting, fearing writes to the temporary swap file. It moves the swap file and directories. However under NT/W2K/XP/W2K3/Vista it does not move directory entries (on FAT partitions) and metadata files (on NTFS partitions). It leaves them where they are, calling them unmovable files, scattered across the drive. To defrag them, you would have to reformat the drive and reload the files, creating all the directory entries first.

Difficult To Defrag Files

There are certain files that are difficult to defrag because the system is using them. They have to be tidied at boot time, before the system starts using them or by locking out a drive to all other programs. These difficult files (often called metadata or locked files.) include: The reboot defrag usually deals well with locked files. You can reduce the number of locked files by shutting down apps just prior to a defrag, in particular ClipMate and Google Desktop. O&O defrag report tells you which files were locked and how badly fragmented they are.

Defragging the Pagefile

Even a premium defragger like O&O won’t necessarily defrag your pagefile (pagefile.sys) or hibernate file (hiberfil.sys). You can fudge it this way. Move the page file to a different drive temporarily, (Control Panel ⇒ System & Maintenance ⇒ System ⇒ Advanced System Settings ⇒ Performance ⇒ Settings ⇒ Advanced Settings ⇒ Advanced ⇒ Virtual Memory ⇒ Change). Then turn off the hibernate feature, (Click Accessories ⇒ right click on Command Prompt, ⇒ click Run as Administrator ⇒ type: powercfg -h off), then reboot. This should cause the two files to disappear off C:. Then defrag and check that there is now a nice big hunk of contiguous free space on C:. Now move the page file back to C:, reboot, then turn hibernation back on. You don’t need to reboot, yet again. The hiberfil.sys should be created immediately. The two files should be allocated in nice contiguous chunks in the free space, with pagefile.sys in the prime real estate.

Alternatively, you can use PageDefrag described above, though it won’t work for Vista.

Feature Comparison Matrix

Defragger Feature Comparison
Disk Area Paragon O&O Raxco Norton Diskeeper JetDefrag PageDefrag
Ordinary files
Order by least recently used
Order by least recently modified
Registry defrag
Registry internal tidy/prune
MFT defrag
MFT resize
$LOGFILE defrag
directory defrag
pagefile defrag
hibernate defrag
metadata defrag
UsnJrnl
$bitmap
VSC volume shadow copy restore points

Keeping Files Defragged

If you are writing code that involves large random access files, you can keep them defragged between defrag runs if you use this formula whenever your file runs out of space. This is not something you can do as an end user. This is something only programmers can do. The formula gives files a little more space than immediately needed, so they will tend to stay in one piece.

Summary

I chose O & O defrag for my own Vista system.

Defraggers need intact control structures on the disk. If the disks have been corrupted by a system crash or rogue software, running a defragger will only make matters worse. To check for trouble and repair it click Computer ⇒ right click properties for each of your drives ⇒ click tools ⇒ check now. Then reboot. ChkDsk will run twice on each drive, then reboot.

Some people are worried that regular defragging will put extra wear on their disks. Consider that undefragged files put even more wear on disks since the fragments of discontiguous files may be accessed tens of thousands of times where it takes only one access to defrag them.

The only reasonably quick and satisfactorily thorough defragger that I know of is Norton SpeedDisk for W95/W98/Me 9x-FAT partitions. Norton SpeedDisk 5.0 is acceptable for NTFS, but I think with some work it could be speeded up further to handle several small files in a single elevator seek.

I know of no decent ones for OS/2-HPFS or Linux-ext-2 partitions. Perhaps one could be devised that booted under its own mini-OS and defragged by copying from partition to partition handling all the major OS formats. It would then not need to worry about crashing, and could do the I/O, including the directory and FAT I/O in massive buffered chunks.

With larger disks, speed becomes more important. Norton is about half the speed of the competition. On the other hand, it gives the best performance improvement. Here are some benchmarks.

The Master file table traditionally goes in a band in the middle of a disk, so don’t expect your defragger to compress it down with the other files. This convention was designed to work well if you never defrag. When the disk gets full, this crucial table will me in the middle of the files. You can improve performance if you have dynamic disk partitioning. You can shrink your partitions which will pull the MFT nearer the files on a sparsely populated disk partition. You can grow and shrink the MFT with the fsutil utility.

To write an efficient disk defragger, model how you tidy your apartment, better still, how Martha Stewart tidies her house.


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.18] Spread the Net
You are visitor number 28,971.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/defragger.html J:\mindprod\jgloss\defragger.html