Closed Bug 1814798 Opened 2 years ago Closed 1 year ago

Allow PHC to be enabled by a pref

Categories

(Core :: Memory Allocator, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: pbone, Assigned: pbone)

References

(Blocks 1 open bug)

Details

(Keywords: perf-alert)

Attachments

(2 files, 1 obsolete file)

We'd like to enable PHC via a pref so that it can eventually be configured via Normandy and/or run on the Release channel. That also means being able to enable PHC late - after prefs have been read.

We could also let the parent process read the prefs and set environment variables for the child processes so they could enable it earlier.

Add the ability to enable and disable PHC at runtime through the malloc
bridge.

Depends on D178752

Add a new pref for controlling PHC. The pref can be changed at runtime and
will affect the parent and content processes.

Depends on D178754

Attachment #9335375 - Attachment description: WIP: Bug 1814798 - pt 1. Add bool to enable/disable PHC at runtime → Bug 1814798 - pt 1. Add bool to enable/disable PHC at runtime r=glandium
Attachment #9335376 - Attachment description: WIP: Bug 1814798 - pt 2. Add a PHCManager component to control PHC → Bug 1814798 - pt 2. Add a PHCManager component to control PHC r=glandium
Attachment #9335377 - Attachment description: WIP: Bug 1814798 - pt 3. Add new phc pref → Bug 1814798 - pt 3. Add new phc pref r=glandium
Attachment #9335377 - Attachment is obsolete: true
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bf7d386ad43a pt 1. Add bool to enable/disable PHC at runtime r=glandium https://hg.mozilla.org/integration/autoland/rev/50b72ab948b2 pt 2. Add a PHCManager component to control PHC r=glandium,emilio

Backed out for multiple phc related failures.



Flags: needinfo?(pbone)
Flags: needinfo?(pbone)
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3064abbb72eb pt 1. Add bool to enable/disable PHC at runtime r=glandium https://hg.mozilla.org/integration/autoland/rev/4045e1720c33 pt 2. Add a PHCManager component to control PHC r=glandium,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

(In reply to Pulsebot from comment #6)

Pushed by pbone@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3064abbb72eb
pt 1. Add bool to enable/disable PHC at runtime r=glandium
https://hg.mozilla.org/integration/autoland/rev/4045e1720c33
pt 2. Add a PHCManager component to control PHC r=glandium,emilio

== Change summary for alert #39633 (as of Thu, 21 Sep 2023 11:49:59 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new) Performance Profiles
3% wikipedia loadtime macosx1015-64-shippable-qr bytecode-cached fission warm webrender 369.71 -> 358.95 Before/After
3% wikipedia loadtime macosx1015-64-shippable-qr bytecode-cached fission warm webrender 370.13 -> 359.85 Before/After
2% wikipedia fcp macosx1015-64-shippable-qr cold fission webrender 556.38 -> 543.03 Before/After

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=39633

These patches turned off PHC on Nightly and improved performance. Was this intentional?

Flags: needinfo?(pbone)
Regressions: 1856268

(In reply to Markus Stange [:mstange] from comment #9)

These patches turned off PHC on Nightly and improved performance. Was this intentional?

Thanks. I've filed Bug 1856268

Flags: needinfo?(pbone)
Regressions: 1866025
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: