How to schedule trim for SSD.

Aakash singh43

Distinguished
Jan 22, 2014
100
0
18,690
Hi! Friends i had just started using SSD a month ago and i've read somewhere in forums let the trim go wild. When i open windows utility for triming, it is set to daily but if i don't run it manually it doesn't do anything.
Same goes to sandisk dashboard it doesn't do anything automatically, it says to see windows schedule task. When i click on it, windows task scheduler opens and i can't understand anything from it.
Is it necessary to run trim automatically, if yes please guide me how to do it.
And trim is enabled for my ssd.
 
Solution
WOW! Lots of misinformation and misconceptions about TRIM and what it does.

Tom's Hardware published their first ssd review in 2006 - 10 years ago. It was a Samsung prototype. During those early days ssd's used "garbage collection" to search for user deleted data, erase the deleted data, and prepare the data block that contained the deleted data for reuse. To this day, ssd's still use garbage collection. It still works quite well. That part has not changed.

The point to remember is that during garbage collection an ssd has to actively search for the user deleted data. A few of the early technical reviews thought searching for deleted data would decrease an ssd's longevity by reducing the number of times data can be written to and...

Rogue Leader

It's a trap!
Moderator
As long as the SSD is kin AHCI mode trim runs automatically. Its not like defragging where its a process that runs and you know it, it just runs in the background. If for some reason you set up your SSD as IDE then there is no way to enable it, you need to switch it in your BIOS to AHCI.
 
I believe what he means is that in Disk Defragmenter, setting up Optimization to run periodically on the SSD doesn't show that it is being done as scheduled. My Windows 10 is the same way. The last time optimized date is always the last time I did it manually and never automatically on the weekly schedule. As Rogue Leader stated, it will run anyway regardless of the schedule you set.

http://www.howtogeek.com/256859/dont-waste-time-optimizing-your-ssd-windows-knows-what-its-doing/
 

Rogue Leader

It's a trap!
Moderator


And definitely never run defrag on an SSD, there is no benefit and if anything it actually shortens your SSD's life.
 
WOW! Lots of misinformation and misconceptions about TRIM and what it does.

Tom's Hardware published their first ssd review in 2006 - 10 years ago. It was a Samsung prototype. During those early days ssd's used "garbage collection" to search for user deleted data, erase the deleted data, and prepare the data block that contained the deleted data for reuse. To this day, ssd's still use garbage collection. It still works quite well. That part has not changed.

The point to remember is that during garbage collection an ssd has to actively search for the user deleted data. A few of the early technical reviews thought searching for deleted data would decrease an ssd's longevity by reducing the number of times data can be written to and erased from a data block. There was very little information and a lot of speculation. That has changed. We now know that ssd's can last quite a long time and the effects garbage collection on ssd longevity is insignificant.

TRIM is a feature that was first added to Microsoft Windows 7. The feature was designed to compliment an ssd's garbage collection. TRIM is initiated when a user deletes data from an ssd. It is a message from Windows to the ssd indicating that a user has deleted data. In addition the TRIM message also provides the location of the deleted data. The idea is that during garbage collection the ssd no longer has to search for the deleted data. When Microsoft first introduced TRIM not all ssd's could read and understand the message. Modern ssd's no longer have that problem.

When an ssd receives a TRIM message from Windows it may or may not immediately start garbage collection. If an ssd starts garbage collection immediately upon receipt of the TRIM message it is known as aggressive garbage collection. If the ssd waits until the system is in an idle or near idle state, then it is known as passive garbage collection. The vast majority of modern ssd's use passive garbage collection.

There are some utilities that can trigger garbage collection. It is typically called ssd "optimization" and may or may not include a few other processes as well. An example would be the Optimization feature in toolkits and utilities provided by some ssd companies. Third party utilities with an optimization feature are also available.

The Windows TRIM feature is enabled by default. In order to disable TRIM a user would have to open the Windows registry and manually disable it.

I recommend you leave things alone. The Windows TRIM feature and ssd garbage collection will take care of themselves automatically. Garbage collection may not take place right away due to passive collection; however, it will happen when the time is right.


 
Solution

Aakash singh43

Distinguished
Jan 22, 2014
100
0
18,690


Thanks for understanding.
I know that defragmentation is not for ssd, but windows 10 automatically detects ssd and run trims on it and defrag hdd.
My bios is running on ahci mode since day one. But windows still don't run it automatically. I've to manually go there to do trim. May be windows does trim automatically when a lot of data is deleted from ssd. Because i've seen windows has done nothing for a month, then i've to do it manually.
 

Rogue Leader

It's a trap!
Moderator


Take a look at the prior answer above, Windows manages and runs it in the background. There is no need for you to do it on your own. You will not see the size increase or decrease because trim works on deleted data that is no longer addressed.
 


My guess is that the scheduling function for optimization in Disk Defragmenter is meant for the HDD's and not really for the SSD, as it is done automatically. You are just given an option there to run it manually.
 

Palorim12

Distinguished


Samsung SSD's run GC actively, so its as soon as you Empty the Recycle Bin, GC and TRIM go to work on the SSD. They don't wait till Idle.



Saw this gem. TRIM runs automatically in IDE mode as well, it is not dependent on AHCI.
 

Rogue Leader

It's a trap!
Moderator


In Windows 7 TRIM only runs automatically in AHCI mode, the only way to run TRIM in IDE mode is to install an additional tool such as Intel SSD toolbox, or manually run it. So while part of my statement was not completely correct, (although I do not know if the scheduler will work in IDE, it can be done manually) in his case what is most likely happening is its running automatically which is why he can't schedule it.

As an aside whether I am right or wrong, "saw this gem" is condescending and rude, you might want to try having a little more levity when dealing with people here.
 
Palorim12 - "Samsung SSD's run GC actively, so its as soon as you Empty the Recycle Bin, GC and TRIM go to work on the SSD. They don't wait till Idle."

That is correct. According to a white paper Samsung uses their own non-standard, proprietary version of aggressive garbage collection.

OP mentioned SanDisk dashboard utility which suggests SanDisk ssd. Not sure which they are using.
 

Palorim12

Distinguished


TRIM runs automatically once Garbage collection is initiated, doesn't matter if its IDE or AHCI. TRIM is an ATA command. TRIM is non-specific to either SATA controller mode.