sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist 这样在/private/var/vm下的swapfile?文件就可以删除了, sleepimage还会存在,这点不影响。 需要恢复可以使用如下命令: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
All posts tagged vm
关闭Mac OS X的虚拟内存
Posted by Lu Jun on August 3, 2011
http://lujun.info/2011/08/%e5%85%b3%e9%97%admac-os-x%e7%9a%84%e8%99%9a%e6%8b%9f%e5%86%85%e5%ad%98/
禁用MacOSX的虚拟内存
在Windows中我一直都是禁用虚拟内存的。感觉这样可以快一些。还可以减少不必要的硬盘读写。对于MacOSX也有同样的想法。在网上搜索了一下,有一些使用SSD的兄弟为了保护SSD,延长寿命,也想关闭mac的dynamic_pager。找到以下两个方法可以帮助我们关闭MAC的虚拟内存: 方法一: Open Terminal in the Applications -> Utilities folder. Type the following, hitting Return after each command. cd /etc — this brings you to the file you want to work with sudo cp /etc/rc /etc/rc.orig — this makes a copy of the file etc/rc called etc/rc.orig; enter administrative password when asked. sudo pico /etc/rc [...]
Posted by Lu Jun on March 15, 2011
http://lujun.info/2011/03/%e7%a6%81%e7%94%a8macosx%e7%9a%84%e8%99%9a%e6%8b%9f%e5%86%85%e5%ad%98/