Answer the question
In order to leave comments, you need to log in
What does memory compression actually do in Mac OS X? How does it work?
Here is a promotional text from Apple about it:
Free up memory.
The more free memory a Mac has, the faster it runs. But if you have multiple apps open at the same time, your Mac's free memory will decrease. In-memory compression technology frees up Mac memory as needed. When a Mac runs out of memory, OS X automatically compresses the data of inactive applications, freeing up some of the memory. By compressing memory, your Mac won't have to spend time constantly transferring data from memory to storage and back again. So he can do more in less time. And because compression and decompression are nearly instantaneous, you'll notice nothing more than incredibly fast response times.
- Disable memory compression and swap (requires reboot):
Code:
sudo nvram boot-args="vm_compressor=1"
- Enable memory compression without swap compression (requires reboot):
Code:
sudo nvram boot-args="vm_compressor=2"
- Restore default settings (memory and swap compression enabled):
Code:
sudo nvram boot-args="vm_compressor=4"
Answer the question
In order to leave comments, you need to log in
As practice shows, MacOS 10.9+ began to work not quite adequately, if I have a ton of software running, I don’t restart my computer for months, my web server is spinning, I have photoshop .... and only 8 gigabytes of memory.
Disabling swap, with 16 gigs of RAM, I caught the system freezing a couple of times a month, I had to turn it back on.
On a laptop, I watched the memory usage on a macbook
: at first, the memory is pressed for a long time, and then it is only unloaded into swap
2. The file cache is not always unloaded, for example, programs take 3 gigabytes, and the file cache 5, I run a virtual machine with 1 gigabyte of memory allocated, 1 gigabyte is freed from the file cache. But sometimes the swap starts to turn on, and the cache is never unloaded.
3. After clearing the memory, the swap is also not always unloaded into the RAM.
In general, 10.8 worked better, but in 10.9 and 10.10 something was tweaked, although in 10.10.2 it works more or less adequately, the computer almost does not freeze.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question