this post was submitted on 13 Dec 2024
75 points (87.1% liked)

Firefox

18037 readers
341 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 5 years ago
MODERATORS
 

Does anyone have this issue were firefox becomes slow if left open for a long time. In my case after a couple of weeks rendering becomes slow and when I use youtube for example if is laggy, just trying to change volume taka few second to show the volume bar. It also happens to my laptop at work. I have around 30 tabs open.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 4 days ago (2 children)

Dawg I had like ~35 tabs open and hadn't restarted my PC in over three weeks. Fucking Firefox was sucking back 80 gigs of RAM. 80 fucking gigs.

On the bright side all the tabs were still loaded when I clicked through them.

[–] [email protected] 10 points 4 days ago (1 children)

I've seen poorly made websites taking gigabytes of RAM before. It's not firefox' fault they do that.

[–] [email protected] 2 points 4 days ago (1 children)

True that, I just thought it was crazy. I had recently upgraded to 96 gigs of RAM and I just never imagined a browser would actually suck up that much.

[–] [email protected] 2 points 4 days ago* (last edited 20 hours ago)

If you had 80GB worth of websites that did something actually useful with it, you'd want Firefox to use it all.

I usually have dozens of tabs loaded due to usage and I want Firefox to keep all of them into memory so that I can switch between them quicker.

Though I do also want Firefox to shed load by unloading some of them whe I need memory for something else. There just simply isn't a mechanism in Linux to do that AFAIK; Firefox will happily keep all of its tabs loaded all the way until OOM eventhough it could shed most of them with little impact on user experience. There isn't a way for the kernel to ask applications to shed memory load on their own and I think there should be.
macOS has such a mechanism and Firefox uses it but it didn't have much effect IME, so it might have been bugged. That was a good while ago that I tested it though.

Edit: I just found out that there actually is a sort of standard mechanism now: https://systemd.io/MEMORY_PRESSURE/
I don't think firefox implements it but it's also kinda new.

[–] [email protected] 1 points 4 days ago* (last edited 4 days ago) (2 children)

I can't wait for Servo to be finished so I can move away from Firefox, it uses way too much memory.

[–] [email protected] 6 points 4 days ago (1 children)

Servo won't protect you against shitty websites gobbling up memory.

[–] [email protected] 0 points 4 days ago* (last edited 4 days ago) (1 children)

It will still lower memory usage considerably, Firefox uses way more memory than Chrome. Memory optimization is horrible in Firefox.

[–] [email protected] 3 points 4 days ago (1 children)
[–] [email protected] 1 points 4 days ago* (last edited 4 days ago) (1 children)

I test firefox vs edge in my pc, both with ublock origin. Firefox noticeably uses more ram than edge which uses same engine as chrome.

Here this person saw the same results as me: https://libreddit.bus-hit.me/r/firefox/comments/18gp19l/ram_usage_in_firefox_vs_edge

[–] [email protected] 3 points 4 days ago* (last edited 4 days ago) (1 children)

Their methodology (and therefore likely yours aswell) is flawed and it was immediately pointed out in that thread too: https://libreddit.bus-hit.me/r/firefox/comments/18gp19l/ram_usage_in_firefox_vs_edge/kd2u2pq/?context=3#kd2u2pq

Measuring the memory "a process" actually "uses" is not trivial.

[–] [email protected] 1 points 4 days ago* (last edited 4 days ago) (1 children)

I'm so hyped as well! Just read their monthly update blog today actually! I'm mostly hyped because it's the first actual new web browser in a very, very long time, and that's just plain exciting!

[–] [email protected] 3 points 4 days ago (1 children)

There are two new browsers coming Servo written in Rust and Ladybird (web browser) written in Swift. Lets see which one will win. Ladybird alpha is coming in 2026 and they have more funding.

[–] [email protected] 1 points 3 days ago

Oh awesome, I didn't even know about this other project. Thanks for letting me know.