MacOS – Any performance gains when disabling secure virtual memory

macosperformancevirtual-memory

To disable secure virtual memory in 10.7, one does the following:

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

However, are there any benefits to disabling secure system memory? I'm not concerned with security as much as I 'm concerned about system speed.

Best Answer

According to MacWorld, the advantage of disabling encrypted swaps should be “just a slightly less overhead on the page in & out process”.

So yes, there is a minor performance gain, but it won’t be a huge performance boost. To me, it’s not worth the security risk (of potentially having unencrypted passwords and other sensitive data in swap memory).

You’d get a much bigger performance boost if you’d disable virtual memory completely:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

To re-enable it:

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