关闭Mac OS X的虚拟内存

[bash]
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
[/bash]
这样在/private/var/vm下的swapfile?文件就可以删除了, sleepimage还会存在,这点不影响。

需要恢复可以使用如下命令:

[bash]
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
[/bash]

By Lu Jun

80后男,就职于软件行业。习于F*** GFW。人生48%时间陪同电子设备和互联网,美剧迷,高清视频狂热者,游戏菜鸟,长期谷粉,临时果粉,略知摄影。

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.