Re: firefox is slow and uses a lot of memory

From: Michael Schuster <michaelsprivate_at_gmail.com>
Date: Fri, 02 Jul 2021 07:04:44 UTC
On Fri, Jul 2, 2021 at 8:57 AM Daniel Ebdrup Jensen <debdrup@freebsd.org>
wrote:

> On Thu, Jul 01, 2021 at 12:49:15PM -0700, Craig Leres wrote:
> >Starting with firefox 89 or so, I've found it starts using a LOT of
> >memory and actually makes the system sluggish and causes momentary X
> >freezes. I have 32G of ram/swap, is it reasonable for firefox to use
> >15G?
>

just an idea:
If you enabled "Restore previous session" and had a lot of stuff open when
you left off the last time, perhaps you want to repeat this test with a
"clean" session - probably the easiest would be using a different user
account, though I'm sure firefox-savvy people will be able to show you ways
of doing this with your own user account w/o having to dump your usual
settings.
This may show you whether it's an issue with firefox per se or the pages
you loaded.

HTH
Michael

>
> >               Craig
> [SNIP]
>
> Hi folks,
>
>       I can't help but wonder if this is because of the link-time
>       optimization that was enabled rather recently (with v88, if memory
>       serves).
>
>       Perhaps you can investigate this?
>
>       If you just want to mitigate it, there's two ways of achieving it:
>       You can either use limits(1) or use resource control via rctl(8).
>
>       The second option does mean that you either have to limit the
>       memory use of your user account, or run Firefox in a jail, but
>       using [1] makes that relatively easy.
>
> Yours,
> Daniel Ebdrup Jensen
>
> 1: https://wiki.freebsd.org/JailingGUIApplications
>


-- 
Michael Schuster
http://recursiveramblings.wordpress.com/
recursion, n: see 'recursion'