OS X 10.9 Mavericks 預設僅啟用 Apple 原廠 SSD 的 TRIM,第三方 SSD 需手動修補驅動程式啟用 TRIM 以維持效能與壽命。

sudo cp -r /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.BACKUPsudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStoragesudo kextcache -system-prelinked-kernelsudo kextcache -system-caches驗證: 重開機後終端機執行 system_profiler SPSerialATADataType | grep TRIM,顯示 TRIM Support: Yes 即成功。
注意: 系統更新 (Security Update、Combo Update) 可能覆蓋驅動導致 TRIM 失效,需重複上述步驟。macOS 10.10.4+ 內建 sudo trimforce enable 指令,舊版修補法不再適用。