android (3)
ant (2)
beautifulsoup (1)
debian (1)
decorators (1)
django (9)
dovecot (1)
encryption (1)
fix (4)
gotcha (2)
hobo (1)
htmlparser (1)
imaplib (2)
java (1)
json (2)
kerberos (2)
linux (7)
lxml (5)
markdown (4)
mechanize (6)
multiprocessing (1)
mysql (2)
nagios (2)
new_features (3)
open_source (5)
optparse (2)
parsing (1)
perl (2)
postgres (1)
preseed (1)
pxe (4)
pyqt4 (1)
python (41)
raid (1)
rails (1)
red_hat (1)
reportlab (4)
request_tracker (2)
rt (2)
ruby (1)
scala (1)
screen_scraping (7)
shell_scripting (8)
soap (1)
solaris (3)
sql (2)
sqlalchemy (2)
tips_and_tricks (1)
twitter (2)
ubuntu (1)
vmware (2)
windows (1)
zimbra (2)

If you've used a Windows installation for an extended period, six months or more, then you may have noticed the system gets slower and slower as time passes. This is what I call Windows Entropy.

The main cause is the New Technology File System, or NTFS.

When you first install Windows, or format a new NTFS partition, a few things are created. The two that matter here are:

  • The Master File Table, or MFT, which is usually contiguous, reserved space for storing file metadata, like location, size, acls, and timestamps.

  • The unreserved space, where data is placed.

Initially, the data and metadata are close together on the disk. As the data grows to fill the available space, the distance between the metadata and data grows because Windows will try to keep the MFT contiguous and in one spot source. This distance increases seek time, which slows the whole system down because metadata is accessed frequently.

What makes it worse is the partition does not have to fill up to much cause this. If you delete a file and create a new same size or smaller file, Windows may not place the new file in the space of the old file. The data may be placed instead sparsely source. This further increases the distance between the data and the MFT. Other file systems do this as well because it avoids fragmentation by giving files room to grow, which is exactly why Microsoft implemented it in NTFS5. These other systems do not try to store their metadata in one contiguous space though. Ext2, for instance, stores its metadata in inodes, which reside in block groups, which are placed throughout the partition source.

Posted by Tyler Lesmann on October 25, 2007 at 14:52
Tagged as: windows