Created
July 10, 2012 09:24
-
-
Save dan-palmer/3082266 to your computer and use it in GitHub Desktop.
Enable Disable OSX Swap etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check swap usage | |
sysctl vm.swapusage | |
# disable encrypted swap - SNOW LEOPARD | |
sudo defaults write /Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -boolean no | |
# disable encrypted swap - LION | |
sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes | |
# disable swap | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist | |
sudo rm /private/var/vm/swapfile* | |
# enable swap | |
sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist | |
# disable spotlight | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
# enable spotlight | |
sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.metadata.mds.plist |
Hello Friends,
can we move the swap/Virtual Memory to an external RAID0 Combo with two NVme SSDS instead of the Internal SSD?
I connected it via Thunderbolt 3
Many thanks
TM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Disable Swap:
sudo nvram boot-args="vm_compressor=2"
Enable SIP (system integrity protection)
csrutil enable