What are the advantages of USB vs Thunderbolt?
Thunderbolt 3/4 supports TRIM with MacOS, and USB doesn’t, so it’s an advantage to use TB for intensive use
USB 4 on macOS does support TRIM.
Are we sure this is the case? Do all or nearly all USB4 enclosures support TRIM? Certainly some (all?) USB3.0 enclosures do not support TRIM.
I'm wondering if anyone has verified the USB4 status with the enclosures discussed in this thread (using the ASM2464PD chipset). I've been following along but don't remember any posts regarding this. I'm hoping someone can verify TRIM activity with these new USB4 enclosures.
From what I've read, TRIM seems useful in extending the lifetime of solid-state storage, as well as potentially improving performance. Unfortunately macOS makes it a little difficult to really verify TRIM status. The two methods I know of involve System Information and (more convincingly) apfs system log messages about actual trims.
In System Information.app, the "TRIM Support" entry
only appears if the answer is "Yes". If the device does not support TRIM, the line is simply omitted, according to my experience. Attached is a System Information screenshot of my Thunderbolt 2 (w/ Apple adapter) -connected WD Red SATA ssd; the combination does support TRIM. Also attached, a Plextor SSD (which I
know supports TRIM via Thunderbolt 2) does NOT support TRIM when connected via an (admittedly quite old) USB 3.0 "drive sled".
So, one can hunt for the presence or absence of the "TRIM Support" line in System Information. IMHO though, the real proof is whether the APFS "space manager" writes log entries explicitly stating that blocks were trimmed. One can check for these with the following 'log' command. (As written, the command looks for entries within the last 1 hour.)
log show --info --style compact --last 1h --predicate 'sender == "apfs" and (composedMessage contains "blocks trimmed" or composedMessage contains "trims took") '
If TRIM is working (and the conditions below are met), it
should show log messages similar to my third attachment. (Note that the trimming process takes significant time -- my example apparently took about a minute to scan and trim!) You should verify that the "disk identifier" corresponds to your external drive, and not your internal storage. It will be the APFS
container disk identifier (not the physical disk's identifier) in 'diskutil list' output, or the "BSD Name" in System Information.
From my testing, TRIM is only peformed when
all volumes that exist on a device are ejected, and then (one or more?) mounted again. A simple way to be sure is to shutdown macOS and reboot, or to restart macOS. Logging out and logging in again did not seem to kick off the TRIM action for me. (Incidentally, does this argue for restarting macOS every once in awhile, since the only way to trim the boot device is to restart/reboot?)
If you are not seeing the TRIM log messages, it could be that your system is not issuing TRIM to non-Apple SSDs. It's not clear to me whether this is still true for Sequioa, but in the past one had to use the trimforce enable command to make macOS issue TRIMs to 3rd-party SSD. (Trimforce is enabled on my Sequoia system.) See 'man trimforce'.
So, does your system TRIM your external USB4 solid-state storage devices? (How important it is, though, is another whole discussion!).