Closed Bug 1925181 Opened 2 years ago Closed 2 years ago

Content processes on Android should disable small malloc randomization

Categories

(Core :: DOM: Content Processes, defect)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

(Blocks 1 open bug)

Details

(Keywords: perf-alert, Whiteboard: [sp3])

Attachments

(1 file, 1 external file)

From backout https://bugzilla.mozilla.org/show_bug.cgi?id=1917844#c4

Investigating shows that even just this assertion breaks when applied without the whole forkserver stack, so we have an issue on Android, content processes do not apply malloc options

Summary: Content processes on Android should respect MALLOC_OPTIONS env → Content processes on Android should disable small malloc randomization
Attached patch patch — — Splinter Review

This seems to be enough, mike, does that sounds about right? it looks like we cannot rely on XRE_* from there

Assignee: nobody → lissyx+mozillians
Flags: needinfo?(mh+mozilla)
Flags: needinfo?(mh+mozilla)
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fbe9fbb6ae72 Properly set small alloc randomization on Android content processes as well r=jld
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f923d8af41b9 Properly set small alloc randomization on Android content processes as well r=jld
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch

Seems to improve SP3 a bit (even though the numbers are noisy)

0.3% overall

Some improvements on sub-benchamrks:
4.6% on TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/CompletingAllItems/Sync

2.4% on React-Stockcharts-SVG/PanTheChart/total

In general, SVG and Complex-DOM benchamarks on SP3 got good improvements with this patch.

(In reply to Mayank Bansal from comment #7)

Seems to improve SP3 a bit (even though the numbers are noisy)

0.3% overall

Some improvements on sub-benchamrks:
4.6% on TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/CompletingAllItems/Sync

2.4% on React-Stockcharts-SVG/PanTheChart/total

In general, SVG and Complex-DOM benchamarks on SP3 got good improvements with this patch.

I was expecting a bit more :(

(In reply to :gerard-majax from comment #8)

I was expecting a bit more :(

Dont quote me on this yet, but looks like the perf system recorded larger improvements

(In reply to Pulsebot from comment #5)

Pushed by alissy@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f923d8af41b9
Properly set small alloc randomization on Android content processes as well
r=jld

Perfherder has detected a browsertime performance change from push f923d8af41b965383bc809665f5efd0d702fdfed.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
8% speedometer3 TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/DeletingAllItems/Sync android-hw-a55-14-0-aarch64-shippable webrender 50.11 -> 46.21
8% speedometer3 TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/CompletingAllItems/Sync android-hw-a55-14-0-android-aarch64-shippable-qr webrender 55.79 -> 51.48
8% speedometer3 TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/DeletingAllItems/Sync android-hw-a55-14-0-aarch64-shippable webrender 50.12 -> 46.29
7% speedometer3 TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/CompletingAllItems/Sync android-hw-a55-14-0-android-aarch64-shippable-qr webrender 56.17 -> 52.10
7% speedometer3 TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/DeletingAllItems/Sync android-hw-a55-14-0-android-aarch64-shippable-qr webrender 49.77 -> 46.21
... ... ... ... ...
2% speedometer3 React-Stockcharts-SVG/PanTheChart/total android-hw-a55-14-0-android-aarch64-shippable-qr webrender 50.24 -> 49.21

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 2617

For more information on performance sheriffing please see our FAQ.

(In reply to Pulsebot from comment #3)

Pushed by alissy@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fbe9fbb6ae72
Properly set small alloc randomization on Android content processes as well
r=jld

Perfherder has detected a browsertime performance change from push ce21382483196b42fb41d78e79a565a5082dec3e.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
10% speedometer3 TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/total android-hw-a55-14-0-android-aarch64-shippable-qr webrender 212.47 -> 191.68
8% speedometer3 TodoMVC-JavaScript-ES6-Webpack-Complex-DOM/DeletingAllItems/total android-hw-a55-14-0-aarch64-shippable webrender 55.87 -> 51.48
6% speedometer3 TodoMVC-Svelte-Complex-DOM/total android-hw-a55-14-0-aarch64-shippable webrender 45.86 -> 43.08
6% speedometer3 TodoMVC-Preact-Complex-DOM/CompletingAllItems/Sync android-hw-a55-14-0-android-aarch64-shippable-qr webrender 3.99 -> 3.76
6% speedometer3 TodoMVC-Svelte-Complex-DOM/CompletingAllItems/total android-hw-a55-14-0-aarch64-shippable webrender 11.90 -> 11.21
... ... ... ... ...
2% speedometer3 React-Stockcharts-SVG/PanTheChart/total android-hw-a55-14-0-aarch64-shippable webrender 50.16 -> 49.16

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 2685

For more information on performance sheriffing please see our FAQ.

(In reply to Atila Butkovits from comment #4)

Backed out for causing failures at Sandbox.cpp.

Backout link: https://hg.mozilla.org/integration/autoland/rev/29f4b90ad4d88cea4bf520db602bc2726d921690

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=ce21382483196b42fb41d78e79a565a5082dec3e&selectedTaskRun=I2LmWl9wScSrDC0JIqU_xQ.0

Failure log: https://treeherder.mozilla.org/logviewer?job_id=479026804&repo=autoland&lineNumber=8269

Perfherder has detected a browsertime performance change from push 29f4b90ad4d88cea4bf520db602bc2726d921690.

Regressions:

Ratio Test Platform Options Absolute values (old vs new)
6% speedometer3 TodoMVC-Lit-Complex-DOM/DeletingAllItems/Sync android-hw-a55-14-0-aarch64-shippable webrender 4.60 -> 4.88
6% speedometer3 TodoMVC-Preact-Complex-DOM/DeletingAllItems/Async android-hw-a55-14-0-aarch64-shippable webrender 6.65 -> 7.03
5% speedometer3 TodoMVC-Preact-Complex-DOM/DeletingAllItems/total android-hw-a55-14-0-aarch64-shippable webrender 8.79 -> 9.26
4% speedometer3 TodoMVC-Lit-Complex-DOM/CompletingAllItems/Sync android-hw-a55-14-0-aarch64-shippable webrender 5.72 -> 5.97
4% speedometer3 TodoMVC-Preact-Complex-DOM/Adding100Items/Sync android-hw-a55-14-0-aarch64-shippable webrender 4.30 -> 4.46
4% speedometer3 TodoMVC-Svelte-Complex-DOM/Adding100Items/Sync android-hw-a55-14-0-aarch64-shippable webrender 7.28 -> 7.55
4% speedometer jQuery-TodoMVC/Adding100Items/Sync android-hw-a55-14-0-android-aarch64-shippable-qr webrender 110.44 -> 114.32
3% speedometer3 TodoMVC-Svelte-Complex-DOM/total android-hw-a55-14-0-aarch64-shippable webrender 43.13 -> 44.62
3% speedometer3 TodoMVC-jQuery/Adding100Items/total android-hw-a55-14-0-aarch64-shippable webrender 128.67 -> 132.94
3% speedometer3 TodoMVC-jQuery/Adding100Items/Sync android-hw-a55-14-0-aarch64-shippable webrender 123.14 -> 127.18
3% speedometer3 React-Stockcharts-SVG/PanTheChart/Async android-hw-a55-14-0-aarch64-shippable webrender 30.15 -> 30.98
2% speedometer3 TodoMVC-WebComponents/DeletingAllItems/Sync android-hw-a55-14-0-aarch64-shippable webrender 17.47 -> 17.83
2% speedometer3 android-hw-a55-14-0-aarch64-shippable webrender 6.63 -> 6.49
2% speedometer3 score android-hw-a55-14-0-aarch64-shippable webrender 6.63 -> 6.49

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
4% speedometer3 TodoMVC-JavaScript-ES5/Adding100Items/Sync android-hw-a55-14-0-aarch64-shippable webrender 80.87 -> 77.81

As author of one of the patches included in that push, we need your help to address this regression.
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests. Please follow our guide to handling regression bugs.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 2738

For more information on performance sheriffing please see our FAQ.

Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: