sysctl vm.swapusage returns total available, used at that moment and free at that moment.I searched and read through posts but can't find the answer to this question:
If I see 500MB of swap used, what does that mean - is 500MB currently in use, or has 500MB been used at some point since the last reboot? Thanks,
From what I’ve read in documentation, articles, etc as well as observed… Basically, it’s the latter. In a little more detail, as long as there are resources available (e.g., free disk space), the OS will leave (i.e., won’t purge) virtual memory page files until a restart or user command — forcing via a command should not be necessary in 99.999% of cases. By the way, a restart clears other caches as well.I searched and read through posts but can't find the answer to this question:
If I see 500MB of swap used, what does that mean - is 500MB currently in use, or has 500MB been used at some point since the last reboot? Thanks,
That's not "basic", that's serious office use. I got an M1 with 16GB RAM for office use and I'm glad that I did since it's usually around 12-13GB RAM used, excluding the buffer cache. It's nice to have a couple of GB of buffer cache so that the processor doesn't have to wait for the SSD so often. That said, since you've already got the 8GB machine I'd use it until and unless you notice it being sluggish due to paging or swapping.My usage is pretty basic
Which is understandably zero across the board for my Mac:sysctl vm.swapusage returns total available, used at that moment and free at that moment.
https://remonpel.nl/2012/01/virtual-memory-configuration/
vm.swapusage: total = 0.00M used = 0.00M free = 0.00M (encrypted)
Also, don't forget that it'll make the computer a lot faster. Using swap is extremely slow compared to RAMI don't remember any report of an SSD failing due to excessive swapping but it does make sense to reduce it when you can. If you are in a return period I would be safe and exchange it for 16 GB. This could extend the life of the system if your needs change and you start using memory intensive programs.
Also I think we all forget that the main system RAM is also used for video memory too, which takes gigabytesThat's not "basic", that's serious office use. I got an M1 with 16GB RAM for office use and I'm glad that I did since it's usually around 12-13GB RAM used, excluding the buffer cache. It's nice to have a couple of GB of buffer cache so that the processor doesn't have to wait for the SSD so often. That said, since you've already got the 8GB machine I'd use it until and unless you notice it being sluggish due to paging or swapping.
Hello guys, I'm pretty new user on macOS. Couple of months ago bought a Mac mini M2 base model (8/256).
My usage is pretty basic, Safari and internet browsing,...
Also, don't forget that it'll make the computer a lot faster. Using swap is extremely slow compared to RAM
Then we have to ask "Is swap actually slow?" It used to be back when you all used spinning hard drives. But now with VERY fast FLASH RAM used for swap it is not so slow,
There are already numbers out there including a youtuber that tested recently that was posted on this siteReally??? Got numbers? Don't guess.
The average time of access is what matters. Nothing else does. Aferate time is the sum of two things..
The probability that the data is in RAM times the speed of RAM plus the probability that the data is in swap times the speed of the swap.
Now let's say the OS is doing its job and 99.99% of the time the OS guessed correctly and put the data in RAM. In this case, the swap speed does not matter.
But assume it is doing worse and 10% of the time the data is in swap. Even in this case the the slowed down is not by much at all.
Then we have to ask "Is swap actually slow?" It used to be back when you all used spinning hard drives. But now with VERY fast FLASH RAM used for swap it is not so slow,
Also with a multitasking OS like we have, there is always something else to do that is productive if some task is blocked which is a swap-in. So this the computer really slowed? Much depends on if macOS guessed right about what to place in swap and what to keep in RAM.
While I agree with the overall point of your post, I definitely think the bolded part is incorrect.Don't listen to your friends. They have what everyone around here has... RAM anxiety. 8GB for your use case should be totally fine and ignore the swap numbers. Most of the time it's pointless. Under normal conditions, MacOS will always use some swap regardless of how much memory you bought.
I took a 2 week hard test drive of an 8GB 13" M1 MBP a couple of summers ago. I have a very heavy workflow. I intentionally used an under-resourced model because I wanted to see if I could run it into the ground.
It held up and then some even though the memory pressure was red the entire time I had it. You'll be fine.
And your SSD is going to be fine too. Chances of you exhausting its lifespan is virtually zero.
While I agree with the overall point of your post, I definitely think the bolded part is incorrect.
It is correct. I have a 36GB M3 Max MBP here, and as it sits right now, the computer reports it's using 631MB of swap even though it's only using 15.6GB of RAM.While I agree with the overall point of your post, I definitely think the bolded part is incorrect.
That's a different point. I agree it uses swap before maxing out the memory. But that's different than saying it always uses swap.It is correct. I have a 36GB M3 Max MBP here, and as it sits right now, the computer reports it's using 631MB of swap even though it's only using 15.6GB of RAM.
Your friends are mistaken. M-series Macs use RAM differently to traditional x86 processors and require less for decent performance. I can run 3D games in Windows 11 in Parallels Desktop on my 8gb MacBook Air with no noticeable slowdown - that would certainly not be the case on an Intel model. You only require 16GB+ of RAM on M1 models for very demanding, high end tasks like professional video editing, 3D modelling etcHello guys, I'm pretty new user on macOS. Couple of months ago bought a Mac mini M2 base model (8/256).
My usage is pretty basic, Safari and internet browsing, YouTube, multimedia, mail, messages (via iPhone), calendar for appointments, reminders when I arrive at work, Apple Music, Apple Podcasts, Pages/Numbers, MoneyBoard for expenses, and messaging apps (FB Messenger/Viber/Discord).
Video/Photo editing no at all.
My friends tell me that I made the wrong decision and that I should go for 16GB RAM. But for my usage and the search I've done before I was pretty sure that I would be fine with the base model. They claim - without something on hand of course - that memory swap usage will tear away my SSD pretty fast.
Unfortunately, this has been so much into my mind, that I find myself clicking numerous times in the day the Stats app option for checking the swap usage which is always around at 1.2GB.
I don't have technical knowledge of macOS and what it right and what wrong.
Should I stick on my newly beloved Mac mini M2? Should I sell it and opt in for 16GB version?
Thanks in advance anyone that answer, regards from sunny 🇬🇷.
You lost all credibility when you said you run VMs with only 8GB of RAM with no noticeable slowdown.Your friends are mistaken. M-series Macs use RAM differently to traditional x86 processors and require less for decent performance. I can run 3D games in Windows 11 in Parallels Desktop on my 8gb MacBook Air with no noticeable slowdown - that would certainly not be the case on an Intel model. You only require 16GB+ of RAM on M1 models for very demanding, high end tasks like professional video editing, 3D modelling etc
So I'm just imagining it then? 🤷🏻♂️You lost all credibility when you said you run VMs with only 8GB of RAM with no noticeable slowdown.
Yes. You are not running VMs on top of macOS all on 8GB of ram without penalty. Come back to reality.So I'm just imagining it then? 🤷🏻♂️