how do we know if TRIM is working?

Nov 26, 2005
15,189
401
126
Some nights ill let my computer run/idle all night to activate a "defrag" session with my SSD, but how do I know if it ran or not?
 

Kippa

Senior member
Dec 12, 2011
392
1
81
Seriously, you defragment an SSD? I don't think that is a good idea as it will wear down the lifespan of your SSD.
 
Last edited:

Blain

Lifer
Oct 9, 1999
23,643
3
81
SSD + Defrag = waste of time and write cycles.

It would be fun to take a fresh (cheapie) SSD and defrag it until it died.
Just to see how long the writing would take to kill it.
 
Last edited:

Stoneburner

Diamond Member
May 29, 2003
3,491
0
76
IF in six months of use your SSD still posts the same speeds, then GC worked. I don't think any third party programs accurately tell you anything, though crystalmark seems to try.
 

billyb0b

Golden Member
Nov 8, 2009
1,270
5
81
run cmd (as admin)

fsutil behavior query DisableDeleteNotify

If the result is '0' TRIM is enabled
If the result is '1' TRIM is disabled
 

LoveMachine

Senior member
May 8, 2012
491
3
81
A mild thread hijack: I ran the cmd line billyb0b mentioned a while ago and noticed TRIM is DISabled. I did a fresh Win7 64 home install on a new M4 SSD, and I thought Windows was supposed to be smart enough to recognize SSDs and enable TRIM during the install. Anyone know how to enable TRIM after installation?

I googlamated the question and some of the fixes involved installing a bit of code that just seemed suspicious to me. Thanks!
 

Hellhammer

AnandTech Emeritus
Apr 25, 2011
701
4
81
A mild thread hijack: I ran the cmd line billyb0b mentioned a while ago and noticed TRIM is DISabled. I did a fresh Win7 64 home install on a new M4 SSD, and I thought Windows was supposed to be smart enough to recognize SSDs and enable TRIM during the install. Anyone know how to enable TRIM after installation?

I googlamated the question and some of the fixes involved installing a bit of code that just seemed suspicious to me. Thanks!

In cmd:

Code:
fsutil behavior set disabledeletenotify 0

I use this code a lot for SSD reviews.
 

razel

Platinum Member
May 14, 2002
2,337
93
101
What billy noted only ensures that TRIM is being passed by the OS. Another nit pick is ensuring that your disk controller is passing TRIM to the drive. At this point of SSD maturity chances are good that disk controller drivers support it, unless you are RAIDing.

Unless you want some heat in your room then leaving your computer run idle just to let garbage collection kick in is a waste of electricity. If you own an Intel or Samsung, you can force GC to run using their toolbox. You can definitely force GC to work by writing excessively, but that is a waste of time and SSD wear. Just use your computer as you normally would and all will be well.

If it ain't broke... then move on and enjoy life. Enjoy the time saved by going SSD.
 

thelastjuju

Senior member
Nov 6, 2011
444
2
0
The internal garbage collection in the current generation of SSDs is a completely separate process from TRIM..

You don't need to even worry about TRIM or any similar "approach" unless you have an early generation SSD.
 

WhoBeDaPlaya

Diamond Member
Sep 15, 2000
7,414
402
126
To be on the safe side, I periodically do a secure erase and restore on my OS SSD (typically when I update the system image every few months).

Seems to be working well - SSDlife is reported as 100% on a ~2 years old Vertex 2 120GB.
 

bbhaag

Diamond Member
Jul 2, 2011
7,249
2,733
146
A mild thread hijack: I ran the cmd line billyb0b mentioned a while ago and noticed TRIM is DISabled. I did a fresh Win7 64 home install on a new M4 SSD, and I thought Windows was supposed to be smart enough to recognize SSDs and enable TRIM during the install. Anyone know how to enable TRIM after installation?

I googlamated the question and some of the fixes involved installing a bit of code that just seemed suspicious to me. Thanks!
Did you enable ahci in the bios before installing Win7 on your ssd?
 
Nov 26, 2005
15,189
401
126
This is an early SSD. The Vertex 100G LE .. I had one fail on me and they gave me a Vertex2 100G. The Vertex 2 is in my other rig.
 

ShadowOfMyself

Diamond Member
Jun 22, 2006
4,227
2
0
Interesting... I just ordered a Samsung 830 a couple days ago and as I am new to this whole SSD thing I was wondering about TRIM as well, but reading this thread, it looks like I wont even need it?

Yes, I did read the sticky, but Im still unclear as to how TRIM/GC works, or why they are even needed in the first place
 

mathurnitin

Junior Member
May 29, 2012
4
0
0
Contrary to the popular belief, I don t think TRIM should lessen down the Life Remaining of an SSD. Trim is issued by the OS (windows 7) when a file is deleted. The OS ensures the blocks are reclaimed for further use. If the OS wouldn't have issued a trim, consider the scenario when a write happens to the untrimmed block. Before writing to flash, it would perform a read, erase and write operation. But when a block is already trimmed, its just a write operation. This should make your SSD perform better.
Coming back to the life remaining of the drive, there are techniques like wear leveling and GC which would take care, that all the blocks are equally degraded.
 

slow_poke

Junior Member
Dec 26, 2011
22
0
0
run cmd (as admin)

fsutil behavior query DisableDeleteNotify

If the result is '0' TRIM is enabled
If the result is '1' TRIM is disabled

All that does is tell you if trim is enabled or not. Nothing can tell you that it is actually working yet.