Hey ;
I have enabled TRIM by entering sudo trim force enable in to the Terminal.
But I have to disable it because I happen to not recognise any change in performance , which suppose to be.
By any chance anybody knows how to disable TRIM with Terminal ?
Thank
sudo trimforce disable
What do you mean, change in performance? What kind of performance gains do you expect? Trim is useful to reduce disk wear and keep write operations speedy. It’s more preventive, really.
You can use the same command to disable it:
Code:sudo trimforce disable
I think you might need to disable System Integrity Protection first though.
TRIM is only meant to keep write performance near what it was when it was new. It is NOT meant nor does it do anything to reduce disk wear. TRIM might cause less disk wear than GC (the other technology that does the same thing as TRIM, only via a different way) due to a reduced amount of p/e cycles but it doesn't reduce disk wear. The technology that reduces disk wear is called "wear levelling".What do you mean, change in performance? What kind of performance gains do you expect? Trim is useful to reduce disk wear and keep write operations speedy. It’s more preventive, really.
Using tools like trimforce doesn't require disabling rootless nor SIP since it is part of the system. SIP is meant to prevent things that malware do like injecting code. Things you don't want it to do. It would be rather silly if Apple includes a tool they don't want to work 😉I think you might need to disable System Integrity Protection first though.
It was my understanding that TRIM reduces the number of write operations that would otherwise be necessary if it were not enabled, even with garbage collection. With a slower depletion of disk writes, it would follow that the drive can be held in shape for longer, hence less ‘disk wear’ with TRIM. Ultimately, though, it’s not a feature you turn on for an immediate gain of performance, as we both agree.TRIM is only meant to keep write performance near what it was when it was new. It is NOT meant nor does it do anything to reduce disk wear. TRIM might cause less disk wear than GC (the other technology that does the same thing as TRIM, only via a different way) due to a reduced amount of p/e cycles but it doesn't reduce disk wear. The technology that reduces disk wear is called "wear levelling".
Using tools like trimforce doesn't require disabling rootless nor SIP since it is part of the system. SIP is meant to prevent things that malware do like injecting code. Things you don't want it to do. It would be rather silly if Apple includes a tool they don't want to work 😉
You don't need to turn off SIP, in order to use the "enforce trim" command.It was my understanding that TRIM reduces the number of write operations that would otherwise be necessary if it were not enabled, even with garbage collection. With a slower depletion of disk writes, it would follow that the drive can be held in shape for longer, hence less ‘disk wear’ with TRIM. Ultimately, though, it’s not a feature you turn on for an immediate gain of performance, as we both agree.
Actually, it does require turning off SIP temporarily in this case, at least it was required in earlier versions. Trimforce is not documented so far and we don’t know what Apple is going to do with it. Apple warns that forcing trim may lead to data loss on some hardware, so perhaps there is a case to be made that it should be a feature that the user or a program cannot turn on with one simple command, not even with sudo. But that’s pretty much conjecture at this point.
Hey ;
I have enabled TRIM by entering sudo trim force enable in to the Terminal.
But I have to disable it because I happen to not recognise any change in performance , which suppose to be.
By any chance anybody knows how to disable TRIM with Terminal ?
Thank
Keep TRIM on.
This article explain why : http://arstechnica.com/gadgets/2015...garbage-collection-so-i-dont-need-trim-right/
But to summarize it :
Garbage collection isn't another way to do the same thing that TRIM do on a SSD (even if peoples mistakenly talk about TRIM and GC as competing technologies), actually TRIM make Garbage Collection more efficient. Having TRIM on on a SSD is always a good thing.
Basically, TRIM tell the SSD (which do garbage collection) what files are actually deleted by the OS. Without TRIM, the SSD have no way to tell the difference between the big 4 GB movie you saved in your folder, and the 4 GB movie you deleted a while ago. Since the OS doesn't physically delete files, but simply keep note to "himself" that this space can be written on if need be, on the SSD level, those big chunk of date are like any other chunk, and the SSD cannot do proper garbage collection of this chunk of space to be efficient when this space will be needed for something else.
Also, TRIM doesn't give you a "performance boost", but simply help a lot to make sure that the performance you had at first will remain.
Then you clearly haven't understood the article! The article also starts out that TRIM isn't a requirement, it only helps. That should be a big hint already. It then tells why we have TRIM and GC: to prevent performance loss with writes due to cells still having data that is no longer needed. The only thing that is different is how they do it. The article goes on to explain the differences and stresses that TRIM does this far more efficiently because it actually knows what to clear whereas GC does some smart guessing.Keep TRIM on.
This article explain why : http://arstechnica.com/gadgets/2015...garbage-collection-so-i-dont-need-trim-right/
But to summarize it :
Garbage collection isn't another way to do the same thing that TRIM do on a SSD (even if peoples mistakenly talk about TRIM and GC as competing technologies), actually TRIM make Garbage Collection more efficient. Having TRIM on on a SSD is always a good thing.
So, always use TRIM if you can. It will make your SSD’s garbage collection work a lot better. But if you find yourself in a situation where TRIM isn’t available, don’t panic—it’s nice to have, but it isn’t a requirement.
Due to being more efficient it can cause less p/e cycles than GC and thus cause less wear. In the end it doesn't really matter which of the two you use for the majority of SSDs. Some GC implementations are crap, some TRIM implementations are crap. Only in those cases it matters if you use GC or TRIM. It's also the reason why there have been dataloss issues on Linux, why OS X didn't support TRIM on non-Apple SSDs and why trimforce has this big warning when enabling TRIM. If you want TRIM then do some homework and find out if your SSD has a proper TRIM implementation that won't cause issues.Also, TRIM doesn't give you a "performance boost", but simply help a lot to make sure that the performance you had at first will remain.
Then you clearly haven't understood the article! The article also starts out that TRIM isn't a requirement, it only helps. That should be a big hint already. It then tells why we have TRIM and GC: to prevent performance loss with writes due to cells still having data that is no longer needed. The only thing that is different is how they do it. The article goes on to explain the differences and stresses that TRIM does this far more efficiently because it actually knows what to clear whereas GC does some smart guessing.
At the bottom of the article this is repeated:
Due to being more efficient it can cause less p/e cycles than GC and thus cause less wear. In the end it doesn't really matter which of the two you use for the majority of SSDs. Some GC implementations are crap, some TRIM implementations are crap. Only in those cases it matters if you use GC or TRIM. It's also the reason why there have been dataloss issues on Linux, why OS X didn't support TRIM on non-Apple SSDs and why trimforce has this big warning when enabling TRIM. If you want TRIM then do some homework and find out if your SSD has a proper TRIM implementation that won't cause issues.
I never said to try to activate TRIM at all cost. It's just that the OP is looking for a way to turn it off for a reason that doesn't really make sense (Not seeing a gain in performance). So in this context I just told him to keep it on.
That's the problem. You don't know if it'll have no ill effects. We've seen it with Linux and Windows: there are some SSDs out there that have issues with their TRIM implementation causing all sorts of problems like data corruption and even dataloss. Apple didn't put a warning in trimforce to scare people, it did that because it knows these problems but doesn't know what SSD you are using. Since there isn't any list with good and bad SSDs when it comes to TRIM you are simply taking a gamble with your data. Remember that when using a backup you can transfer corrupted data. In such cases you can restore all you want but the data is lost.If Trim can be enabled easily with no ill effects, then go for it.
I never said to try to activate TRIM at all cost. It's just that the OP is looking for a way to turn it off for a reason that doesn't really make sense (Not seeing a gain in performance). So in this context I just told him to keep it on.
That's the problem. You don't know if it'll have no ill effects. We've seen it with Linux and Windows: there are some SSDs out there that have issues with their TRIM implementation causing all sorts of problems like data corruption and even dataloss. Apple didn't put a warning in trimforce to scare people, it did that because it knows these problems but doesn't know what SSD you are using. Since there isn't any list with good and bad SSDs when it comes to TRIM you are simply taking a gamble with your data. Remember that when using a backup you can transfer corrupted data. In such cases you can restore all you want but the data is lost.
Why enable something where you have no idea what it'll do in the long run which doesn't even bring you any added value when compared to what any SSD does by default (aka GC)? The only reason people are enabling it is they read or heard that you should do it which leads to replies like this:
Note the complete absence of why it is better than leaving things at their defaults and why you should take the risk that Apple is warning about. People are going frantic about TRIM and they have no idea why at all: "why should I enable it?", "oh because", "why?", "because", "why?", "it's better than GC", "how so?", "because, it's just better"). It's not "trying to activate at all cost", it's "following the herd blindly" which is even worse. Doing things blindly is what gets your computer infected with malware, hacked or messed up in another way. At least try to understand what things are and don't just blindly enable something just because someone says it is better.
The famous "if it ain't broken, don't fix it" applies here.
Actually, Hellhammer, who I believe writes for Arstechnica about SSDs, doesn't think that this is true for third party SSDs on Macs:That's the problem. You don't know if it'll have no ill effects. We've seen it with Linux and Windows
So far there is no evidence indicating that the issue exists outside Linux. There are plenty of users running Samsung SSDs in Macs with TRIM enabled and I've yet to hear a single data loss issue.
if it ain't broken, don't fix it
You don't know if it'll have no ill effects.
Well, the thing about TRIM is that the failure mode is subtle: you could be perfectly happy for months until you try to open a photo one day and the file turns out to be full of zeroes instead of your precious data.Exactly, OP's computer is now working normally with TRIM enabled, DON'T FIX IT!
TRIM isn't enabled by default so you already tried to fix a problem that wasn't there by enabling it 😉 By disabling it you are returning to the era where you didn't fix it.Exactly, OP's computer is now working normally with TRIM enabled, DON'T FIX IT!
Incorrect. We never had TRIM support with 3rd party SSDs before on Macs. On all of these SSDs TRIM was never enabled. The only thing that changed is that previously you had to resort to a 3rd party tool to enable it and now you can do it in OS X. In both cases there is still no support at all so that hasn't changed.Again, we don't know if it'll have no ill effects by disabling TRIM now. So, leave it on.
By disabling it you are returning to the era where you didn't fix it.....We simply don't have any info on how well/crappy trimforce works yet. It's too soon.
And how about the most common failure: a soft fail after a few weeks/months? How do you manage that (and make sure your backup doesn't contain corrupted data)?