Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I followed the suggestion to disable compressed memory, now I want to get it back.

I checked the code, it was 4 before disabling.

So, I tried:

sudo nvram boot-args="vm_compressor=4"

That was not effective.

Please, how to get the feature back?

share|improve this question
    
For link purposes: Disable compressed memory in Mac OS 10.9 Mavericks? – Graham Perrin Jan 27 '14 at 7:43

You're confusing the boot argument vm_compressor with the sysctl variable vm.compressor_mode; they don't correspond in values. As I understand it, this is the mapping:

nvram boot-args=""  =>                 sysctl vm.compressor_mode=4  =>  memory compression enabled (normal)
nvram boot-args="vm_compressor=1"  =>  sysctl vm.compressor_mode=1  =>  memory compression disabled

To restore the default behavior, either:

  • remove the one boot argument from NVRAM; or
  • remove all boot arguments, sudo nvram -d boot-args

– then restart the Mac.

share|improve this answer
    
Is there any value other than 4 for enabled? In Ask Different: vm_compressor_mode (vm.compressor_mode) values for enabled compressed memory in OS X – Graham Perrin Jan 27 '14 at 7:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.