TRIM compatibility
The TRIM feature is critical for maintaining the lifespan and performance of SSDs.
O&O Defrag helps you ensure your system is TRIM-capable and provides solutions for common configuration issues.
What is TRIM?
- Flash memory cells in SSDs have a limited number of write cycles.
- To achieve even wear, the SSD controller spreads writes across as many cells as possible (wear leveling).
- The TRIM command tells the SSD which data blocks are no longer in use and can be reused.
- Result:
- Fewer unnecessary writes
- Longer lifespan
- More stable performance
Requirements for TRIM
For TRIM to work, four conditions must be met:
- The SSD or NVMe must support TRIM/Deallocate (standard on almost all models since ~2010).
- Controller in AHCI or NVMe mode:
- SATA SSDs: AHCI mode
- NVMe SSDs: natively via the NVMe protocol
- No RAID array: TRIM only works with single drives and basic disks.
- Driver support: The controller/NVMe driver must not block TRIM commands.
- Safe: Windows 10/11 standard AHCI or NVMe drivers
- Vendor drivers only if they explicitly support TRIM.
Enable AHCI on Windows 8/8.1, 10, and 11
If your system runs in IDE mode, set the following registry values before switching the BIOS to AHCI:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci]
"Start"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci\StartOverride]
"0"=dword:00000000
Then open the BIOS → change SATA mode from IDE to AHCI.
Restart → Windows 8/8.1/10/11 will now boot in AHCI mode.
NVMe SSDs and TRIM
- NVMe SSDs use NVMe Deallocate (Dataset Management) instead of classic ATA TRIM.
- Since Windows 8.1, this command has been supported natively; in Windows 10 and 11, it is enabled automatically.
- No special settings required → as long as Windows uses the standard NVMe driver, TRIM is active.
Common problem cases
- IDE mode active → TRIM blocked → Solution: switch to AHCI.
- Marvell controller with vendor drivers → TRIM blocked → Solution: use Windows’ standard AHCI driver.
- RAID array → TRIM does not work → Solution: connect SSD as a single drive.
Validated TRIM-capable configurations
| SSD Type | Controller/Port | Mode | Driver | Note |
|---|---|---|---|---|
| SATA SSD | Chipset SATA port | AHCI | Windows standard AHCI driver | – |
| SATA SSD | Chipset SATA port (Intel/AMD) | AHCI | Latest vendor drivers | Keep drivers up to date |
| SATA SSD | Secondary controller SATA port | AHCI | Windows standard AHCI driver | Vendor drivers often incompatible |
| NVMe SSD | Onboard NVMe port (PCIe) | NVMe | Windows standard NVMe driver | Fully TRIM-compatible |
| SATA SSD | Chipset port in RAID | RAID | Latest Intel/AMD drivers | TRIM only with single drive |
| SAS SSD | SAS controller (e.g., LSI, Adaptec) | – | Current firmware & drivers | Must implement SAT layer |
Checklist: Is TRIM active?
-
Open Command Prompt with admin rights
- Start menu → type “cmd” → right-click → Run as administrator.
-
Run the command
fsutil behavior query DisableDeleteNotify -
Interpret the output
DisableDeleteNotify = 0→ ✅ TRIM is activeDisableDeleteNotify = 1→ ❌ TRIM is disabled
- Check NVMe (optional)
Open Windows PowerShell and enter:
Get-PhysicalDisk | Select FriendlyName, MediaType, TrimEnabled
Column TrimEnabled shows True if TRIM is active.
note
If TRIM is disabled, check BIOS settings, drivers, and controller mode. With RAID or older add-on controllers, TRIM is often not available.