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):
  1. First to disable sip on open core (a required prerequisite to disable swap):
    1. NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> csr-active-config
    2. Input value: FF0F0000 - Disable all flags in macOS
  2. Also add:
    1. NVRAM -> Delete -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> csr-active-config
    2. Needed for sip to disable.
  3. Then disable phycial swap (compression only):
    1. NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> boot-args
    2. Add this vale to the long line of boot arguments: vm_compressor=2
  4. 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