Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

akidokraja

macrumors 6502
Original poster
I have brand new MacBook Air M5 15 inch, 32 GB, 1TB. running Tahoe, 26.4.1
Everyone says: "Oh don't worry, just let the system manage memory - it is very efficient..blah blah blah". It is obviously not that great, or to say pretty horrible. Look at my screenshot of my app I am working on - and no it is not mistake in the app as Activity monitor shows same swap. Shouldn't Compressed memory be immediately released before Swap is used? Once I restart and open all the same apps and windows no more SWAP. Just look at screenshots.
Can anyone explain this without just saying: it is fine just let system handle it?
What I have running:
my monitoring app (less than 100 MB RAM). 3 Xcode windows - different projects. One simulator. maybe 3 Safari windows with around 4-5 tabs open). ChatGPT app. Dropbox, Text Edit, preview with one pdf of 10 pages open.
 

Attachments

  • Screenshot 2026-05-14 at 4.49.06 PM.png
    Screenshot 2026-05-14 at 4.49.06 PM.png
    5.9 MB · Views: 15
  • Screenshot 2026-05-14 at 4.50.40 PM.png
    Screenshot 2026-05-14 at 4.50.40 PM.png
    5.9 MB · Views: 9
  • Screenshot 2026-05-14 at 4.48.40 PM.png
    Screenshot 2026-05-14 at 4.48.40 PM.png
    6.1 MB · Views: 8
  • Screenshot 2026-05-14 at 4.45.36 PM.png
    Screenshot 2026-05-14 at 4.45.36 PM.png
    5.9 MB · Views: 9
  • Screenshot 2026-05-14 at 4.50.03 PM.png
    Screenshot 2026-05-14 at 4.50.03 PM.png
    6.1 MB · Views: 9
  • Screenshot 2026-05-14 at 4.55.34 PM.png
    Screenshot 2026-05-14 at 4.55.34 PM.png
    7.4 MB · Views: 8
  • Screenshot 2026-05-17 at 7.40.09 PM.png
    Screenshot 2026-05-17 at 7.40.09 PM.png
    5.5 MB · Views: 9
Can anyone explain this without just saying: it is fine just let system handle it?
How deep an explanation do you want? macOS will move low priority background system tasks to dynamic swap to leave room in physical memory for higher priority application memory needs. You can turn off swapping memory to disk if you don’t want to “let the system handle it”. I’m sure you will hear from swap haters on how to do this shortly ;-)
 
Last edited:
  • Like
Reactions: gilby101
Shouldn't Compressed memory be immediately released before Swap is used?
The Compressor handles shortage of memory by first compressing memory and if that is not sufficient swapping to disk. My understanding is that the algorithms make decisions on what to compress and what to swap based on how likely that memory will be required in the future. But also that there is no requirement to release compressed memory at the same time as moving memory to swap. The parameters controlling those algorithms vary between Macs and are forever tweaked with macOS updates.

The Activity Monitor output in your screenshots look perfectly normal.

Restarting releases all memory, so you must expect zero swap and very little compressed after a reboot. Here is the recent memory usage of my iMac. The reboot on 12th May cleared all swap and initially there was no compressed RAM.

1779067248345.png


Apple does not document any of this though much of the macOS kernel is open source and can be explored. Also "*OS Internals" also known as "macOS and iOS Internals" by Jonathan Levin (3 volumes) is a useful if slightly dated reference. Volume 2 covers the kernel. There is also an older single volume "Mac OS X and iOS Internals" which I find more readable but which is now dated.

As aside, things I don't like in your app: You are classifying Cache memory as Free memory. Also memory pressure is more critical than Activity Monitor.

 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.