Sorted all of my open Chrome tabs into tab groups, and now the tabs only take up 32 GiBs.
That is a good thing.
RAM should be used.
Empty RAM is wasted RAM.
People that think high RAM usage is automatically bad or people that use “RAM cleaners”, or people that close apps to free up RAM on phones are idiots that don’t understand how computers or Smartphones work.
I always have 100% RAM usage. Page cache grabbing every bit
RAM usage only is a problem >90%. 20-30% is fine, that’s why you bought the memory.
Having a browser taking 30G by itself is quite the oddity. We don’t know how many tabs you have and with what contents, but could be entirely normal. Browsers usually don’t make use of things like deduplication, so several similar/same tabs each use their full amount of memory. With Kernel samepage merging (KSM), you would probably see lower memory allocation with each tab in a separate browser window, cause Linux does memory deduplication, applications usually don’t.
Browsers today are very memory hungry…Chromium/Chrome-based browsers being the poster child for this and known for using a lot of memory. Usually it doesn’t matter cause people got plenty of memory these days. I prefer Firefox for this reason…I got plenty of RAM, but if I can get a more efficient browser, that’s a plus.
Just because it uses less RAM, does not automatically mean it is more efficient.
Windows uses less RAM than my Debian with ZFS and ARC. That is not because Windows is more efficient, but because Windows does a poor job caching storage.
I don’t know if Firefox is more efficient.
Maybe Firefox also does a bad job at caching things, because they fear the online backlash of noobs that don’t understand RAM. Or they bet on noobs that think this is an advantage over Chrome.
I probably had somewhere between 200 to 300 tabs open. I think Chromium has a memory leak when moving from tabs to tab groups. After restarting my computer the ram usage dropped from 25% to 12%. Also after organizing the tab groups, and consolidating ten browser windows into one I probably closed around 100 to 200 tabs and only saw a 5 percentage point drop in total ram usage. I actually believe the usage went way up during the reorginization. I had a bunch of duplicate tabs of the same site.
I was having this issue too after switching from a 2x 4GB Samsung “kit” to a 4x 8GB kit from Corsair. I noticed it jumped up from something lower to 8GB, basically an entire stick.
For me, it went away after a while, literally just doing nothing but idling, or basic operations. I wish I could give a better answer, response, or technical instruction, but that’s the best that I’ve got. I’m sorry.
Feel free to post if it goes away for you as well.
Restarting will empty the cache. That is how cache works. Same with ARC, when you restart your TrueNAS, ARC usage will be 0.
BTW, I am using this analogy, since I know that OP is a ZFS user.
Again, if you close all SMB connections on your TrueNAS, ARC usage will not go to 0. That is not how cache works.
I just find it funny. As long as, I still have enough ram to compile Unreal 5 in ram I’m happy.
Chrome will use as much memory as it wants, until it detects a memory pressure situation and begins to unload and conserve memory. I disagree with the aggressiveness of this strategy.
This is good programming…take as much as you need and more and be flexible to cede back optional caching if necessary. Just because an application uses x amount of memory, doesn’t mean that value is set in stone.
With virtual memory space and massive over-commitment of (virtual) memory, Linux has a bunch of mechanics in play so we get the most out of our expensive DRAM
I absolutely believe that’s the case, you probably pulled a bunch of tabs from long-term cache/storage to RAM as you were reorganizing them and bringing them to the foreground.
Your browser doesn’t normally keep all the open tabs actually running; that would be insane, especially at such large numbers.
My memory also gets clogged up fast as I have many open tabs. It doesn´t matter what browser you use.
For all those with memory clogging browsers perhaps this browser extension may be of help, works on many browsers and can be customized to suit one´s needs, I am very happy with it and have it installed in all my browsers on all PCs: one-tab.
Look on google or other search engine for “one-tab” or ad a “.com” to find it.
I shouldn´t post links so I apologise for this kind of “linking”.
Place one-tab in the extension and also pin it to the symbol list to ease usage. See all available options to get the most out of it, you can even let it close down multiple doubled tab contents automatically.