Disable Swap on macOS 14 "Sonoma" OpenCore (intel):
You can disable paging/swap to your SSD for macOS Sonoma. Only using compression within physical memory (RAM). You can't disable compression.
These where done using through Linux (KDE Neon):
- First to disable sip on open core (a required prerequisite to disable swap):
- NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> csr-active-config
- Input value: FF0F0000 - Disable all flags in macOS
- Also add:
- NVRAM -> Delete -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> csr-active-config
- Needed for sip to disable.
- Then disable phycial swap (compression only):
- NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> boot-args
- Add this vale to the long line of boot arguments: vm_compressor=2
- Save and reboot!
Run this in macOS Terminal when booted into macOS to see if it worked (should have a output of "2":
sysctl -a vm.compressor_mode
Date: November 8th 2024
Sources:
Wind Sketch: macbook disable swap
apple@stackexchange
kolide: mac system integrity protection
dortania@github: post issues
Back