• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Does Windows defragment your SSD?


A Guy

Righteous Dude
Team Member
VIP Member
Gold Member
Bay Area

Posts
22,923
#1
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.
Source

A Guy
 

My Computer

System One

  • OS
    Windows 7 Home Premium x64
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom
    CPU
    INTEL Core i5-750
    Motherboard
    ASUS P7P55D
    Memory
    KINGSTON HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
    Graphics Card(s)
    EVGA GTX750
    Monitor(s) Displays
    Samsung SyncMaster B2430H 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung 840 Evo 120 GB, 2 x SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
    PSU
    ANTEC TruePower New TP-550, 80 PLUS®, 550W
    Case
    ANTEC Three Hundred Illusion
    Cooling
    COOLER MASTER Hyper 212 Plus, 3 x 120mm 1 x 140mm Case
    Internet Speed
    20 + Mbps
    Browser
    Vivaldi
    Antivirus
    Avast

WiFi Ed

New Member
VIP Member
Member
Posts
146
#2
Interesting! I sometimes disabled System Restore on my Win 8.1 machines, but I won't anymore!
 

My Computer

System One

  • OS
    Windows 8.1 Pro x64
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell E520
    CPU
    Intel Q6700 Core 2 Quad - 2.66 GHz
    Motherboard
    Whatever Dell put in there...
    Memory
    8 GB Mushkin 800 MHz DDR2
    Graphics Card(s)
    NVIDIA GTX 650 - 2 GB GDDR5
    Sound Card
    Integrated
    Monitor(s) Displays
    2 x 19" ViewSonic LCD's
    Screen Resolution
    2560 x 1024
    Hard Drives
    1 Intel X25-M 120G SSD, 2 WD RE4 2TB HD's
    PSU
    PCPower & Cooling Silencer 500 Watt
    Internet Speed
    100/10 Time Warner Cable

whs

New Member
VIP Member
Guru
Germany/Florida

Posts
4,514
#4
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 Computer

System One

  • OS
    Vista and Win7
    System Manufacturer/Model Number
    2xHP, 2xGateway, 1xDell, 1xSony
    Hard Drives
    5 SSDs and 12 HDs

azasadny

Moved to ten*****s.com
VIP Member
Guru
#5
I just installed the Samsung 850 EVO in 250GB in my PC and I'm using the Samsung utilities.
 

My Computer

System One

  • OS
    Win 10 Pro 64bit
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Home built Intel i7-3770k-based system
    CPU
    Intel i7-3770k, Overclocked to 4.6GHz (46x100) with Corsair H110i GT cooler
    Motherboard
    ASRock Z77 OC Formula 2.30 BIOS
    Memory
    32GB DDR3 2133 Corsair Vengeance Pro
    Graphics Card(s)
    GeForce GTX 980ti SC ACS 6GB DDR5 by EVGA
    Sound Card
    Creative Sound Blaster X-Fi Titanium HD, Corsair SP2500 speakers and subwoofer
    Monitor(s) Displays
    LG 27EA33 [Monitor] (27.2"vis) HDMI
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung SSD 850 EVO 250GB (system drive)
    WD 6TB Red NAS hard drives x 2 in Storage Spaces (redundancy)
    PSU
    Corsair 750ax fully modular power supply with sleeved cables
    Case
    Corsair Air 540 with 7 x 140mm fans on front, rear and top panels
    Cooling
    Corsair H110i GT liquid cooled CPU with 4 x 140" Corsair SP "push-pull" and 3 x 140mm fans
    Keyboard
    Thermaltake Poseidon Z illuminated keyboard
    Mouse
    Corsair M65 wired
    Internet Speed
    85MBps DSL
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender, MalwareBytes Pro and CCleaner Pro
    Other Info
    Client of Windows Server 2012 R2 10 PC's, laptops and smartphones on the WLAN.

    1GBps Ethernet ports

sygnus21

Member
VIP Member
Power User
USA

Posts
670
#6
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...

Disk Properties.PNG

Clicking Optimize gets you this UI...

Optimize Drives.PNG

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.

Peace :cool:
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom built by me
    CPU
    Haswell i7-4770K
    Motherboard
    Gigabyte G1 Sniper 5 (BIOS F9)
    Memory
    Corsair Dominator Platinum 32 gig (1866MHz)
    Graphics Card(s)
    Sapphire R9-280 Vapor X
    Sound Card
    Soundblaster ZXR
    Monitor(s) Displays
    NEC PA242W - 24 inch
    Screen Resolution
    1920 x 1200
    Hard Drives
    Samsung 512gig 850 Pro SSD (OS), Samsung 256gig 840 Pro SSD (photo editing), Western Digital Caviar Black 2TB HD
    PSU
    EVGA Supernova 1000 G2
    Case
    Cooler Master HAF X
    Cooling
    Corsair H100i Closed Loop Cooler
    Keyboard
    Logitech Wireless Wave
    Mouse
    Logitech Performance MX
    Internet Speed
    High Speed
    Browser
    IE11
    Antivirus
    Norton Security
    Other Info
    RAM Speed: 1866MHZ @ 9-10-10-27-2T, 1.5v

Users Who Are Viewing This Thread (Users: 0, Guests: 1)