Skip to main content

Free Shipping on Domestic Orders $75+

Mid 2012 model, A1278 / 2.5 GHz i5 or 2.9 GHz i7 processor.

Enabling trim with macOS Mojave?

Hi, I just installed 1TB Samsung 860 Evo SSD in my old MBP. I also installed macOS Movaje on my machine without any modification to install procedure, so I’m running APFS. My question is whether I should enable TRIM on my device. I have read that there were issues with boot time on High Sierra, but do you guys have any experience with TRIM enabled on Mojave?

Update (02/24/2019)

Here is a screenshot from SATA/Sata Express

Block Image
Answered! View the answer I have this problem too

Is this a good question?

Score 0
Add a comment

2 Answers

Chosen Solution

So the question is should you or not enable TRIM under APFS.

Lets clarify a few things:

  • The lower format for APFS is GUID! Which is the same what HFS+ uses.
  • APFS uses a container within the given partition basically adding another layer from what we've become accustomed to with older formats (Linux, Mac, or Windows).

So what is TRIM? SSD TRIM is an Advanced Technology Attachment (ATA) command that enables an operating system to inform a NAND flash solid-state drive (SSD) which data blocks it can erase because they are no longer in use. The use of TRIM can improve the performance of writing data to SSDs and contribute to longer SSD life.

So lets look at a block diagram which shows the different interfaces

Block Image

So what is this telling us? Both the Red & Yellow (AHCI) pathways would leverage TRIM. Only NVMe/PCIe interface would not leverage it (even if enabled).

But here’s the rub! The data flows under APFS is greater than HFS+ so what can happen is the SATA or mSATA interface gets choked up so you get a freeze up when you have too many changes in the queue (queue depth). This ‘Queue’ can be handled better under PCIe interface than SATA. Review slide 8 here NVM Express and the PCI Express SSD Revolution

This is why I don’t recommend going to High Sierra or Mojave in SATA or mSATA based systems! This does not have anything to do with TRIM directly. But, TRIM which is needed under SATA will struggle under APFS unlike HFS+.

So simply put SATA (AHCI) based systems need TRIM! Sticking with HFS+ is needed under SATA or mSATA drives. If you have a NVMe/PCIe drive (Apple blade drive) then the setting won’t alter the underlying interface and by default Apple SSD’s are enabled.

Was this answer helpful?

Score 3
Add a comment

It should be enabled by default with your setup, check in system information within SATA/Sata Express and select your drive..it will give trim status

Was this answer helpful?

Score 1

13 Comments:

I checked the System information and next toTrim support it says No

by

Did you try the 'sudo trimforce enable' command in terminal? You should notice a performance difference in loading after a restart if it was disabled.

by

@marek1 I'm a bit surprised it's not active by default with Mojave. You can enable trim from terminal with "sudo trimforce enable" command but I can't tell how it will behave with Mojave, not much experience and on the subject I've read all and its contrary. Since you have a brand new install you may try how it behaves with and without. I would personally enable it even if boot time takes a bit longer

by

@arbaman Thanks for the reply! I tried to do some research beforehand and came across this discussion https://www.tonymacx86.com/threads/enabl... . It seems like in both cases of keeping trim disabled or enabled, it has some longterm negative effects.

by

@arbaman - Apple SSD's have TRIM enabled, 3rd party SSD it is not when the OS installer runs from El Capitan onwards (when TRIM was added)

Apple did not want to assume the responsibility of testing every possible SSD which is why it's not enabled. Early SSD's had some wacky block management solutions, today thats not the case.

My rule of thumb is any SATA II (3.0 Gb/s) SSD I would research out if the given vendor supported TRIM with that drive. Any SATA III (6.0 Gb/s) the major SSD vendor drives are OK to run TRIM.

by

Show 8 more comments

Add a comment

Add your answer

Marekan will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 2

Past 30 Days: 11

All Time: 6,904