对SSD没有研究,同事提出苹果对非官方的SSD不开启TRIM,上网度了一把,对TRIM不明觉厉。
一、TRIM是怎么回事:http://bbs.feng.com/read-htm-tid-1870887.html
二、打开非官方SSD的TRIM:http://bbs.feng.com/read-htm-tid-8997023.html
其方法很简单,依葫芦画瓢即可。
sudo nvram boot-args="kext-dev-mode=1" 重启 sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.bak sudo perl -pi -e 's|x00x41x50x50x4cx45x20x53x53x44x00|x00x00x00x00x00x00x00x00x00x00x00|' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage sudo touch /System/Library/Extensions sudo kextcache -prelinked-kernel /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache -K /System/Library/Kernels/kernel /System/Library/Extensions 重启