Fresh Notch
← Blog

· 3 min read · Ahmed Sultan

My Mac’s swap is high. Is that bad?

Google ChromeFri 17:20Written to the SSD in 4 days133 GB3 GB of it swapSwap at 6.1 GBA restart usually helps above 4 GB.Memory pressure● NormalSwap used6.1 GBRunning5 daysRestart…Snooze

In short

Swap Used in Activity Monitor can look alarming, but its size says little. What swap is, when it slows your Mac down, and whether it wears out the SSD.

On this page

Swap Used is the last line in the box at the bottom of Activity Monitor’s Memory tab. On a Mac that’s been up a few days it’s often a few gigabytes, and sometimes more than ten. It’s easy to read that as a problem.

Usually it isn’t. The size of swap tells you something happened since the last restart. It doesn’t tell you whether your Mac is slow right now.

What swap is

When apps need more memory than the Mac has, macOS first compresses memory that hasn’t been used for a while. When that isn’t enough, it writes some of the compressed memory to the startup disk, and reads it back when an app needs it again. That space on the disk is swap.

There’s more on how cache, compression and swap take turns in Why your Mac’s free memory is always close to zero.

Size isn’t the problem. Traffic is.

Memory that went out to swap and stays there costs nothing. It’s sitting on the disk, waiting. What slows a Mac down is memory going out to swap and coming back in, again and again, while you work. Every app that needs a page from swap waits for the disk.

Activity Monitor doesn’t show that traffic. The best stand-in is the Memory Pressure graph beside Swap Used:

  • Swap high, pressure green: something was pushed out earlier, and nothing needs it now.
  • Swap growing, pressure yellow or red: the Mac is swapping as you work. That’s the one you feel.

If you’re happy in Terminal, vm_stat 5 prints a line every five seconds, and its last two columns are swap in and swap out. Zeros mean nothing is moving, however big Swap Used is.

Why swap stays high after the trouble is over

Swap Used doesn’t drop just because things calmed down. Memory in swap stays there until the app it belongs to reads it back or quits. So a heavy afternoon can leave a few gigabytes behind for days, and Swap Used ends up as a record of the busiest moment since the last restart.

I watched that happen this evening. With Cursor and Chrome open, pressure went yellow and swap went from 0.7 GB to 2.1 GB in a few minutes. Then pressure went back to green, and swap stayed at 2.1 GB.

It does come down when the app holding it quits. On 25 October Fresh Notch suggested a restart at 5.5 GB of swap. The last reading before the Mac went down, with apps already quitting, was 1.2 GB.

When Fresh Notch says swap is worth a restart

Figure 1

When swap is worth a restart

Restart suggested0 GB2 GB4 GB6 GB8 GBRestart2 d4 d6 d8 d10 dSwap counts from here25 Oct27 Oct29 Oct2 Nov
Fresh Notch suggests a restart in the shaded corner: 4 GB of swap or more, once the Mac has been up 3 days. Four readings from my Mac. Point at one to read it.

Fresh Notch ignores swap for the first three days after a restart. A Mac that has just booted into heavy work swaps too, and another restart wouldn’t change that. After three days, it speaks up at 4 GB, or when swap grows by 1 GB within an hour.

That’s why 29 October gets no reminder. 7.5 GB is a lot, but two days after a restart it says more about that afternoon’s work than about anything a restart would fix.

Does swap wear out the SSD?

An SSD can take a limited amount of writing, and swap is writing, so the worry is fair. In practice swap is a small part of what a Mac writes.

Figure 2

Four days of writing to my Mac's SSD

133 GB written in 4.1 days since the last restart, and about 2 % of it was swap. Point at a part to read it.

In the four days since its last restart, my Mac wrote 133 GB to its SSD. About 3 GB of that was swap. The rest was apps and macOS saving things, which they do whether you swap or not.

If your Mac swaps tens of gigabytes every day, it’s short of memory for your work, and the SSD is the smaller of the two problems.

So, is it bad?

  • High and steady, with pressure green: no. It’s a record of a busy moment. Past 4 GB, a restart clears it, and it’s worth doing when it suits you.
  • Growing while pressure is yellow or red: yes, that’s the Mac waiting on the disk. Quit the app behind it, or restart if the Mac has been up for days. My Mac’s memory pressure is yellow has the steps.
  • High every day, soon after a restart: your work needs more memory than the Mac has. Fewer apps open at once helps, and so does more memory next time.

I made Fresh Notch so I’d stop opening Activity Monitor to check. It watches swap and pressure together and tells me when a restart would actually clear something.