Windows 7 and Optimization for Solid State Drives

Solid state drives are in our computing futures. While prices right now make them mostly impractical for those of us without unlimited cash cheat codes, prices will fall and we’ll be buying more of them instead of the standard magnetic, spinning hard disk drives.

Perhaps by the time that SSDs are affordable, we’ll still be using Windows 7 (which means within the next few years). Thankfully, Microsoft has included several features in Windows 7 that accounts for the presence of an SSD.

“Windows 7 tends to perform well on today’s SSDs, in part, because we made many engineering changes to reduce the frequency of writes and flushes. This benefits traditional HDDs as well, but is particularly helpful on today’s SSDs,” wrote Michael Fortin, one of Microsoft's Distinguished Engineers, in the Engineering Windows 7 blog.

When a solid state drive is present, Windows 7 will disable disk defragmentation, Superfetch, ReadyBoost, as well as boot and application launch prefetching.

“These technologies were all designed to improve performance on traditional HDDs, where random read performance could easily be a major bottleneck,” explained Fortin.  

One of the more notable advancements in Windows 7 is support for the Trim command. The reason for the command deals strictly with the way that data is written to NAND memory. For an exceptional explanation of why Trim is important, check out AnandTech’s article on the topic.

Fortin detailed how Trim will work in the upcoming OS:

“In Windows 7, if an SSD reports it supports the Trim attribute of the ATA protocol’s Data Set Management command, the NTFS file system will request the ATA driver to issue the new operation to the device when files are deleted and it is safe to erase the SSD pages backing the files. With this information, an SSD can plan to erase the relevant blocks opportunistically (and lazily) in the hope that subsequent writes will not require a blocking erase operation since erased pages are available for reuse.

“As an added benefit, the Trim operation can help SSDs reduce wear by eliminating the need for many merge operations to occur. As an example, consider a single 128 KB SSD block that contained a 128 KB file. If the file is deleted and a Trim operation is requested, then the SSD can avoid having to mix bytes from the SSD block with any other bytes that are subsequently written to that block. This reduces wear.

“Windows 7 requests the Trim operation for more than just file delete operations. The Trim operation is fully integrated with partition- and volume-level commands like Format and Delete, with file system commands relating to truncate and compression, and with the System Restore (aka Volume Snapshot) feature.”

Marcus Yam
Marcus Yam served as Tom's Hardware News Director during 2008-2014. He entered tech media in the late 90s and fondly remembers the days when an overclocked Celeron 300A and Voodoo2 SLI comprised a gaming rig with the ultimate street cred.
  • krazyderek
    So is this indeed a feature that is active now in RC 1 or win7? And if so, is it completely automatic and auto detected?
  • darkguset
    "When a solid state drive is present, Windows 7 will disable disk defragmentation, Superfetch, ReadyBoost, as well as boot and application launch prefetching."

    Does that mean that if you have a mix of HDDs and SSDs, those features will be completely disabled or just disabled on the SSD drives? It is not quite clear on that.
  • crisisavatar
    glad to hear this
  • solymnar
    Total speculation on my part but since windows incarnation of defrag, etc. does it per hard drive I would "guess" that it will also turns off such things and enables this "trim" operation per hard drive as well.
  • eklipz330
    cant wait for some benchmark comparisons
  • burnley14
    I wish I knew those unlimited cash cheat codes . . .
  • squarewheel
    Say "dncashman", and then press space for money!

    Bonus points if you get the reference.
  • dimaf1985
    shake it baby
  • apache_lives
    "what are you, some bottom feeding scum sucking algae eater?"
    "dam, im looking good"
    "dam, your ugly"
    "dont have time to play with my self"

    gawd i love the classic old days - favourite game of all time for me
  • jacobdrj
    Last night I was JUST about to install W7RC on my TX2500Z. I got distracted, and opted to set up a Media Computer on the same platform. Vista worked fine, but W7RC needed some tweaking. Thank you nVidia for posting W7 drivers! So far, it seems a RAID-0 array of 3 36GB 1st generation Raptors is in fact slower than my 1 OCZ Vertex 60GB SSD at the installation of Windows (Vista Ultimate x32 or W7RC)