Thoughts from my 14-year-old backup Thinkpad T430 after the main laptop died:

* Github's javascript UI is SO SLOW
* Most of the rest of the web is actually not terrible (at least with adblock)
* It drives a 4K screen surprisingly well
* Video playback is bad
* How is this thing running out of RAM, it has 12GB...
* The keyboard is a delight

So it turns out that Ubuntu's Firefox Snap blocks Firefox from reading the system memory pressure, which it uses to work out when to reclaim memory by hibernating unused tabs.

Nobody thought to check why this kept getting blocked by AppArmor until someone pointed it out, and it still hasn't been fixed.

@russss this is infuriating 😡😡

@red this thing has 12GB of RAM, I don't think that's an unreasonably small amount!

I'm going to need to know how much RAM and how many browser tabs the Ubuntu devs have now.

@russss The entire snap thing is extremely dumb and it's the reason I switched to a mac. I am completely over fundamental stuff not working properly for stupid reasons and not getting fixed either.
@m0rpk I haven't had much experience with snaps so I approached it with an open mind but unfortunately I have been disappointed.

@russss My experience of snaps was that I didn’t know they existed until I updated Ubuntu (routinely) and Firefox (1) lost its profile; (2) could no longer access the file system.

This was apparently desirable behaviour and not a usability catastrophe (where are all my bookmarks, plugins and settings, and why can’t I download anything?!)

Once I realised they’d containerised everything and it was going to be my problem to deal with that whole mess, I nuked from orbit and never looked back.

@russss snaps are why I left Ubuntu woth zero regrets.

@janl @russss using what now? Debian?
Went for Ubuntu in, what... 2006 because "bleeding edge" compared to debian.

Must say, I'm starting to like fedora on my laptop more and more

@miekg @russss a mix of Debian and FreeBSD.
@janl unfortunately this was what was installed on my backup laptop from a while ago, and I wasn't really in a position to reinstall it when my main laptop died! It is an interesting experience...
@russss good luck with it all!
@russss TIL; I wondered why Firefox kept OOMing...

@hugh you aren't the only person who has learned this from me this week. Quite pleased that I managed to identify this issue so quickly myself tbh!

You can switch to the Mozilla-provided deb to fix this, but it will nuke your profile (you have to export and reimport) and you need to make sure that ubuntu-restricted-extras is installed if you don't want video playback to mysteriously fail.

@russss is ff itself maintaining the snap pack?
snap: add `system-observe` plug by soumyaDghosh · Pull Request #174 · canonical/firefox-snap

users can connect to this plug to get rid of this spamming https://discourse.ubuntu.com/t/apparmor-denying-firefox-polling-memory-pressure/73588?u=soumyadghosh

GitHub