[Bug 266259] www/firefox 104: high CPU usage

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 07 Sep 2022 07:50:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266259

--- Comment #3 from Guido Falsi <madpilot@FreeBSD.org> ---
Hi,

I'll explain what I'm seeing.

On my main PC I'm running head and package built with poudriere from head.
Firefox is perfectly usable here, except some CPU usage peaks on certain
interactions, but these could be caused by a lot of things. These peaks were
less frequent a few weeks ago, but again could be unrelated.

The firefox package I build has LTO disabled, but a quick test shows it makes
no difference.

In BHyve VMs (13.1, quarterly packages, 2 vCPUs) I noticed firefox being
definitely slower at startup and in navigation, with long lasting peaks of CPU
usage at every interaction. Also there are firefox processes constantly eating
10-20% CPU even when on a static page doing nothing. This is happening any way
firefox is run (via X11 connection to host, RDP, VNC console)

Resetting the firefox profile in the VM (by `rm -rf ~/.mozilla) the issue is
mitigated, but is not going away. CPU peaks last a little less, but I still see
firefox processes eating CPU when idle.

Moving the machine to latest packages did "fix" the issue.

Firefox anyway IS more jumpy on CPU usage recently, but again, this could be
normal behaviour.

Maybe the issue builds up with usage, with firefox profile files growing. Maybe
it's not firefox but some other dependency, or something specific happening in
the profile, or some firefox port option...Or a combination.

-- 
You are receiving this mail because:
You are the assignee for the bug.