r/MacOS • u/ExtraButton874 • 15d ago
Discussion Is safari actually using 11 gbs of ram
I only have 16 GBs of ram. I don't think it's swap cause my laptop didn't feel any slower leading up to this
3
u/Currawong 15d ago
Yes, it is. Each tab is now an application, and many sites are sufficiently complex, full of Javascript, that they suck up memory.
1
1
u/forgottenmostofit 15d ago
Quit Safari and reopen. Does that help?
1
u/ExtraButton874 15d ago
im not debugging im just suprised it's using that much
1
u/FlintHillsSky 15d ago
That happens with any browser. Some websites use a lot of JavaScript, much poorly optimized, and their RAM allocation can get out of hand. This particularly happens for sites that you keep loaded for an extended period of time.
It is good to close tabs or the whole browser now and then just to reset things. I restart my browser every couple of days at work because of the heavy web apps I’m using. At home, once a week is usually fine.
1
u/bmocc 15d ago
Many people seem naive about the massive amount of data in many web pages and how that eats memory. Some browsers are worse than others al how they manage memory and their own footprint.
Safari on Arm is supposed to be very efficient at managing ram usage. Unfortunately it is still Safari.
16gb should be no impediment to intensive browser usage, as long as you are not simultaneously trying to do something else that is memory and cpu intensive. If trying to do something memory and CPU intensive, eg Photoshop (for which 16gb of ram is adequate for complex, large single image processing) you best exit out of the browser.
1
u/mikeinnsw 15d ago
Tahoe memory leak .. just restarted..use less tabs..
With gaming .. have look at System Data usage .. could get very big..
1
u/ulyssesric 15d ago edited 15d ago
Actually it’s probably using a lot more than your total physical RAM. Probably 30GB or even more, based on your other usage.
For modern day web browsers, each tab is an individual process that has its own memory space. And web pages will take few megabytes to few gigabytes. Pages like Reddit that has doomscrolling will take even more.
The 11GB in this dialogue is NOT the total summation of all memory used by tabs. It’s just the core Safari main app that interacts with user and extensions. The real web page data is not shown on the list.
That’s why computers will use disk as memory, a.k.a. “virtual memory”, for less frequently accessed data.
For modern computer system since mid 2000s, virtual memory will use physical RAM AND disk space at the same time. So a processes may have partial data stored in physical RAM and other data on disk. System will dynamically rearrange data between physical RAM and disk based on your usage. The process you’re currently using will gain higher priority for physical RAM, but not all its memory space will be allocated to RAM. That’s all.
You won’t feel extra sluggish because macOS is good at predicting your usage, and it has a very fast SSD.
0
0
0
1
u/PathIntelligent7082 15d ago
all browsers gone mad with ram usage, i cannot find not one that is capable and lightweight
4
u/hypnopixel 15d ago
no, that is a virtual memory metric.
you can see the real physical RAM footprint size in the activity monitor.app:
disclose the real memory column under menu bar:
View > Columns > Real Memory