Skip to main content

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:

  1. The SSD or NVMe must support TRIM/Deallocate (standard on almost all models since ~2010).
  2. Controller in AHCI or NVMe mode:
    • SATA SSDs: AHCI mode
    • NVMe SSDs: natively via the NVMe protocol
  3. No RAID array: TRIM only works with single drives and basic disks.
  4. 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 TypeController/PortModeDriverNote
SATA SSDChipset SATA portAHCIWindows standard AHCI driver–
SATA SSDChipset SATA port (Intel/AMD)AHCILatest vendor driversKeep drivers up to date
SATA SSDSecondary controller SATA portAHCIWindows standard AHCI driverVendor drivers often incompatible
NVMe SSDOnboard NVMe port (PCIe)NVMeWindows standard NVMe driverFully TRIM-compatible
SATA SSDChipset port in RAIDRAIDLatest Intel/AMD driversTRIM only with single drive
SAS SSDSAS controller (e.g., LSI, Adaptec)–Current firmware & driversMust implement SAT layer

Checklist: Is TRIM active?​

  1. Open Command Prompt with admin rights

    • Start menu → type “cmd” → right-click → Run as administrator.
  2. Run the command

    fsutil behavior query DisableDeleteNotify
  3. Interpret the output

  • DisableDeleteNotify = 0 → ✅ TRIM is active
  • DisableDeleteNotify = 1 → ❌ TRIM is disabled
  1. 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.