Closed Bug 1531024 Opened 6 years ago Closed 6 years ago

High CPU Usage when switching tabs

Categories

(Core :: Performance, defect)

65 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE
Performance Impact low

People

(Reporter: michaelaquilina, Unassigned)

Details

(Keywords: perf:resource-use)

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

Steps to reproduce:

Switch between tabs on firefox and notice that most of the times, CPU usage spikes to 100%, preventing firefox from being usable and then goes back to normal a few seconds later.

Actual results:

Tab would show the spinner icon in the middle of the page if it's a new tab or would freeze the page so that it's unresponsive if its already been loaded up.

Expected results:

When I run the gecko profiler I get the following result:

https://profiler.firefox.com/public/6c583a1f195dcf21e2d7e12dd525b0da3a8e5e25/calltree/?globalTrackOrder=0-1-2-3-4-5&hiddenGlobalTracks=1-2-4-5&thread=4&v=3

In particular it looks like the culprit is poll

This happens on both my work machine and personal machine. Also installing Firefox nightly seemed to show the same issue. For this reason I don't think the issue is isolated to a bad configuration.

Version: 67 Branch → 65 Branch

Hi Mike, can you take a look at this?

Flags: needinfo?(mconley)
Whiteboard: [qf]

Are you referring to me Vicky? I am not sure what I need to take a look at in that case

Hi michaelaquilina,

Can you stop the profiler, restart the profiler, reproduce the issue, and then dump the profile? Unfortunately, the most interesting parts of this profile (the content process frames) appear to have cycled out of the circular buffer.

Flags: needinfo?(mconley) → needinfo?(michaelaquilina)
Whiteboard: [qf] → [qf:p3:resource]

Embarrassingly, I can't seem to reproduce this issue anymore - after almost 3 weeks of dealing with it. I'll keep an eye out for it's behaviour and post another profiler result once I've got it.

Flags: needinfo?(michaelaquilina)

Alright, thank you michaelaquilina. Please re-open if you notice it again.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Performance Impact: --- → P3
Whiteboard: [qf:p3:resource]
You need to log in before you can comment on or make changes to this bug.