It is normal. The same thing happened with my Mac mini that had 32 GB of RAM. Even Windows PC's do it. As to the technical details IDK but I suspect the programmers at Apple know more than me so I leave it alone.Why is my Macbook Pro 16 with 32gigs of RAM keep using disc swap when there's 10gigs of RAM free? Isn't this wearing out the SSD unnecessarily?
View attachment 2167157
Why is my Macbook Pro 16 with 32gigs of RAM keep using disc swap when there's 10gigs of RAM free?
Isn't this wearing out the SSD unnecessarily?
Probably a brief spike in demand.Why is my Macbook Pro 16 with 32gigs of RAM keep using disc swap when there's 10gigs of RAM free? Isn't this wearing out the SSD unnecessarily?
View attachment 2167157
60 MB is also an extremely tiny amount.
Restart your Mac. From what I’ve observed (including other posts), macOS only feels the need clean/purge VM page files at (re)boot. Perhaps it’s a behavior originating from UNIX. In other words, whatever amount is shown in Activity Monitor isn’t necessarily still being swapped around on disk — it may have even been just a one time swap days or weeks ago, depending on how often you restart your device.but if it really bothers you
Not only is it putting unnecessary wear on the SSD it’s also slow and inefficient in general since RAM is far faster. Mac OS (and Windows) are both terrible about this, using swap all of the time even when there’s plenty of RAM. Linux doesn’t do this and will leave swap at 0 until/unless there’s actual need, which is what all OSes should do.Why is my Macbook Pro 16 with 32gigs of RAM keep using disc swap when there's 10gigs of RAM free? Isn't this wearing out the SSD unnecessarily?
View attachment 2167157
While not the same thing as how it is used in Linux, virtual memory can be disabled on MacOS if someone was worried about SSD wear.Not only is it putting unnecessary wear on the SSD it’s also slow and inefficient in general since RAM is far faster. Mac OS (and Windows) are both terrible about this, using swap all of the time even when there’s plenty of RAM. Linux doesn’t do this and will leave swap at 0 until/unless there’s actual need, which is what all OSes should do.
I'm curious: what happens if you run out of RAM and you have swap disabled?While not the same thing as how it is used in Linux, virtual memory can be disabled on MacOS if someone was worried about SSD wear.
In very old MacOS versions, there used to be GUI to disable/enable it, and how much to reserve for it, but I think that went away with OSX.
It can still be disabled using terminal, but I haven't tried it in AS.
It has been a while, but IIRC what happens is the OS will crash, and require a restart.I'm curious: what happens if you run out of RAM and you have swap disabled?
Agree. I'm quite paranoid about SSD wear and senseless paging or swapping, but even I wouldn't be worried about 60MB of used swap space just sitting there.Activity Monitor only shows you the current swap. It doesn't show you the rate of swap activity. So if you start up a program and you don't use it for a year, then it shows the swap for the program. But it actually doesn't contribute to SSD writes.
Interesting experiment, but I sure wouldn't want to work that way day to day!It has been a while, but IIRC what happens is the OS will crash, and require a restart.
IIRC, I only had it happen to me once. At the time, I was using a Mac Pro 1,1 with an SSD as a boot drive and 11GBs of RAM. This was prior to TRIM support.
I was testing the limits of my 11GBs, as MacOS tend to start using swap way before you actually needed it, so I never knew what the limits were.
I don't remember exactly what happen, or if there was an error screen that popped up, or if it just froze, but I am pretty sure it just required a restart to fix.
11GBs was a decent amount of RAM back then, so I really didn't have that much worry. I might have used a free memory app as well, but it has been while, and I cannot remember what the name was.
You're not seeing lots of paging, you're seeing the existence of a small stub VM file ready to be expanded when necessary.Why is my Macbook Pro 16 with 32gigs of RAM keep using disc swap when there's 10gigs of RAM free? Isn't this wearing out the SSD unnecessarily?
View attachment 2167157
This is perfect. Thanks 👍If you want to skip the technical jargon:
Check if your Mac needs more RAM in Activity Monitor
Use Activity Monitor on your Mac to see if memory is being used efficiently and if you need more memory (RAM).support.apple.com
syslog is killing my Mac!(and don't forget about all those several thousands of parameters per minute macOS is writing to your SSD anyway! 😜)
If memory on an Apple Silicon device has a bandwidth of 400GB/s and BlackMagic Speed Test shows SSD read/write speeds of ~5,000MB/s - is that saying:
- That using a swap file has a ~80x performance hit compared to memory? (400GB/s / 5000MB/s)
- That 32GB of memory could be completely re-written ~12x per second? (400GB/s / 32GB)
Or is that a bad way to look at it, because memory/swap file access is not a clear picture of overall system performance?
I don't see 10 GB of free space I see that 21.13 + 9.97 = 31.1 GB is beibg used. So you have 0.9 GB free.Why is my Macbook Pro 16 with 32gigs of RAM keep using disc swap when there's 10gigs of RAM free? Isn't this wearing out the SSD unnecessarily?
View attachment 2167157
Not entirely true. I ran into a couple of bugs with Davinci Resolve that caused red memory pressure for a basic 1080p video. Something that Final Cut Pro can use in 5 GB. And this is on my 128 GB RAM Mac Studio.If you want to skip the technical jargon:
Check if your Mac needs more RAM in Activity Monitor
Use Activity Monitor on your Mac to see if memory is being used efficiently and if you need more memory (RAM).support.apple.com
I get your point, and troubleshooting is valid. However, that does not nullify the Apple support/KB document, which does not address — no pun intended — the RAM usage cause/source. In other words, your scenario would err could still befit from more RAM as the article indicates, but with an indefinite ceiling.Not entirely true. I ran into a couple of bugs with Davinci Resolve that caused red memory pressure for a basic 1080p video. Something that Final Cut Pro can use in 5 GB. And this is on my 128 GB RAM Mac Studio.
So does mine, and I’ve had dozens of Web browser tabs across Chrome and Safari*, an image in Affinity Photo, Mail and Messages constantly open, TechTool Monitor service (in the background), YouTube playing in Chrome, Activity Monitor, and still have enough RAM for 5GB+ of cache. Of course, memory pressure is green.I've said it before and I'll repeat:
The OP's complaint is one of the reasons I've turned OFF VM disk swapping on my Macs (using terminal).
Open Activity Monitor, and all I'll ever see is:
View attachment 2170326
If I enter this in terminal (to check swap):
sysctl vm.swapusage
Terminal gives me this reply:
vm.swapusage: total = 0.00M used = 0.00M free = 0.00M
VM -- it's something I neither need nor use!