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
/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) “
