Published by


Brink's Avatar
Administrator

Join Date: Jul 2009
Posts: 21,615

How to Check and Enable or Disable SSD TRIM Support in Windows 7 and Windows 8


information   Information
The TRIM command helps to maintain the performance of solid state drives (SSDs) at an optimal level over the lifetime of the drive. TRIM functions by actively deleting invalid data from the SSD’s memory cells to ensure that write operations perform at full speed. Since a memory block must be erased before it can be re-programmed, TRIM improves performance by pro-actively erasing pages containing invalid data, allowing the SSD to write new data without first having to perform a time-consuming erase command.

EXAMPLE:

  1. SSD pages contain no data.
  2. User writes data to SSD pages.
  3. User deletes some data. Pages are marked as "not in use" by the OS, but data remains on SSD.
  4. TRIM command tells SSD controller that pages contain invalid data. Pages with invalid data are cleaned.
  5. Data is written back to SSD memory cells. The invalid data had been cleaned and data is able to be written to the pages at full speed.


For more information about TRIM support, see:




This tutorial will show you how to check the current status of TRIM support for SSDs, and to enable or disable TRIM in Windows 7 and Windows 8.

You must be signed in as an administrator to be able to do the steps in this tutorial.

Note   Note
TRIM Support Requirements:

  • Windows 7 or Windows 8
  • SSD with TRIM enabled firmware
  • BIOS/UEFI storage controller set to AHCI/SATA mode




Here's How:

1. Open an elevated command prompt in Windows 7 or Windows 8, and do step 2, 3, or 4 below for what you would like to do.

2. To Check if TRIM Support for SSDs is Enabled or Disabled

A) In the command prompt, copy and paste the command below, and press Enter. (see screenshot below)


fsutil behavior query disabledeletenotify


B) Compare the results you got to the note box below to see if TRIM support is currently enabled or disabled, and go to step 5 below.


Note   Note
DisableDeleteNotify = 1 = TRIM support disabled

DisableDeleteNotify = 0 = TRIM support enabled



Click image for larger version

3. To Enable TRIM Support for SSDs
NOTE: This is the default and recommended setting.

A) In the elevated command prompt, copy and paste the command below, press Enter, and go to step 5 below. (see screenshot below)

fsutil behavior set disabledeletenotify 0


Click image for larger version

4. To Disable TRIM Support for SSDs

A) In the elevated command prompt, copy and paste the command below, press Enter, and go to step 5 below. (see screenshot below)

fsutil behavior set disabledeletenotify 1


Click image for larger version

5. When finished, you can close the elevated command prompt if you like.




That's it,
Shawn