Don't forget the Trim!
Moderator: James Steele
- James Steele
- Site Administrator
- Posts: 22808
- Joined: Fri Oct 15, 2004 10:01 pm
- Primary DAW OS: MacOS
- Location: San Diego, CA - U.S.A.
- Contact:
Don't forget the Trim!
LOL... so my old 250GB SSD in my office MacPro was getting very full and I was getting warnings. So, eureka! I had a 1TB SATA SSD that I had pulled from my Studio Mac Pro when I retired it for the Mac Studio. I popped in a drive bay in my office MacPro (running High Sierra), reformatted it, then used CCC to clone my boot drive to it. It all worked like a champ.
Then I began noticing things getting pretty slow. Web browsing was slow. Even saw a message at bottom of browser window saying waiting on cache, etc. Might have been to write to it, read, don't remember. But something wasn't right. Many things seemed abnormally sluggish.
Aha! I had been using this as a projects drive and not a boot drive previously. And maybe because I reformatted that was the issue, but realized Trim was not enabled. I went to Terminal and used sudo trimforce enable and Bob's my uncle again. Seems like after it rebooted and settled in, things are behaving like the should again. Huzzah!
Then I began noticing things getting pretty slow. Web browsing was slow. Even saw a message at bottom of browser window saying waiting on cache, etc. Might have been to write to it, read, don't remember. But something wasn't right. Many things seemed abnormally sluggish.
Aha! I had been using this as a projects drive and not a boot drive previously. And maybe because I reformatted that was the issue, but realized Trim was not enabled. I went to Terminal and used sudo trimforce enable and Bob's my uncle again. Seems like after it rebooted and settled in, things are behaving like the should again. Huzzah!
JamesSteeleProject.com | Facebook | Instagram | Twitter
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
- mikehalloran
- Posts: 16223
- Joined: Sun Jan 25, 2009 5:08 pm
- Primary DAW OS: MacOS
- Location: Sillie Con Valley
Re: Don't forget the Trim!
Yep. Always possible that Garbage Collection is disabled in the firmware on that old SSD. TRIM is part of the MacOS since 10.6.8 but is blocked for 2.5" SSDs unless you unblock it with that Terminal Command. Apple never built a Mac with a 2.5" SSD.
It works over Thunderbolt, SATA, eSATA and PCIe. It doesn’t work over USB or Ethernet. TRIM is enabled by default on blade type SSDs including the SATA III blade used on some 2012 iMacs.
It works over Thunderbolt, SATA, eSATA and PCIe. It doesn’t work over USB or Ethernet. TRIM is enabled by default on blade type SSDs including the SATA III blade used on some 2012 iMacs.
Last edited by mikehalloran on Sun Sep 10, 2023 8:30 pm, edited 1 time in total.
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
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
- HCMarkus
- Posts: 10409
- Joined: Tue Jan 10, 2006 9:01 am
- Primary DAW OS: MacOS
- Location: Rancho Bohemia, California
- Contact:
Re: Don't forget the Trim!
Good to remember. That’s why I only use USB connected SSDs for “Mostly Read” applications. Or just reformat the drive now and then… I have one I use for daily working project backups (in addition to automatic Time Machine and BackBlaze) that gets wiped whenever I transfer the project files to long term storage.
- James Steele
- Site Administrator
- Posts: 22808
- Joined: Fri Oct 15, 2004 10:01 pm
- Primary DAW OS: MacOS
- Location: San Diego, CA - U.S.A.
- Contact:
Don't forget the Trim!
What about NVMe drives in USB4 enclosure? Do they even need trim? I guess since I’m using it for sample libraries it’s a “mostly read” situation.
JamesSteeleProject.com | Facebook | Instagram | Twitter
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
- mikehalloran
- Posts: 16223
- Joined: Sun Jan 25, 2009 5:08 pm
- Primary DAW OS: MacOS
- Location: Sillie Con Valley
Re: Don't forget the Trim!
TB4 is built on the USB 4 spec—possible that the only real difference is the fact that TB3/4 is licensed and certified by Intel. If connected via a TB3/4 cable, a blade in a USB 4 housing might support TRIM. I’ve not read one way or the other. I’ve been meaning to ask.James Steele wrote: ↑Sun Sep 10, 2023 8:25 pm What about NVMe drives in USB4 enclosure? Do they even need trim? I guess since I’m using it for sample libraries it’s a “mostly read” situation.
It will be easy to see in a System Report. TRIM Support will be Yes or No. There’s no way to enable or disable it. Garbage Collection is normally good enough but with TRIM, preparing cells for new data is a lot faster. I have recent experience wiping and rewriting nearly full 4TB SSDs.
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
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
- James Steele
- Site Administrator
- Posts: 22808
- Joined: Fri Oct 15, 2004 10:01 pm
- Primary DAW OS: MacOS
- Location: San Diego, CA - U.S.A.
- Contact:
Re: Don't forget the Trim!
Only way I could see a reference to Trim Support was by navigating the the NVMExpress section and it shows me the WD Blue NVMe drive in my USB4 enclosure. it says that Trim is supported (indicated by the red arrow). I'm not sure if it's already operating this way, or I still have to force it with the Terminal?mikehalloran wrote: ↑Sun Sep 10, 2023 8:42 pmTB4 is built on the USB 4 spec—possible that the only real difference is the fact that TB3/4 is licensed and certified by Intel. If connected via a TB3/4 cable, a blade in a USB 4 housing might support TRIM. I’ve not read one way or the other. I’ve been meaning to ask.James Steele wrote: ↑Sun Sep 10, 2023 8:25 pm What about NVMe drives in USB4 enclosure? Do they even need trim? I guess since I’m using it for sample libraries it’s a “mostly read” situation.
It will be easy to see in a System Report. TRIM Support will be Yes or No. There’s no way to enable or disable it. Garbage Collection is normally good enough but with TRIM, preparing cells for new data is a lot faster. I have recent experience wiping and rewriting nearly full 4TB SSDs.
What's interesting is the 209MB EFI volume thats formatted FAT32. I guess that's a standard thing. I'm pretty sure I reformatted that drive when I bought it to APFS... and you can see the Sample Libraries volume underneath the EFI volume that is indeed APFS format.
JamesSteeleProject.com | Facebook | Instagram | Twitter
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
- mikehalloran
- Posts: 16223
- Joined: Sun Jan 25, 2009 5:08 pm
- Primary DAW OS: MacOS
- Location: Sillie Con Valley
Re: Don't forget the Trim!
Now we know. TRIM is unblocked by default over USB 4. There’s no command to block or unblock except for 2.5" SSDs that I know of. When TB5 is released next year, it will be based on the USB 4.2 spec — safe to assume it will be the same.James Steele wrote: ↑Sun Sep 10, 2023 9:42 pm
Only way I could see a reference to Trim Support was by navigating the the NVMExpress section. I'm not sure if it's already operating this way, or I still have to force it with the Terminal?
What's interesting is the 209MB EFI volume thats formatted FAT32. I guess that's a standard thing. I'm pretty sure I reformatted that drive when I bought it to APFS... and you can see the Sample Libraries volume underneath the EFI volume that is indeed APFS format
It’s quite possible that the FAT32 volume is the culprit—GC only works in it?—but that’s a guess. Without knowing the drive firmware, that’s as good as I can do. Since unblocking TRIM solves the problem, I’d declare victory. Otherwise, there may be a firmware update for the drive that would address this.
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
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
- James Steele
- Site Administrator
- Posts: 22808
- Joined: Fri Oct 15, 2004 10:01 pm
- Primary DAW OS: MacOS
- Location: San Diego, CA - U.S.A.
- Contact:
Re: Don't forget the Trim!
Yeah... the screenshot was from my Mac Studio in my studio. That's where I have the NVMe drive in the USB4 external case.
The problem I was having was with my MacPro in my office. I installed a 2.5" SSD into it had been the projects drive in a different MacPro that I used to use in my studio. It was solved when I force enabled trim on that drive.
The problem I was having was with my MacPro in my office. I installed a 2.5" SSD into it had been the projects drive in a different MacPro that I used to use in my studio. It was solved when I force enabled trim on that drive.
JamesSteeleProject.com | Facebook | Instagram | Twitter
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
- Michael Canavan
- Posts: 3856
- Joined: Fri Jul 15, 2005 10:01 pm
- Primary DAW OS: MacOS
- Location: seattle
Re: Don't forget the Trim!
Yeah that's a standard thing, I asked Western Digital about why the NVME USB3.3 Sandisk doesn't support SMART, and they suggested upgrading the EFI firmware using a PC, because it's a FAT32 file. There was some run that had issues, but that wasn't my problem at all.James Steele wrote: ↑Sun Sep 10, 2023 9:42 pm What's interesting is the 209MB EFI volume thats formatted FAT32. I guess that's a standard thing. I'm pretty sure I reformatted that drive when I bought it to APFS... and you can see the Sample Libraries volume underneath the EFI volume that is indeed APFS format.
USB3 on Mac OS doesn't support SMART to NVME drives. So IMO getting an NVME Sandisk like I have is a bad idea.
USB4 is great, so far no issues with the NVME in an USB4 enclosure at all.
M2 Studio Ultra, RME Babyface FS, Slate Raven Mti2, NI SL88 MKII, Linnstrument, MPC Live II, Launchpad MK3. Hundreds of plug ins.
Re: Don't forget the Trim!
Hey thanks for the reminder. I forgot to do that when I got my Mini. The externals were running without Trim enabled.
Your friendly neighborhood Phil
Your friendly neighborhood Phil
DP 11.34. 2020 M1 Mac Mini [9,1] (16 Gig RAM), Mac Pro 3GHz 8 core [6,1] (16 Gig RAM), OS 15.3/11.6.2, Lynx Aurora (n) 8tb, MOTU 8pre-es, MOTU M6, MOTU 828, Apogee Rosetta 800, UAD-2 Satellite, a truckload of outboard gear and plug-ins, and a partridge in a pear tree.