Open Bug 1898319 Opened 6 months ago Updated 21 days ago

firefox slows down, needs relaunch to restore throughput

Categories

(Core :: Performance, defect)

Firefox 128
Desktop
Linux
defect

Tracking

()

UNCONFIRMED
Performance Impact pending-needinfo

People

(Reporter: pzz, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0

Steps to reproduce:

firefox nightly was running for several days, during which i actively used it for perhaps a few hours total, websites visited include gmail, google search, google calendar, google voice, youtube, et al

user agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
inxi -bz:
System:
Kernel: 6.6.10-1-default arch: x86_64 bits: 64 Console: pty pts/17 Distro: openSUSE Tumbleweed
20240109
Machine:
Type: Laptop System: LENOVO product: 20C6008SUS v: ThinkPad Edge E540 serial: <filter>
Mobo: LENOVO model: 20C6008SUS v: 0B98401 WIN serial: <filter> UEFI: LENOVO
v: J9ETA2WW (2.28 ) date: 06/20/2018
Battery:
ID-1: BAT0 charge: 23.9 Wh (71.1%) condition: 33.6/52.8 Wh (63.6%) volts: 11.3 min: 11.1
CPU:
Info: dual core Intel Core i5-4200M [MT MCP] speed (MHz): avg: 1498 min/max: 800/3100
Graphics:
Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915 v: kernel
Device-2: Realtek Integrated Camera driver: uvcvideo type: USB
Display: server: X.org v: 1.21.1.9 with: Xwayland v: 23.2.2 driver: X: loaded: modesetting
unloaded: fbdev,vesa dri: crocus gpu: i915 tty: 212x59 resolution: 1: 1920x1080 2: 1366x768
API: OpenGL v: 4.6 compat-v: 4.5 vendor: mesa v: 23.2.1 note: console (EGL sourced)
renderer: Mesa Intel HD Graphics 4600 (HSW GT2), llvmpipe (LLVM 17.0.6 256 bits)
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
Device-2: Intel Wireless 7260 driver: iwlwifi
Drives:
Local Storage: total: 465.76 GiB used: 381.99 GiB (82.0%)
Info:
Processes: 259 Uptime: 14d 10h 19m Memory: total: 8 GiB available: 7.65 GiB
used: 3.88 GiB (50.8%) igpu: 32 MiB Init: systemd Shell: Bash inxi: 3.3.31

Actual results:

yesterday when i joined a meet.jit.si meeting the video was a tad sluggish and the audio was badly fragmented, distorted, and delayed, i used the unload tab extension to unload all tabs except jit.si but that didn't help, but when i killed and relaunched nightly jit.si was fine.

Expected results:

unloading all tabs except jit.si should allow firefox to release whatever is slowing it down.

The Bugbug bot thinks this bug should belong to the 'Core::WebRTC: Audio/Video' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → WebRTC: Audio/Video
Product: Firefox → Core

The severity field is not set for this bug.
:jib, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jib)

Is this reproducible? If so, please include reproduce steps, or consider using https://mozilla.github.io/mozregression/ to try to narrow down a regression range. Otherwise I'm afraid a one-off like this is not have enough information to act on.

FWIW jitsi WFM (but I'm on macOS)

Flags: needinfo?(jib) → needinfo?(pzz)
OS: Unspecified → Linux
Hardware: Unspecified → Desktop

websites visited include gmail, google search, google calendar, google voice, youtube, et al

This also suggests a general problem, not one specific to WebRTC.

Component: WebRTC: Audio/Video → General
Product: Core → Firefox

i suspect the most significant aspect of this is firefox getting significantly invested into swap, upon unloading all the tabs all the swap is not released, but upon relaunching, it is. And of course how soon swap becomes involved is influenced by the available memory and the usage of memory. Things like maps.google.com satellite globe view, especially when rotating, panning, and zooming views extending to the horizon, are well implemented for good response time, and apparently use lots of memory and swap.

Flags: needinfo?(pzz)

Moving to the performance component. Does this happen in TroubleShoot mode (accessible from the Help menu), and/or a clean profile? If so, it would be helpful to get a profile using https://profiler.firefox.com/ as well...

Component: General → Performance
Product: Firefox → Core
Flags: needinfo?(pzz)

This bug was moved into the Performance component.

:pzz, could you make sure the following information is on this bug?

  • For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/, upload it and share the link here.
  • For memory usage issues, capture a memory dump from about:memory and attach it to this bug.
  • Troubleshooting information: Go to about:support, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.

If the requested information is already in the bug, please confirm it is recent.

Thank you.

Flags: needinfo?(pzz)

Hello! Thank you for submitting this issue I have tried to reproduce the issue on my end but unfortunately I wasn't able to with firefox 130.0a1(2024-07-10) on Ubuntu 22.04.
Could you please answer the following questions in order to further investigate this issue?

  1. Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
  2. Does this issue happen in the latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
  3. Do you have any addons installed? If yes could you please list them?
Performance Impact: --- → pending-needinfo
You need to log in before you can comment on or make changes to this bug.