SSD on-demand TRIM

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
Hi guys,

I have the Samsung ssd 850 Pro and Win 7 Pro x64. I know i got the native trim support cos I've already checked that. And as far as I know the ssd is trimmed while it's idle. I guess that explains why sometimes when I just leave my pc idle for a while, the fan all of a sudden start going fast. I think it's in that moment that the ssd is being trimmed. So, as I said, fan goes really fast for about 3-4 minutes and then it stops, indicating that whatever it was doing is finished. Correct me if I'm wrong, but that is trim taking place there, right?

My question is - can I (and how do I) disable that automatic trim procedure and run it on demand, whenever i want? Cos I leave my pc on during nights sometimes and it's annoying when all of a sudden the fan goes crazy and wakes me up. (as I said above, I'm pretty sure the fan does that cos of TRIM)

On my android phone, for example, I use this app for trimming, whenever I want
https://play.google.com/store/apps/details?id=com.fifthelement.trimmer&hl=en

And a small research revealed this PC app to be somewhat similar, but I haven't tried it.
http://www.tweaktown.com/articles/5712/solid-state-doctor-ssd-utility-suite-3-0-software-overview/index4.html

So before I try it, or any other app, I wanted to ask you guys if you know of a good app that can do what I'm asking here. Also (as mentioned above) - how to disable the auto TRIM which the OS performs on it's own?
 
It could be some auto-maintenance routine that windows runs, but it isn't TRIM. TRIM won't cause your fan to engage-it is something the drive does pretty much independent of the rest of the system. It won't use CPU cycles and it won't generate much or any extra heat.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
Thanks! Well to rule out that it isn't trim I'd like to do what i described in the initial post. So that's why i'm asking for an advise for an app that can let me manually trim whenever i want (while the auto trim from the OS is disabled [and hot to achieve that actually]).
 
Your ssd is not the cause of the fan speeding up.

What fan do you mean? CPU fan, GPU fan, case fan, or something else?

Did you check your motherboard's system BIOS. The BIOS has fan settings for the CPU heatsink and several additional fans. The fan(s) might be set to increase rpm based on an increases in cpu temperature. The settings might be off.

Check the fan settings for your graphics card too.

In all probability the problem is a Windows setting. When at idle the cpu is not actually 100% idle. There will be some fluctuations. Sometimes one of the cpu cores might hit as much as 30% usage when Windows is running something automatically in the background.

What applications and utilities do you have running in the background?

TRIM is a feature that was first introduced in Windows 7. It is designed to complement an ssd's garbage collection. In its simplest form TRIM is nothing more than a message from Windows to your ssd. The message is sent when you delete data from the ssd. The TRIM message notifies the ssd that you deleted data and it gives the location of the deleted data. By providing the exact location of the data you deleted it actually makes ssd garbage collection more efficient. Prior to TRIM, ssd's had to search for the data you deleted. In essence, TRIM speeds up garbage collection.

Once an SSD receives a TRIM message from Windows, it may or may not start garbage collection. Garbage collection is a common term for the process of actually deleting data and preparing the ssd data blocks for reuse. It does this with a small electrical charge. There are two types of garbage collection - aggressive and passive. Aggressive garbage collection is when an ssd starts the process immediately after receiving a TRIM message. Passive garbage collection is when a TRIM message is received but the ssd waits until the cpu is at idle or near idle before starting the process. Samsung uses passive garbage collection.

You can disable the TRIM feature by accessing the Windows registry and manually disabling it. However, the ssd will no longer know the location of the deleted data. On the other hand you can manually force garbage collection. Sometimes individuals incorrectly use the word TRIM as in "forcing trim" when what they actually mean is forcing garbage collection.

If you haven't already done so, then download and install the Samsung Magician utility from the Samsung web site. You can use it to force garbage collection. Under Disk Management click on Performance Optimization and then click on Start. There is a downside. During the performance optimization the ssd will enable TRIM in the Windows registry because it makes garbage collection more efficient. Otherwise the ssd will spend more time searching for the deleted data and use more resources.

BTW - I just used the Samsung Magician to force garbage collection on a Samsung 840 EVO 256GB ssd. The entire performance optimization, including garbage collection, took only 4 seconds. Naturally the time for completion will vary depending on circumstances.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
Thanks for your extensive reply! I have the 'HP Pavilion dv7-6b76eo' notebook and it has only 1 fan and that, to my knowledge, is the fan of the CPU. Yes, you might be right ... I might be using the terms 'trim' and 'garbage collection' wrong. Whichever one of the 2 it is, it happens only when my notebook is idle and happens for 3-5 minutes or so and then fan stops spinning again. And as u said Samsung use passive garbage collection so that is why I though that what was causing my fan to go crazy was something related to the ssd.

Thank you for the tip on disabling trim in the registry and then manually performing TRIM/garbage collection (not sure which one of them 2 i mean) via Magician software. However, quite sad to read that once running the Performance Optimization it re-enables TRIM in the Windows registry. That's why I though I could use another 3rd party app that can allow me to perform TRIM/garb. collection without re-enabling TRIM in registry? Isn't there one? http://www.tweaktown.com/articles/5712/solid-state-doctor-ssd-utility-suite-3-0-software-overview/index4.html perhaps? Or isn't there another way to achieve what I'm trying?

Thanks in advance to all of you! :)
 
Notebook explains why you mentioned just one fan.

I am not familiar with the type of utility you are asking about because I do case mods and build custom pc's. My current pc has four 140mm intake fans, four 140 mm exhaust fans, and three 140mm cpu heatsink fans. Temperature is not an issue.

I took a look at the TweakTown article. Looks like it would be a nice replacement for Windows TRIM and the Samsung Magician ssd optimizaion. What interested me was the fact that the utility keeps track of the location of deleted data and TRIM / garbage collection can be scheduled for a specific time of day.

Give it a try and let us know what happens. One of the fun parts of doing it yourself is being able to experiment and find out what works best for you.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
As I said could anyone please let me know what registry edits I need to implement in order to stop the windows 7 default trim operation?

PS - ok, I followed this- http://forum.corsair.com/v3/showthread.php?t=86403 and i think it's ok.

The only question now is how often to set up Solid State Doctor to perform the trim? It has 2 options only. Either once a day or once a week. Which one is better? I would think once a week is too seldom, no?
 
How to disable TRIM in Windows 7:

http://mywindowshub.com/check-enable-disable-ssd-trim-support-windows-7-windows-8-1/

I have a suggestion. Before disabling TRIM in Windows download and install Core Temp:

http://www.alcpu.com/CoreTemp/

It is a free utility that monitors cpu temperatures. I use it when running tests and experiments. Start the utility and let it run during the night. The utility records the current temp of each cpu core, the minimum core temperatures, and the maximum core temperatures. Tell us what the maximum cpu temps were during the night.

 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
Thanks! Will do! However, I already managed to disable TRIM (will re-enable it to do what u requested), but my question was about the moment when I have TRIM by OS disabled and I rely on Solid State Doctor to perform the scheduled trim. So, in Solid State Doctor there are 2 options only for TRIM. Either once a day or once a week. Which one is better?
 
Windows sends the TRIM message to the ssd when a consumer deletes data. Windows does not do it on a regular schedule.

edit - I did a little research. According to several sources it is not necessary to schedule TRIM on a daily basis. In fact, there is no need to schedule TRIM at all. Instead, the recommendation is to manually run TRIM whenever you "feel" that ssd performance "might" be lagging.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
Wow, so it's like that. I see then. Thanks! Well, just wanna share the following cos i think it matters in the overall context. My notebook has 2 internal drives. An SSD 256gb, only for my OS. And a 1TB HDD where i store everything (my Desktop is also there, in order to limit reads/writes to the SSD). So ... not much deleting, ON MY PART (at least), happens on the SSD. Not sure what Win7 does with its background processes, reads, writes, though. I guess it deletes stuff now and then, if not even more often.

1. Then I guess i will schedule SS Doctor to trim the SSD every day?
2. Does TRIM/garbage collection wear down the SSD? I guess it does since it deletes the date, marked to be deleted.
 
1. I edited my previous post with information about scheduling TRIM. Not really necessary.

2. Yes, the TRIM/garbage collection process is something that wears down flash memory. However, is not a serious problem for consumers. For years now some individuals have been concerned that the flash memory in an ssd will wear our rather quickly. Part of the problem is that technical reviews sometimes mention that the flash memory will eventually wear out. Some readers overreact to the information. Then readers overreacted a second time when they read that newer types of flash memory will wear out quicker than older types of flash memory. What concerned individuals failed to realize is that it is still going to take a really long time to wear out the flash memory. Essentially some individuals made mountains out of molehills.

There are excellent web sites that publish technical reviews of ssd's. The Tech Report is a site that actually took the time to measure ssd endurance. The test took 18 months of continuous 24/7 operation just writing and erasing data over and over and over. The results were amazing. It turns out that ssd manufacturers and most technical reviews underestimated just how long an ssd can last.

Here are the links to all of their reports / updates:

http://techreport.com/review/24841/introducing-the-ssd-endurance-experiment

http://techreport.com/review/25320/the-ssd-endurance-experiment-22tb-update

http://techreport.com/review/25559/the-ssd-endurance-experiment-200tb-update

http://techreport.com/review/25681/the-ssd-endurance-experiment-testing-data-retention-at-300tb

http://techreport.com/review/25889/the-ssd-endurance-experiment-500tb-update

http://techreport.com/review/26058/the-ssd-endurance-experiment-data-retention-after-600tb

http://techreport.com/review/26523/the-ssd-endurance-experiment-casualties-on-the-way-to-a-petabyte

http://techreport.com/review/27062/the-ssd-endurance-experiment-only-two-remain-after-1-5pb

http://techreport.com/review/27436/the-ssd-endurance-experiment-two-freaking-petabytes

http://techreport.com/review/27909/the-ssd-endurance-experiment-theyre-all-dead

BTW - You mentioned a Samsung 850 Pro ssd. The Samsung warranty for that model is 10 years. Based on what we know is in the works, the 850 Pro will be obsolete long before the warranty expires.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
Alright, so it turns out it's better to have the Windows TRIM command turned off and just trim whenever user wants to by using an app such as Solid State Doctor. At first I didn't know if I could trust this app, but now it seems alright actually. It just never got good press, but who knows. Maybe that actually makes it good. Would love to try another similar app though. Do you know of any?

And when I say that I mean an app not related to the manufacturer of the ssd, as is Magician, for example. Don't know if I should trust those apps. And sometimes Magician is not that magical, especially after that firmware update v2 it pushed and bricked a couple of million SSDs out there.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
As you requested, I'm now delivering :) Here are the results from overnight. Have to check this night again though.

There's something very suspicious there. (yes, I did reset high/low values before going to bed so those temps are only based on what happened while pc was not in use). So since I installed the app yesterday afternoon I see that all 4 cores are normally at about 50 degrees. Both at idle and at light use of the pc. However, the app screenshot shows that overnight temps reached 70-80 degrees and I just left my pc doing nothing ... so that's weird. Then that may sort of prove my point that something indeed is happening in the background, while pc is idle, which might be causing crazy fan speeds at times for no evident reason. Funnily enough I did not hear the crazy fan last night, but maybe i was asleep too deep (or maybe there was no need for TRIM cos I had already done it manually several times during the day with SS Doctor). To rule out my not being able to hear the crazy fan due to deep sleep :), I will leave pc unused during daytime and will be around to see if fan goes crazy again.

And as you instructed me, for running this test with CoreTemp, I did have TRIM from the OS enabled to see if possibly it could be causing the high temp issue. Not that we can tell just yet, but still. The answer to that question will come when I manage to 'catch' the problem again with OS TRIM enabled and then I test with OS TRIM disabled and see that it consistently does not occur. That will then show that it's the OS TRIM that's the culprit. And the solution to that would be to run TRIM manually.

1. Is high temp the only reason why cpu fan kicks in and goes crazy sometimes?
2. Since it turns out it's better that user do TRIM manually do you know of any good app similar to Solid State Doctor, which can do that. 'Solid State Doctor' was just the first and most random thing I tried. Magician is not really an option here, cos as you said, it always re-enables the OS trim option in windows registry after manually running a trim with it.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
2nd night in a row with OS trim enabled ... same temp stats. See here. WEIRD. Normal running core temp is 50-ish degrees C. Isn't there a way to see what caused those high temps or at what time they occurred or sth. Hm ... ok, will also test during daytime, not when sleeping.
 
Thanks for posting the cpu core temps. Those temps are for the cores embedded within the cpu. I did a little research over at Intel and discovered that technically the cpu core temps are within normal operating temperatures. The maximum temperature for your cpu is 100C. I found numerous threads in different forums posted by users who were concerned about the temps. Veteran posters and Intel maintain that temps between 45C to 50C at idle and 70C to 75C at 100% load for your specific cpu are considered acceptable. The general consensus is that an ssd would not cause a cpu to overheat.

Here are some things to check:

Improperly mounted heatsink(s), either not attached correctly or the thermal interface compound was improperly applied (if at all).

Blocked fans / airflow. Clean out the dust, clean the fins, etc.

Broken fans - either not working or not working well.

Too many processes running in the background. If you are using an intense application, find ways to disable or close applications running in the background to mitigate the CPU load.

Bad overall notebook design.

BTW - Are you using an external notebook cooler?

EDIT - OOPS! I forgot the Windows Event Viewer:

http://windows.microsoft.com/en-us/windows/what-information-event-logs-event-viewer#1TC=windows-7
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
Thanks for your reply! Eventually I solved the problem with the fans altogether by means of the 'Advances power settings' of the current power plan and setting the 'Processor power management' max value to 60-70% cos at 100% the CPU would just heat up and fans would have to kick in to cool it down. My ears got tired at some point and for now lowering the 'Processor power management' value does the trick. This whole thread, however, was initiated when 'Processor power management' was at 100% and there really was something from the SSD that caused some CPU load (for a short time) which in turn started the fans real fast and that would wake up anybody. That's solved for now, so that's for your effort.

Indeed as you pointed out the 70-ish degree temperatures that I posted about ARE well within the operating range for my intel cpu ... but that doesn't mean a thing when in the background of that one hears annoying fans. So yeah. My question was not whether 70 degrees are within the working range of the cpu, but more ... why and what causes temps to rocket up to 70 degrees when under normal use temps are 50 degrees (and that doesn't rocket the fans). I'm ok with 70 degrees cpu temp when I'm really loading the cpu, but I started this whole thread cos I couldn't understand what caused temps to go up to 70 when pc was idle and i wasn't doing anything with it. That's why my guess was that it was the SSD and trim operations, but that is still not confirmed.

'The general consensus is that an ssd would not cause a cpu to overheat.' - i never said an SSD causes cpu to overheat. I only said that cos of my ssd, periodically some algorithm runs in the backround and that in turn causes my cpu to load up for 5 min or so and that then starts the crazy fans. That's all I said, nothing more. SSD in general definitely does not load my cpu in anyway. If anything, it aids it! :)

Of the things you suggest to check I can say:

Heatsink is fine. Haven't opened the notebook and touched anything inside ever since i bought it at the end of 2011.

airflow is ok and fans are clean

No broken fans

Aint got too many processes running in the background so that's ok.

Bad overall notebook design. - TOTALLY AGREE WITH THAT ONE. After all it's HP and HP SUCK!

BTW - Are you using an external notebook cooler? - no and no need for that for now. especially now that i've lowered the cpu 'Processor power management' to 60-70%

I think that sums it up for now.
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
For those of you, reading this post, I want to mention something I did looong ago to lower the noise from fans. Long ago before the issue with my SSD causing short temporary cpu load, which started the fans like crazy (i.e. what the whole thread is all about). Remember, what I'm about to say has nothing to do with the fact that I still think the SSD was the culprit of the issue discussed in this thread.

So, to help ppl trying to reduce noise from fans I went in Advanced power settings / 'System cooling policy' and set the value to 'passive'. Furthermore, For HP laptops pressing f10+A upon boot I managed to access the advanced menu for my Insyde BIOS F.1C 23-jan-2013 and there were some thermal settings. There I set the temperatures to start the fans at as high as possible so that helped too. As I said, I'm only saying this to help ppl trying to save their ears and stop them annoying fans. Do keep in mind that what i mentioned in the previous post about lowering the % in 'Processor power management' would clearly and logically make the pc a bit slower, so .. in the end of the day it's a trade-off. Well, after all, I am on an HP and HPs are notorious for overheating, the weird thing is that what was overheating in my case was the intel cpu. Air vent paths were unobstructed and dust free ... i always use the pc on a flat surface so ... yeah, that's that for now. Hope that helps someone, at least :)
 

soewhaty

Honorable
Apr 1, 2014
120
0
10,690
@ JohnnyLucky - so finally ... what is the difference between garbage collection and trimming? I was just told that they are definitely not one and the same. Can we clear that out once and for all. Been googling the issue but still can't really get it.
 
Garbage collection is an ssd function which erases data stored in an ssd. It also clears the data blocks and prepares them for reuse. It is completely different from the way data is deleted from a hard disk drive. Garbage collection has the ability to work independently of TRIM.

TRIM is an operating system feature that sends a message to the ssd that a user has deleted data and identifies the exact location of data that is to be erased. TRIM was first added to Microsoft Windows 7 and Linux in late 2008. Since then, TRIM has been added to several other operating systems. Three years ago it was added to Android.

Tom's Hardware published the first ssd review in 2006. It was a Samsung prototype which was never manufactured due to problems. It took another 2 years for consumers to become interested in ssd's. The original SATA ssd's included garbage collection. Typically garabge collection was done automatically once every 24 hours. To this day all modern ssd's are capable of running garabge collection without an operating's system TRIM feature. There are two types of garbage collection - aggressive and passive. Aggressive garbage collection means that when an ssd intiates garbage collection it does so right away. It does not matter what the rest of the pc is doing. Passive garabage collection means that when an ssd inities garbage collection it might pause and wait until the cpu is in an idle or near idle state. Either way garbage collection works quite well by itself.

When as ssd initiates garbage collection it does not know which data has been deleted. In addition it does not know the location of the data. The ssd has to conduct a search to identify and locate the deleted data. That was the primary reason the international organization responsible for the SATA standard adopted the TRIM feature. The second reason TRIM was adopted was because the process of searching for deleted data and their locations could affect the write performance and endurance of the early SATA ssd's.

When Microsoft added TRIM to Windows 7 the explanation was that TRIM complimented and enhanced an ssd's garbage collection because the ssd no longer had to search for and identify the location of deleted data. In effect it eliminated some overheard and made garabage collection more efficient. During the early days some ssd's could read and understand the TRIM message and some could not. All modern ssd's all have the ability to read and understand the TRIM message. In Microsoft Windows TRIM is enabled by default.

Consumers have a tendency to confuse garabge collection and TRIM. It is not unusual for a consumer to refer to TRIM as if it were garbage collection. It definitely is not. We still see it here in the forums. Personally I have always made a distinction between garabage collection and TRIM in my forum comments during the past 8 years. In fact I usually refer to Trim as Windows Trim.