Closed Bug 1744649 Opened 3 years ago Closed 3 years ago

Tab switching slow after suspend/resume

Categories

(Core :: Widget: Gtk, defect)

Firefox 96
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1743051

People

(Reporter: mar.kolya, Unassigned)

Details

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

Steps to reproduce:

  • Start firefox
  • open a few tabs, preferably 'heavy' web apps
  • Suspend/resume

Actual results:

Looks like sometimes tab switching becomes extremely slow - a few seconds to 10 seconds.
Also partial 'tiled' rendering of the tab contents is seen during the switch.

Expected results:

Suspend/resume should not affect performance.

Ubuntu
FF nightly
Latest nvidia binary drivers,
GM107GLM [Quadro M2000M]

This seems to be relatively new to nightly.

Nikolay, can you please capture a performance profile using the Cleopatra add-on? You can get more info on how to install and use the Cleopatra add-on (that helps you get the performance profile) by going to:

https://developer.mozilla.org/en-US/docs/Tools/Performance/How_to
https://perf-html.io/

Also, not sure I understand what you are referring to by suspending/resuming. Can you please be more specific?

Thanks!

Flags: needinfo?(mar.kolya)

Also, not sure I understand what you are referring to by suspending/resuming. Can you please be more specific?
Sorry, I meant suspend/resume of the laptop

Are there any specific profiler settings I should be using?

(In reply to Nikolay Martynov from comment #2)

Also, not sure I understand what you are referring to by suspending/resuming. Can you please be more specific?
Sorry, I meant suspend/resume of the laptop

Are there any specific profiler settings I should be using?

The profiler can be used only on Nightly (and from the Description you already do that), let the issue reproduce, start the profiler by clicking on the "Record a performance profile" button, capture, upload local profile and paste here the Permalink.

Sorry, it looks like it would take some time for me to setup a reproducer for this: it doesn't seem to happen every time on suspend/resume.

Also I would need to run a separate instance of the browser to avoid sharing PII in profile.

I'll get back to you.

Flags: needinfo?(mar.kolya)

This will sound ridiculous but it's true.

I've got browser into this state again: switching tabs is slow and when I do that page is redrawn in large rectangles slow enough to be visible.
However - once I enable profiler the problem is gone. When I disable profiler it comes back. I enable it - and it's gone, and so on. So I cannot really reproduce the problem while profiler is running :(

Anything else that I can do?

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Thanks for the report! Please open about:config, set gfx.webrender.allow-partial-present-buffer-age to false, gfx.webrender.max-partial-present-rects to 0 and restart Nightly. Does this help?

Thanks!

So far I cannot reproduce the problem - but I'll give it a few more days, sometimes is doesn't appear right away

Then it seems to be bug 1743051. Thanks!

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.