Open Bug 1565019 Opened 5 years ago Updated 4 months ago

High CPU usage in parent process main thread when loading tripadvisor.ca, for over 700ms

Categories

(Core :: Networking, defect, P2)

All
macOS
defect

Tracking

()

Performance Impact low
Tracking Status
firefox70 --- affected

People

(Reporter: mstange, Assigned: acreskey)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Here's a profile of loading tripadvisor.ca on my machine: https://perfht.ml/2JvpP9n

A lot of work seems to be happening in the parent process main thread, most of it triggered by initiating network requests. It would be good to reduce the amount of work and/or move it to other threads.

(I'm not expecting any immediate remedies; I'm filing this bug mostly to have an example that I can point others at, and so that we have a profile that we can compare ourselves to, in the future as this improves.)

Priority: -- → P2
Whiteboard: [necko-triaged]

Bugbug thinks this bug is a enhancement, but please change it back in case of error.

Type: defect → enhancement
Type: enhancement → defect
Severity: normal → S3

The Performance Impact Calculator has determined this bug's performance impact to be high. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: [x] Windows [x] macOS [x] Linux
Impact on site: Causes noticeable jank
Page load impact: Some
[x] Able to reproduce locally
[x] Bug affects multiple sites

Performance Impact: --- → high
Depends on: omt-networking

The severity field for this bug is set to S3. However, the Performance Impact field flags this bug as having a high impact on the performance.
:valentin, could you consider increasing the severity of this performance-impacting bug? Alternatively, if you think the performance impact is lower than previously assessed, could you request a re-triage from the performance team by setting the Performance Impact flag to ??

For more information, please visit auto_nag documentation.

Flags: needinfo?(valentin.gosu)

Not sure if the profile in comment 0 is still applicable?
It seems a lot of time is spent in "http-on-before-connect" observers - matching WebExtension requests.
I think this can stay S3 for now.

Flags: needinfo?(valentin.gosu)
Assignee: nobody → acreskey

Will re-evaluate impact.

Performance Impact: high → ?

The Performance Impact Calculator has determined this bug's performance impact to be low. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: [x] Windows [x] macOS [x] Linux
Page load impact: Some
Websites affected: Rare

Performance Impact: ? → low

Still seeing significant amount of cpu time dedicated to network activity in the parent process, especially URL classifier
https://share.firefox.dev/3QHGsk7

See also Url classifier delay in bug 1813805.

See Also: → 1813805
You need to log in before you can comment on or make changes to this bug.