Windows 8 and 8.1 Forums

Does Windows defragment your SSD?

  1. #1

    Bay Area
    Posts : 21,837
    Windows 7 Home Premium x64

    Does Windows defragment your SSD?

    The real and complete story - Does Windows defragment your SSD?

    Storage Optimizer will defrag an SSD once a month if volume snapshots are enabled. This is by design and necessary due to slow volsnap copy on write performance on fragmented SSD volumes. It’s also somewhat of a misconception that fragmentation is not a problem on SSDs. If an SSD gets too fragmented you can hit maximum file fragmentation (when the metadata can’t represent any more file fragments) which will result in errors when you try to write/extend a file. Furthermore, more file fragments means more metadata to process while reading/writing a file, which can lead to slower performance.

    As far as Retrim is concerned, this command should run on the schedule specified in the dfrgui UI. Retrim is necessary because of the way TRIM is processed in the file systems. Due to the varying performance of hardware responding to TRIM, TRIM is processed asynchronously by the file system. When a file is deleted or space is otherwise freed, the file system queues the trim request to be processed. To limit the peek resource usage this queue may only grow to a maximum number of trim requests. If the queue is of max size, incoming TRIM requests may be dropped. This is okay because we will periodically come through and do a Retrim with Storage Optimizer. The Retrim is done at a granularity that should avoid hitting the maximum TRIM request queue size where TRIMs are dropped.

    A Guy

      My System SpecsSystem Spec

  2. #2

    Posts : 146
    Windows 8.1 Pro x64

    Interesting! I sometimes disabled System Restore on my Win 8.1 machines, but I won't anymore!
      My System SpecsSystem Spec

  3. #3

    Posts : 15
    Windows 8.1

    The Samsung SSD I have has its own trim commands. I just would use that software I felt like I needed to.
      My System SpecsSystem Spec

  4. #4

    Posts : 4,514
    Vista and Win7

    For garbage collection to efficiently work, I run my systems from time to time with only the BIOS on. Then there is no R/W activity on the SSD but the SSD is under power.
      My System SpecsSystem Spec

  5. #5

    I just installed the Samsung 850 EVO in 250GB in my PC and I'm using the Samsung utilities.
      My System SpecsSystem Spec

  6. #6

    Posts : 689
    Windows 8.1 Pro with Media Center

    To those who like to turn off System Restore

    For those who like to turn off System Restore, and have SSD drives, head this...

    A bit of advanced info here - Defrag will only run on your SSD if volsnap is turned on, and volsnap is turned on by System Restore as one needs the other. You could turn off System Restore if you want, but that turns off a pretty important safety net for Windows.
    Thus when you disable (turn off) System Restore, you disable Windows Storage Optimizer, which handles both Defrag and TRIM...

    SSDs also have the concept of TRIM. While TRIM (retrim) is a separate concept from fragmentation, it is still handled by the Windows Storage Optimizer subsystem and the schedule is managed by the same UI from the User's perspective.
    So if you're getting bad HD and SSD drive performance... you might want to re-enable System Restore. Or at the very least, manually run the Optimize Drives UI. The easiest way to get to it is to right click any HD, choose properties, and Optimize...

    Click image for larger version

    Clicking Optimize gets you this UI...

    Click image for larger version

    You can also go get to the above by going Control Panel, Administrative Tools, Defragment and Optimize Drives. And clicking on Change Settings allows you to schedule and choose which drives to optimize.

    At any rate, it really is worth reading the article A Guy linked to as there's some good FUD killing info there. Excellent article.

      My System SpecsSystem Spec

Does Windows defragment your SSD?
Related Threads
I have a RAID 0 array consisting of 4x WD Black. Windows lists the array as an SSD in the optimize/defragmenter UI. Both 'Analyze' and 'Optimize' are greyed out and therefore I cannot defragment the array. How do I fix this? For the record I have the latest BIOS for my motherboard (which is an...
Solved defragment D in Performance & Maintenance
I recently installed a defrag program called auslogics it says it defragged both C and D? I thought there was no access to D because it is my backup and restore disk? now i'm worried that D might have been compromised? HP pavilion g6-2225nr Win 8 x64 V6.2 IE 10:think:
Eight Forums Android App Eight Forums IOS App Follow us on Facebook