Fitting heavy Chrome usage into 16GB RAM

Hi,

We all know well by now that the RAMpocolipse is not ending anytime soon :frowning:
because of this I ordered a FW13P with only 16Gb RAM vs the 32 I would have liked.
Does anyone have advice for how to keep RAM usage low (I am a tab HOG current count is 119 :skull:) I can keep it around 20Gb usage with all my usual apps open (not including games).

I was thinking because of PCIE gen 5 would it be possible to kind of store some tabs in a kind of sleep mode? Chrome takes around 6Gb at around 78 tabs and Librewolf 4Gb at 41.
And I run F44 with KDE Plasma if that helps.

Any Help appreciated!

Firefox has an “Unload tab” feature in the right-click tab context menu. This keeps the tab, but removes the site from memory: clicking the tab loads the site as if it was fresh. It might be worth seeing if Chrome has something similar, either in the stock system, or in a plugin/extension. I find it very useful if a website is maxing out the CPU.

There might also be a plugin that closes tabs you’ve not accessed in X days too. I do empathise though - I have probably 150 tabs across six or so windows.

1 Like

Thanks I did not know this feature existed will try!
Is there a way to have it do this automatically like after a certain amount of inactivity or in bulk?

EDIT: I meant for Firefox

I don’t know for Chrome, sorry. I should think a search/browse in the Chrome plugin site might be worthwhile.

I don’t do Chrome, but for Firefox, look for the Auto Tab Discard extension. I have hundreds of tabs open in several browser windows on a 12GB Arch Linux VM, but only a handful of them are active at a time.

3 Likes

Microsoft Edge

Like, legitimately. Its chromium!
Also is firefox, or like, most other browsers.
However, unlike firefox, or google chrome, they (microsoft edge) are one of the first (if not the first) to introduce “sleeping tabs”. and they work.
Even on Opera GX (second try) its quite the hit or miss. You can slam the “resource limiter”, but it kinda just make the browser more unuseable.

100 tabs, use like, 3 gigs. maybe

I would never use Edge in a thousand years because of how terrible every other aspect of it is.
There is a reason I use Firefox that is because of its simplicity and goals.
However I thank you for sharing that experience and will keep it in mind if I get(extremely) desperate.

Thanks!

I have tried this but it seems to just put them to sleep with little RAM usage effect noticeable,
this might just be because I have only tried it for a few hours. Will update you on how this is going!

1 Like

chrome has memory saver feature, not sure if it is what you want

if you are suggesting utilizing pcie… then you should do nothing and trust the swapping :wink:

1 Like

I have been using it and it has helped a bit but still above the target.
Guess will just have to rely on swap. Is there a way to change how swap works to be more aggressive or something that might help a little more I am fine if my tabs load a bit slower?

Could you add a snapshot of your desktop’s process monitor? On Debian/Ubuntu/Mint it is called System Monitor, but Fedora might have another tool. Choose the process list and sort by memory (descending). Take a piccy and pop it here.

I’ve just a look at my own system: 32GB desktop VM on a 64GB host, and my Firefox usage fits under 12GB, and I think it is heavier than yours. I have 1.3GB of swap usage. With a lightweight desktop as well, I should think you would be fine inside 16GB.

I just installed smem (from my distro registry) and ran smem -c pss -P firefox -k -t (switches obtained from AI help). This gave me the above measurements for the parent binary plus around 50 content-renderer child processes. If you want to run that for Chrome, send the data here, and we can take a look. It would help confirm that Chrome really is the problem.

Finally, sometimes it helps to look at the chunkiest tabs - Slack, WhatsApp, and Discord are usually monsters, and closing even one of those can improve memory usage and performance.

Sounds good will send from current laptop tomorrow!
I have not recived my 13P yet (Stuck in customs)

1 Like

If customs hang onto it too long, it will need to be revived and not received :upside_down_face: :cat_with_wry_smile:

Might need to be revived also you never know what they will do to it :smiley:

1 Like

If this isn’t your issue, maybe look at how long the inactivity time is before it unloads tabs.

Auto Tab Discard extension really should work, as long the tabs are actually getting unloaded. I have a laptop with only 16 gb & it’s kept things usable. Even when tab numbers go straight off the rails. I don’t want to admit how high I’ve reached. Hundreds…
Ok, actually, over a thousand. :upside_down_face: yeah, I know…
If Auto Tab Discard can keep firefox alive through that, it should work for anyone. Unless it’s a few hugely heavy tabs which aren’t getting unloaded.

2 Likes

Thanks,

I will try everyone’s suggestions once the laptop gets here.
I want to try it on a clean slate but thanks for all the helpful advice!
Will update everyone once it comes.

you can try and change vm.swappiness to above 150, given it’s Fedora and zram is enabled by default.

1 Like

Or maybe, disable zram, create a swap partition and use zswap instead as that is currently the common recommendation. See Debunking zswap and zram myths
Fedora uses zram by default because swap to disk was not enabled by default.

1 Like

Before jumping to zswap, should try to bump up the zram size. It’s safe to go to 1.5x RAM. I think Fedora’s default is 1.0?

If the swap file ends up being necessary, zswap really is the way to go. 50% RAM usage should be fine. Be sure to fully disable zram too.

1 Like

Have you checked out any of the lighter weight desktop environments?

This was me at one time:

:grin:

there are some that are close to KDE or way light, heavy and awesome. :wink:

1 Like