File System Fragmentation

All file systems suffer from fragmentation.

Let me rephrase that more clearly in case you didn’t quite get it the first time.

ALL FILE SYSTEMS SUFFER FROM FRAGMENTATION <PERIOD>.

It doesn’t matter what file system you use one your computer, if you delete and write files it will become fragmented over time.  Some older file systems (like say FAT and FAT32) had major performance issues as the file system began to fragment, more modern file systems do not suffer as much performance lose from fragmentation, but still suffer.

If you want to argue that your writable file system doesn’t fragment, you haven’t a clue what you’re talking about, so read up on how your file system really works and how block devices work to understand why you just can’t have a file system that doesn’t fragment files or free space or both.

What can you do about fragmentation?

Well, you might not really need to do anything, modern disk drives are fast; and on a computer that’s doing many things at once the fragmentation may not have much of any impact on your performance, but after awhile you’re probably going to want to defragment your files.

The act of copying a file will generally defragment it; most modern file systems will attempt to allocate contiguous space for a file if it can (files that grow over time cannot be allocated contiguous, but they can be defragmented at their current size).

On many operating systems you can actually get programs that are designed to defragment your file system.

How often should you defragment your file system?

Well, I generally recommend you do it right after installing and updating your computer; and then any time you make major changes (large software installation, large update, etc).  But that you not do it automatically or an a routine schedule — there’s not enough benefit to that.

You can also analyze your disk (again using software) to determine how fragmented it is… and then defragment when it reaches some point that you believe represents a performance decrease.

Also, try and keep your disk clean, delete your browser cache, temporary files, duplicate files, and clutter — the less “junk” you have on your disk, the less need there will be for defragmenting.


separator

Related posts:

  • Linux File System Fragmentation I’ve always found it hilarious that *nix bigots (particularly Linux bigots) asserted that their file systems, unlike those found in Windows, didn’t fragment. HA HA...
  • Defragmenting There are many people out there that say that *nix and Mac file systems don’t fragment — only Windows does. They’re dead wrong. [I know...
  • Microsoft Virtual Server and Virtual PC Windows Guest Optimization Keeping a Windows virtual machine running well using a Microsoft virtualization system is fairly simple, and here are the best practices that I’ve come up...
  • Compression There are two distinct features that Windows Server 2008 outshines Linux on; and both are centric on compression. For a very long time Microsoft has...
  • Clean Up Mac droppings on a Windows File System One of the most annoying thing a Mac does when it connects to a Windows network share is leave a .DS_Store file (if the share...
  • Windows Component Clean Utility When you install Windows V6 SP2 you will also get the Component Clean Utility (compcln.exe). This utility will remove previous component versions from your computer,...
  • Cleaning Up Windows Thumbs.db I just don’t understand why Windows litters thumbs.db files all over the disk. Yeah it might be quicker to get thumb nail images from that...
  • Cloning a VirtualBox Hard Disk Sure it’s easy to install an operating system from scratch in VirtualBox, but it’s much easier (and quicker) to keep a base library of OS...
  • Virtulization, Virtulization, Virtulization For a decade now I’ve been a fan of virtulization (of course, that’s partially predicated on understanding what virtualization is, and how it works —...
  • Anti-Malware Programs First, malware is a reality and no operating system is immune to it. Malware is most common on operating systems that are prevalent (no reason...

separator