FYI: Mac OS X DEFRAGMENTS itself (on an HFS+ volume)!
I found this information from
http://www.kernelthread.com/mac/osx/
from a Slashdot article here:
http://apple.slashdot.org/article.p...tid=185&tid=190
The specific information is listed in "Mac OS X Filesystems" section.
Now, here's a direct quote of what I'm referring to:
HFS+ also has a few specific optimizations. When a file is opened on an HFS+ volume, the following conditions are tested:
* The file is less than 20 MB in size
* The file is not already busy
* The file is not read only
* The file is fragmented (the eighth extent descriptor in its extend record has a non-zero block count)
* The system uptime is at least 3 minutes
If all the above are satisfied, the file is relocated (de-fragmented) - on-the-fly.
Another optimization is "Hot File Clustering". This is a multi-staged (the stages being DISABLED, IDLE, BUSY, RECORDING, EVALUATION, EVICTION and ADOPTION) clustering scheme that records "hot" files (except journal files, and ideally quota files) on a volume, and moves "hot" files to the "hot" space on the disk (0.5% of the total filesystem size located at the end of the default metadata zone - at the start of the volume). The scheme uses an on-disk B-Tree file for tracking (/.hotfiles.btree on a volume):
# ls -l /.hotfiles.btree -rw------- 1 root admin 196608 17 Dec 10:09 /.hotfiles.btree
At most 5000 files, and only files less than 10 MB in size are "adopted" under this scheme.
End Quote
Given that Mac OS X defrags itself with use, I only defrag by archiving all my data (user folder) to another hard disk (I have another internal UltraSCSI, and an external 80GB firewire HD), wiping the current operating system, and installing a FRESH operating system. I only do this with major upgrades, like going from Jaguar 10.2.8 to Panther 10.3.2. You can keep things more organized longer by storing your files in large read/write disk images. I think Disk Utility has a preference setting for keeping the disk image optimized when writing to it.
Regarding upgrading to a larger internal hard drive, don't bother, just go get an external FireWire hard drive from GVP (see MacMall.com/ClubMac.com), LaCie, etc... The FireWire drives are REALLY FAST, transportable, reliable, and DO NOT REQUIRE installing drivers - just plug it in and use it (you don't have to power down to plug-in and un-plug the HD). If you install a non-Apple standard internal HD in your computer, you could end up relying on drivers from a third party manufacturer.
For internal hard drives, Apple uses IBM because THESE hard drives have a unique technology that can predict when the hard drive is going to fail. When a hard drive failure is imminent, Mac OS X WILL TELL YOU TO BACKUP YOUR FILES AND GET A NEW HARD DRIVE. This information is in the Panther "Help" for Disk Utility OR the operating system. There are advantages for paying the Apple premium for a personal computer. Don't expect this kind of technology from The Borg.