Worried... Should I enable TRIM for a 3rd party SSD?

Macintosh software/hardware discussion and troubleshooting

Moderator: James Steele

User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Worried... Should I enable TRIM for a 3rd party SSD?

Post by FMiguelez »

Hello.

My SSD was bought from OWC a few years ago. I just reformatted everything in APFS with Mojave, but I realized TRIM support shows as "no"...

Should I force enable it myself via Terminal with sudo trimforce enable ?

I am under the impression that this SSD had some form of Garbage Control via their own driver and that it was not necessary to enable it in OS. But then I see conflicting info.

So, should I or should I not do it?

Thank you!
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
User avatar
mikehalloran
Posts: 16274
Joined: Sun Jan 25, 2009 5:08 pm
Primary DAW OS: MacOS
Location: Sillie Con Valley

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by mikehalloran »

Absolutely do so. TRIM is part of the MacOS (and Windows and Linux). All you are doing is enabling it. Run the following in Terminal:

sudo trimforce enable

Enter your Admin password when prompted. Answer Y on N to the various warnings that appear — thes change depending on the OS. When you've jumped through enough hoops, your system will reboot. Done.

TRIM can only be enabled on a System SATA SSD but any others connected via PCIe, SATA, eSATA or Thunderbolt will also have TRIM automatically enabled once you perform this on the System drive.

No SSDs connected via USB will have it enabled — Apple doesn't support that. Even if you were to boot from a SATA SSD connected via USB and ran the Terminal Command and jumped through the hoops, on reboot, you'd find tha TRIM was still disabled.

Interestingly, if booting from an NVMe blade installed on the PCIe bus or Thunderbolt (such as a Samsung X5), TRIM is automatically enabled — even if a non-Apple blade.
DP 11.34; 828mkII FW, micro lite, M4, MTP/AV USB Firmware 2.0.1
2023 Mac Studio M2 8TB, 192GB RAM, OS Sequoia 15.4, USB4 8TB externals, Neumann MT48, M-Audio AIR 192|14, Mackie ProFxv3, Zoom F3 & UAC 232 32bit float recorder & interface; 2012 MBPs (x2) Catalina, Mojave
IK-NI-Izotope-PSP-Garritan-Antares, LogicPro X, Finale 27.4, Dorico 5, Notion 6, Overture 5, TwistedWave, DSP-Q 5, SmartScore64 NE Pro, Toast 20 Pro
User avatar
mikehalloran
Posts: 16274
Joined: Sun Jan 25, 2009 5:08 pm
Primary DAW OS: MacOS
Location: Sillie Con Valley

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by mikehalloran »

A long time ago, OWC spread the misinformation that TRIM wasn't necessary. When it could be enabled easily in OS 10.10.4, it was interesting to read all the walking back they had to do.

TRIM is the OS communicating with the SSD as it tries to ready the cells for new data. Garbage Collection is a utility contained in the drive's firmware and is a lot slower.

If you erase a nearly full 2TB sample drive and try to rewrite to it, without TRIM, it might take over 48 hours before you have access to the full capacity. With TRIM enabled, it might take as little as 24–28 hours.

I was reading that, to do a complete install of Komplete Ultimate Collectors 13, you need at least 78 GB available on your system drive if you plan to install it to an attached drive. This is because Native Access downloads, expands, installs then deletes each library in the process. The reason so much space is required is because TRIM and GC will need time to prepare the SSD to accept new data after deletion. You'll get that 78GB drive space back — in a day or two after the installation is complete.
DP 11.34; 828mkII FW, micro lite, M4, MTP/AV USB Firmware 2.0.1
2023 Mac Studio M2 8TB, 192GB RAM, OS Sequoia 15.4, USB4 8TB externals, Neumann MT48, M-Audio AIR 192|14, Mackie ProFxv3, Zoom F3 & UAC 232 32bit float recorder & interface; 2012 MBPs (x2) Catalina, Mojave
IK-NI-Izotope-PSP-Garritan-Antares, LogicPro X, Finale 27.4, Dorico 5, Notion 6, Overture 5, TwistedWave, DSP-Q 5, SmartScore64 NE Pro, Toast 20 Pro
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by FMiguelez »

Thank you for all that info, Mike!

Yes, it was quite frustrating to keep reading old contradictory information with OWC techs.

So followed your instructions, and I successfully enabled Trim for both Mac Minis.



I'm troubleshooting the systems, since, apparently due to Displaylink with Mojave, I'm having some show-stopping crashes with VEP7. The issues come and go sporadically and I haven't been able to figure it out. If the VEP server is on the Displaylink screen, the audio stutters like crazy and is unusable. This is using the slave computers. If I use VEP7 within the master computer, then it simply freezes and crashes. Console is FULL of errors saying something about being unable to find a video pipe or something. According to the internet, this is Displaylink's fault.


Mike, do you know of any other alternative for using a second monitor via USB? This Displaylink crap is just not working, and I REALLY need 2 monitors....
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
User avatar
mikehalloran
Posts: 16274
Joined: Sun Jan 25, 2009 5:08 pm
Primary DAW OS: MacOS
Location: Sillie Con Valley

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by mikehalloran »

What years are your Minis?
DP 11.34; 828mkII FW, micro lite, M4, MTP/AV USB Firmware 2.0.1
2023 Mac Studio M2 8TB, 192GB RAM, OS Sequoia 15.4, USB4 8TB externals, Neumann MT48, M-Audio AIR 192|14, Mackie ProFxv3, Zoom F3 & UAC 232 32bit float recorder & interface; 2012 MBPs (x2) Catalina, Mojave
IK-NI-Izotope-PSP-Garritan-Antares, LogicPro X, Finale 27.4, Dorico 5, Notion 6, Overture 5, TwistedWave, DSP-Q 5, SmartScore64 NE Pro, Toast 20 Pro
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by FMiguelez »

They are 6.2, Intel Core i7, late 2012, both 16 GB RAM with SSD and HD.


Hmmmm... apparently I was unable to sleep well... I just woke up, and there's this thing nagging me now in my mind... If my monitors have HDMI and DVI outputs, isn't there like an adapter from HDMI to thunderbolt that does NOT require Displaylink?

The Minis have this TB (?) port that I've NEVER used... couldn't I use one connected via HDMI and the other one with this fictitious converter?
(I confess I don't even know what TB really is... I stopped following when I got confused about TB/USB3/USBa-b-c-d-e-f... and other similar formats).

I see them for sale for a few bucks, but I don't know if they would work. Could the answer to my problems be really THIS simple? I think I might be overlooking something, otherwise I would (?) have been using that already... I think.

Or is there a better approach?



Right now I must really look exactly like Cedrick in my avatar :D
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by FMiguelez »

I'm reading, and now they have TB 1, 2 and 3? :roll:

So this is what system report gives me for the Thunderbolt port>

Vendor Name: Apple Inc.
Device Name: Mac mini

Route String: 0
Firmware Version: 23.4

Port:
Status: No device connected
Link Status: 0x101
Speed: Up to 10 Gb/s x2
Receptacle: 1
Link Controller Firmware Version: 0.12.3


It LOOKS like I have TB1 (judging by the speed).
If so, do you think an HDMI to TB1 adaptor work for me? This would be the cheapest solution ever! They're like 12 bucks...
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
User avatar
CharlzS
Posts: 837
Joined: Sun Jan 27, 2019 9:07 am
Primary DAW OS: Windows

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by CharlzS »

Thunderbolt 1 on the Mac Mini is Mini Display Port compatible, so Mini DP to HDMI should work. On my TB1 2011 Mini I use a mini display port to regular display port cable.
DP 11.34 PT 2024.10.2 Mixbus 11 VEP 7.x with various VIs
NI Komplete Audio 6 on HP Envy 8G i7 Quad Laptop Win11
MOTU 828es ADA8200 MTP-AV on HP Z2 G4 Xeon Workstation Win11
MOTU M4 on MacBook Air M2 2023 Sequoia.4.1
User avatar
MIDI Life Crisis
Posts: 26285
Joined: Wed May 18, 2005 10:01 pm
Primary DAW OS: MacOS
Contact:

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by MIDI Life Crisis »

FMiguelez wrote: ... I was unable to sleep well... I just woke up, and there's this thing nagging me now in my mind...
Don’t sleep. Just let your drives and monitors sleep. Wait, what?
2013 Mac Pro 2TB/32GB RAM

OSX 10.14.6; Track 16; DP 12; Finale 28

LinkTree (events & peformances)
Instagram
Facebook

MIDI LIFE CRISIS
User avatar
leigh
Posts: 434
Joined: Fri Oct 15, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Ann Arbor MI

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by leigh »

mikehalloran wrote: No SSDs connected via USB will have it enabled — Apple doesn't support that. Even if you were to boot from a SATA SSD connected via USB and ran the Terminal Command and jumped through the hoops, on reboot, you'd find tha TRIM was still disabled.

Interestingly, if booting from an NVMe blade installed on the PCIe bus or Thunderbolt (such as a Samsung X5), TRIM is automatically enabled — even if a non-Apple blade.
I have SSD sample drives connected to my iMac via USB. Will I have problems with them? Does sudo trimforce enable affect these?

**Leigh
Hope is not the conviction that something will turn out well but the certainty that something is worth doing no matter how it turns out.— Vaclav Havel

Mac Studio M2 Ultra, 128GB RAM, Mac OS X 14.5, DP 11.32
VSL, VE Pro 7, MIR Pro 3D, UVI Falcon, EZ Keys, EZ Drummer, Ozone 9 Advanced, RX 8 Advanced, Dorico 5, Metric Halo ULN-8-3D mkiv, ULN-2-3D & 2882-3D interfaces, Novation Impulse-49, various mics
User avatar
HCMarkus
Posts: 10461
Joined: Tue Jan 10, 2006 9:01 am
Primary DAW OS: MacOS
Location: Rancho Bohemia, California
Contact:

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by HCMarkus »

leigh wrote:
mikehalloran wrote: No SSDs connected via USB will have it enabled — Apple doesn't support that. Even if you were to boot from a SATA SSD connected via USB and ran the Terminal Command and jumped through the hoops, on reboot, you'd find tha TRIM was still disabled.

Interestingly, if booting from an NVMe blade installed on the PCIe bus or Thunderbolt (such as a Samsung X5), TRIM is automatically enabled — even if a non-Apple blade.
I have SSD sample drives connected to my iMac via USB. Will I have problems with them? Does sudo trimforce enable affect these?

**Leigh
Based on the info Mike provided, the answer is No. That said, if the drives are Sample Drives only, they are being used was Read-Only devices, and the lack of trim should be a non-issue.
User avatar
mikehalloran
Posts: 16274
Joined: Sun Jan 25, 2009 5:08 pm
Primary DAW OS: MacOS
Location: Sillie Con Valley

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by mikehalloran »

have SSD sample drives connected to my iMac via USB. Will I have problems with them? Does sudo trimforce enable affect these?
Already answered but once again: Unfortunately TRIM is not supported over USB any flavor.
Based on the info Mike provided, the answer is No. That said, if the drives are Sample Drives only, they are being used was Read-Only devices, and the lack of trim should be a non-issue
Correct.

The only thing TRIM does is allow an SSD to accept new data after the old has been erased sooner than the drive firmware's Garbage Collection utility.


On a 2012 Mini, run one monitor out the HDMI port and the other out your TB port. You do not need a TB cable — a TB 1/2 port supports MDP (Mini Display Port) which is the actual protocol unless using a Thunderbolt monitor which you aren't.

MDP to HDMI (or DVI or Display Port) cables and adapters are inexpensive. Get one and you'll be good.
DP 11.34; 828mkII FW, micro lite, M4, MTP/AV USB Firmware 2.0.1
2023 Mac Studio M2 8TB, 192GB RAM, OS Sequoia 15.4, USB4 8TB externals, Neumann MT48, M-Audio AIR 192|14, Mackie ProFxv3, Zoom F3 & UAC 232 32bit float recorder & interface; 2012 MBPs (x2) Catalina, Mojave
IK-NI-Izotope-PSP-Garritan-Antares, LogicPro X, Finale 27.4, Dorico 5, Notion 6, Overture 5, TwistedWave, DSP-Q 5, SmartScore64 NE Pro, Toast 20 Pro
User avatar
leigh
Posts: 434
Joined: Fri Oct 15, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Ann Arbor MI

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by leigh »

The only thing TRIM does is allow an SSD to accept new data after the old has been erased sooner than the drive firmware's Garbage Collection utility.
This was what I was missing. Thank you!

**Leigh
Hope is not the conviction that something will turn out well but the certainty that something is worth doing no matter how it turns out.— Vaclav Havel

Mac Studio M2 Ultra, 128GB RAM, Mac OS X 14.5, DP 11.32
VSL, VE Pro 7, MIR Pro 3D, UVI Falcon, EZ Keys, EZ Drummer, Ozone 9 Advanced, RX 8 Advanced, Dorico 5, Metric Halo ULN-8-3D mkiv, ULN-2-3D & 2882-3D interfaces, Novation Impulse-49, various mics
User avatar
bayswater
Posts: 12514
Joined: Fri Feb 16, 2007 9:06 pm
Primary DAW OS: MacOS
Location: Vancouver

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by bayswater »

Mike from what you said in this thread, I'd conclude that Trim doesn't matter that much unless you have a drive that's getting full, and you're in a hurry. So, important for those of us running server farms, but not the rest of us.

I remember a lot of claims (not here) that without Trim or similar, the life of the SSD would be much shorter, reaching it's limit of read write cycles much sooner. That seems to have gone by the wayside.
2018 Mini i7 32G macOS 12.7.6, DP 11.33, Mixbus 10, Logic 10.7.9, Scarlett 18i8, MB Air M2, macOS 14.7.6, DP 11.33, Logic 11
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: Worried... Should I enable TRIM for a 3rd party SSD?

Post by FMiguelez »

Well, this is much worse than I thought.

Apparently it's not just the Displaylink thing.
Everything suddenly crashes every time. I've spent the full morning trouble-shooting, and reality is hitting me just now... If I don't figure this out today, there's a very good chance I will have to cancel my current gig (unless the director is willing to wait until I solve this, so I can do my job, you know, composing, not in been in all 4s plugging and unplugging devices and endlessly installing installing crap).
This is beyond frustrating.
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
Post Reply