I get this on an M1 Pro with 16GB. It's astounding. It claims to use swap but the trust is broken. I keep the Activity Monitor around and try to guess when it'll go flaky on me, but I never guess it right. I just restarted my machine now to reset whatever stupidity it has going on.
Never had it with Windows. Or iPad, or iPhone. Why does the pro computer do this? My guess is 5k external monitor and a few desktops, but...really. I'm not running multiple layers of VM's, it'll crash it with a few VS code windows, browsers, command lines.
There is an intermitted and basically unacknowleged memory leak in M1, which is supposedly addressed in M2. It also depends what app you're using - Logitech Options was somehow hogging top to 12gb on occasion, but was fixed sometime in the past few months.
So what you're saying is you're running multiple browsers (VS Code is a browser), each of which takes anywhere from 1 to several GB of memory, and you're surprised that you're running out of RAM...
Correct. I often have hundreds of browser tabs open on my iPhone, but it knows how to manage resources by unloading the ones I'm not looking at right now. The Mac can also swap tabs or apps to disk. Or warn me when I hit 90%. The only wrong option is to start freezing when it's too late. I'm a software developer who has been coding for decades, and I'm surprised by this failure mode. What would a random non-techie need to learn to reason about this? It's not like Macs are marketed only to technical professionals who keep an eye on resources.
Look, at least the Apple is smart enough to wake up basically in the same window state after having refreshed the resources. That's fantastic. But even better to fix it without going through the whole "have you turned it off and on again" routine.
> I often have hundreds of browser tabs open on my iPhone, but it knows how to manage resources by unloading the ones I'm not looking at right now. The Mac can also swap tabs or apps to disk.
Different models of computing. The iPhone only displays one tab inside one application at a time. And switching is slow enough that the OS can prefetch the swapped memory for the new view. A desktop app usually keeps everything alive as switching is very random and instantaneous. And you don't go open things that require a lot of RAM when you don't have that many (Each electron app is a whole new browser which is already a resource hog)
Never had it with Windows. Or iPad, or iPhone. Why does the pro computer do this? My guess is 5k external monitor and a few desktops, but...really. I'm not running multiple layers of VM's, it'll crash it with a few VS code windows, browsers, command lines.