Set sleep mode in shell:
sudo pmset -a hibernatemode 0
Remove the image:
sudo rm /private/var/vm/sleepimage
Create a blanked file:
sudo touch /private/var/vm/sleepimage
Make file immutable:
sudo chflags uchg /private/var/vm/sleepimage
Tried this for the first time today after applying the 10.8.4 patch. Doesn't work, unfortunately. Sleepimage always returns. Any tips? Is there a way to undo this setting if nothing does the trick? Would that even be necessary?
EDIT: Never mind. I think I got it, but the fact that Chameleon still showed Disable Sleep Image as off confused me. I assume this is due to the nature of the workaround?
It redirects (creates a symbolic link in Unix terms) sleepimage file to dev null (the black hole of Unix). So everytime system writes to sleepimage, the bytes are drained to outer space.
It is reversible, just
It redirects (creates a symbolic link in Unix terms) sleepimage file to dev null (the black hole of Unix). So everytime system writes to sleepimage, the bytes are drained to outer space.
It is reversible, just
I'm not sure why would you want to mess with virtual memory management of OS X, but if you insist, then you can disable the Apple dynamic pager and get rid of the swapfiles, as instructed in this article: http://osxdaily.com/2010/10/08/mac-virtual-memory-swap/
Once you're done, you are left with only physical memory that you've got installed (4GB, 8GB, 16GB or whatever you have in your Mac), no virtual memory.
NB! I also recommend you read the comments to the article above before making the final cut.