Disable Secure Virtual Memory on Mac OS X Lion (10.7)

October 3, 2011 |  by  |  Mac OS X  |  , , , , , ,

By default, OS X Lion encrypts your swap space. Pretty good stuff if you have a laptop on the road.
But, at home it’s okey to disable it unless you are obsessed with security and or access to critical program information.
I have at default (encrypted) on my MBP, but on my Workstation Mac Pro I disable it and get little less overhead
in the PageIn/PageOut.

So, to disable execute this command and reboot your machine :

sudo defaults write \
/Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -boolean no
sudo defaults write \
/Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes

After reboot, enter Terminal.app and check if’s (un)encrypted :

sysctl vm.swapusage

If it’s encrypted it will tell you, “Free = xxxxx (encrypted) “



No Comments


Trackbacks

  1. Proces kernel_task i zajęta przez niego pamięć

Leave a Reply