之前Mac換了第三方SSD老是使用Trim Enabler等工具作Trim,此次換了大SSD後,發現原來已經內置Trim工具了,很棒。操做步驟以下:ide
$ sudo trimforce enable
Password:
在 Password: 後輸入你的 macOS 密碼,而後是一大堆提醒文本:工具
IMPORTANT NOTICE: This tool force-enables TRIM for all relevant attached devices, even though such devices may not have been validated for data integrity while using TRIM. Use of this tool to enable TRIM may result in unintended data loss or data corruption. It should not be used in a commercial operating environment or with important data. Before using this tool, you should back up all of your data and regularly back up data while TRIM is enabled. This tool is provided on an 「as is」 basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES, SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU. Are you sure you wish to proceed (y/N)? y Your system will immediately reboot when this is complete. Is this OK (y/N)? y Enabling TRIM... . . Operation succeeded. Your system will reboot momentarily, please wait...
在須要輸入 (y/N)的地方輸入 y,重啓,Trim完成。this
最後,若是須要取消 Trim,使用以下語句:spa
$ sudo trimforce disable