Re: firefox is slow and uses a lot of memory

From: Daniel Ebdrup Jensen <debdrup_at_FreeBSD.org>
Date: Fri, 02 Jul 2021 06:56:10 UTC
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?
>
>		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