Notifications
Clear all

Trim, what is it?

4 Posts
2 Users
0 Reactions
12.5 K Views
(@ariele)
Posts: 9
Member
Topic starter
 

When I installed Softraid I had a message pop up about enabling Trim. What is it and do I need to enable it?

My set-up:
Macbook pro 2011
OS 10.9.5
upgraded to SSD drive Sansung SSD 850 EVO

Using OWC Elite pro dual with 4TB drives.
Set up as RAID 1

 
Posted : 05/03/2016 1:09 am
(@softraid-support)
Posts: 9200
Member Admin
 

SoftRAID can use TRIM commands if it is active.

We no longer enable TRIM in the OS however.

So you need to use a third party TRIM enabler, use the command line, or in 10.10.5 or later, use the terminal "trimforce enable" command.

When both OS X has TRIM enabled for third party SSD devices, and SoftRAID has TRIM enabled, then all TRIM commands are passed through the driver and TRIM is enabled.

 
Posted : 05/03/2016 7:09 am
(@ariele)
Posts: 9
Member
Topic starter
 

But do I need trim?

 
Posted : 05/03/2016 11:55 am
(@softraid-support)
Posts: 9200
Member Admin
 

This is the great debate. Generally, yes, use TRIM. However, you may hear reasonable arguments against TRIM.

What TRIM does is keep the SSD maintained so that performance does not suffer dramatically as it is used.
SSD writes are actually quite slow when data already exists in the area to be written, as the prior data must be erased first. When you delete a file with an SSD, it is not deleted. It is "set aside", until the SSD has to erase the area where the file was.

TRIM is a technique to do this "erasing" or "housekeeping" in the background, when the SSD is not being used actively. This can keep the SSD writing at optimal speed.

Some SSD's use "over provisioning" to address the problem addressed by TRIM. When a drive uses over provisioning, then TRIM is not required and often interferes with the over provisioning.

This subject gets quite complex.

Our rule of thumb is yes, use TRIM. You need to activate it inside the OS, AND in SoftRAID. When TRIM is enabled in SoftRAID, then SoftRAID will pass any TRIM commands to the drives. However, if TRIM is not specifically enabled in OS X, then SoftRAID cannot pass on TRIM commands.

If your SSD rarely gets more than 50% full, you do not need to worry about TRIM. If your SSD seems a little slow, do a two pass certify with SoftRAID, then restore the data to the SSD"s. This will "refresh" the SSD to perform like new.

As a final note about TRIM, we are aware of occasional issues where TRIM has been involved with data corruption. We believe most SSD manufacturers have addressed this issue, but we are not 100% sure. This is one of the arguments against activating TRIM.

With OS X 10.10.5 and later, there is a terminal command, trimforce, that can enable TRIM.
The command is:
trimforce enable

Also, especially with SSD's, keep multiple copies of data backups. SSD's are more prone to data corruption (this is called "bit rot" in the industry) than HDD's and also, when SSD's fail, often do so suddenly, with zero warning, unlike Hard Drives, where SoftRAID can usually warn you before a failure actually occurs. Backups are always your friend.

 
Posted : 10/03/2016 2:15 pm
Share:
close
open