正好刚换ssd,之前装的雪豹,这个就等着装山狮了
重装系统很快,也省得把之前乱七八糟带过来,顺便把adobe cs6装好了,还有lightroom4,有正版不装白不装
另外ssd记得开启trim,要手动开的
按下面方法在terminal里面输入
1. Backup the file we’re patching
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.original
2. Patch the file to enable TRIM support
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
3. Clear the system kernel extension cache
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
4. Now Reboot!
-------------------
还有性能优化:
1、 关闭紧急运动传感器:
这个东西就是在瞬间移动的时候给HDD一个信号,让他停止读写拿开磁头。对于SSD是完全没必要的,可以通过下面的命令完全关闭:
$ sudo pmset -a sms 0
2、用noatime方式挂载SSD系统盘
用 noatime 方式挂载系统盘,这样可以减少不必要的 I/O 次数,虽然 SSD 做这些操作非常快速,但考虑到最后访问时间这个属性其实很少用到,大家关心的一般都是最后修改时间和创建时间,所以完全可以关闭这个属性,这在 Unix/Linux 下是非常常见的文件系统优化选项。
在/Library/LaunchDaemons里面创建一个noatime.plist,内容为:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>noatime</string>
<key>ProgramArguments</key>
<array>
<string>mount</string>
<string>-vuwo</string>
<string>noatime</string>
<string>/</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
然后修改权限:
$ sudo chown root:wheel /Library/LaunchDaemons/noatime.plist
重启,查看是否生效,可以输入:
mount | grep " / "
如果看到返回下面的信息,说明OK(注意有noatime):
/dev/disk0s2 on / (hfs, local, journaled, noatime)
3.榨干空间:
1、关闭休眠:
默认的在 MB/MBP 上, 系统会在磁盘上维护一个和内存等大的 sleepimage 文件, 当电量耗尽时将内存中所有数据写入磁盘, 系统进入深度休眠状态, 下次唤醒时再从磁盘文件恢复状态. SSD 寸土寸金, 保留一个 8GB 大小又很少被用到的文件是很奢侈的行为.
$ sudo pmset -a hibernatemode 0
$ sudo rm /var/vm/sleepimage*
2、关闭Time Machine本地备份
$ sudo tmutil disablelocal
3、清理垃圾:
推荐下载CleanMyMac或者Disk Diet这两块软件进行清理。