Some four years after adding TRIM support for first-party solid state drives to OS X, Apple incorporated the command for aftermarket drives as part of Tuesday’s OS X 10.10.4 update.
The new capability allows users to enable TRIM functionality on third-party SSDs without resorting to unsanctioned workarounds or software. Prior to the change, Apple only supported TRIM on original Mac SSDs.
Enabling TRIM for non-OEM drives requires the trimforce
command be entered into Terminal, specifically, sudo trimforce enable
. The system throws up a message warning users of potential incompatibility with certain SSDs before performing a reboot operation.
Part of the ATA standard, TRIM helps optimize garbage data handling in SSDs by earmarking files no longer in use for permanent deletion. Unlike conventional spinning hard drives, SSDs perform erase operations before writing new files, meaning multiple erase/write operations could create a backlog of garbage bits that gradually slow the system down.