· 3 min read · Ahmed Sultan
Why your Mac’s free memory is always close to zero
In short
macOS fills spare memory on purpose. What the Memory tab in Activity Monitor is telling you, and the one graph worth watching.
On this page
Open Activity Monitor on almost any Mac, click the Memory tab, and look at the numbers at the bottom. Add Memory Used and Cached Files together, and a 16 GB Mac usually comes to 15 GB or more. A 36 GB Mac comes to 34. Close a few apps and the total barely moves.
It looks like something is eating your memory. Almost always, nothing is.
Empty memory does nothing
Reading from memory is many times faster than reading from even a fast SSD. So macOS keeps things in memory that it might need again: files you opened an hour ago, parts of apps you closed, fonts, images. If an app suddenly needs that space, macOS drops the copies and hands it over. You never see that happen.
The result is that a healthy Mac runs with very little memory free. Free memory isn’t a reserve you’re saving. It’s memory doing nothing.
What the Memory tab shows
The box at the bottom of the Memory tab breaks the total down:
- Physical Memory is what’s installed.
- Memory Used is what’s in use right now. It’s made of three parts, shown beside it: App Memory, Wired Memory and Compressed.
- App Memory is what your apps are using.
- Wired Memory belongs to macOS itself and can’t be moved or compressed.
- Compressed is memory macOS has squeezed to make room, instead of writing it to disk.
- Cached Files is the stuff kept around in case you need it again. macOS gives it back as soon as anything else wants it.
- Swap Used is memory that didn’t fit and was written to disk.
Cached Files is usually the part that makes the Mac look full. On my 16 GB Mac it’s often 4 or 5 GB on a normal afternoon, and none of it is a problem.
Figure 1
Where 16 GB goes on a normal afternoon
Compression comes before swap
When apps need more memory than is left, macOS first compresses memory that hasn’t been touched for a while. Compressing and uncompressing costs a little processor time, but it’s much faster than going to disk, and a lot of memory compresses well.
Only when compression can’t keep up does macOS start writing to swap. That’s the point where you start to feel it.
Figure 2
What gives way as apps ask for more
The graph worth watching
Next to those numbers is a small graph called Memory Pressure. It’s the one number on this tab that tells you whether your Mac is short of memory.
- Green: there’s room, even if “used” says the Mac is full.
- Yellow: macOS is compressing hard and may be swapping. Fine for a few minutes, worth a look if it stays.
- Red: the Mac is short, and you’ll feel it.
If the graph is green, the size of “Memory Used” doesn’t matter. If it’s been yellow or red for a while, look at the App Memory column of the list above it, sorted from largest, and see which app is holding the most.
About memory cleaners
There are apps that promise to free memory with one click, and Terminal has a purge command that does the same thing. They work, in the sense that the free number goes up. What they free is mostly Cached Files, the copies macOS kept so things open quickly. The next time you open those files or switch to those apps, the Mac reads them back from disk, and it’s a little slower than it would have been.
If pressure is green, there’s nothing to clean. If it’s red, a cleaner frees cache that macOS would have given up on its own anyway, and doesn’t touch the memory your apps are actually using.
So when is it a problem?
When pressure stays yellow or red, when swap keeps growing, or when one app holds far more than it should. Those are the cases where quitting an app or restarting helps, and I wrote about how to tell them apart in When does restarting your Mac actually help?
Otherwise, a full-looking Mac is a Mac using its memory the way it was designed to.