vm/vm_pageout.h defines the modes for the vm_compressor boot argument, which defaults to VM_PAGER_COMPRESSOR_WITH_SWAP (per vm/vm_compressor.c). You can disable compression by changing the vm_compressor_mode argument to 1 (VM_PAGER_DEFAULT). That is:
1 | sudo nvram boot-args="vm_compressor=1" |
Then reboot. You can verify the change was successful by running:
1 | sysctl -a vm.compressor_mode |
from: https://superuser.com/questions/668114/disable-compressed-memory-in-mac-os-10-9-mavericks/681252#681252?newreg=975ab6d74c42494c8f4c9130e6a71226