Add IPC glue code for self-hosted XDR content [Android]
Categories
(Core :: IPC, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: nbp, Assigned: mgaudet)
References
(Blocks 1 open bug)
Details
(Keywords: perf:startup, Whiteboard: [fission:android:m4][fxdroid])
Attachments
(3 external files)
Fork of the second part of Bug 1698045.
| Reporter | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
| Reporter | ||
Comment 2•5 years ago
|
||
Note to self, the self-hosted shared-memory is optional and can be toggle by a preference in about:config. Due to the not-yet-implemented-highly-needed-cleanup required by Android, we might have to pass a fake fd (-1) even when the content is not present, to satisfy the fact that Android matches fd to their purpose by looking up at specific indexes in the fd-array.
Comment 3•5 years ago
|
||
Ted Campbell says we should fix this bug for Android Fission because it will reduce memory usage, probably about 400 kB per process. See bug 1710987 comment 5 for the memory improvements seen on desktop.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Randell, I saw you updated the patch recently - did you push it to try and see if the failures / timeouts are still happening?
| Reporter | ||
Comment 5•3 years ago
|
||
I have no intent to push these changes forward, if anybody more knowledgeable about GeckoView development is willing to have a look, feel free to take over the patch.
This change is expected to bring a ~40ms improvement (Bug 1618391) to the start of the content process(-es), by using what the parent process already computed.
Comment 6•2 years ago
|
||
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: Android
Impact on browser: Causes noticeable startup delay
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 7•2 years ago
|
||
I have a copy of this patch locally, but it's low on my personal queue
Comment 8•2 years ago
|
||
Hey Dave, you mentioned that the performance calculator suggests the performance impact of this bug will be low. How does that calculator work? Has it proved to be reliable?
Comment 9•2 years ago
|
||
(In reply to [:owlish] 🦉 PST from comment #8)
Hey Dave, you mentioned that the performance calculator suggests the performance impact of this bug will be low. How does that calculator work? Has it proved to be reliable?
Hey. You can find details on the calculator at https://wiki.mozilla.org/Performance/Triage#Triage_calculator. Since this bug was triaged we have updated the calculator so that Android has the same weight as Windows. This upgrades the impact from low to medium.
The Performance Impact Calculator has determined this bug's performance impact to be medium. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.
Platforms: Android
Impact on browser: Causes noticeable startup delay
Updated•2 years ago
|
Comment 10•2 years ago
|
||
I should add that the performance triage and impact calculator are more suited to defects than tasks.
| Assignee | ||
Comment 11•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 12•1 year ago
|
||
I have manually verified that this works on geckoview-example on a local Pixel 8 via logging
This was inspired by D114126, but it appears that almost all the machinery in that patch
was obviated by Bug 1440207.
I am unable to measure via our performance testing framework a performance win here, however
using local timing on a Pixel 8 I seem to be seeing at least a 100ms improvement in content
process self-hosted initialization time, at a cost of 3ms of encode time.
Comment 13•1 year ago
|
||
Comment 14•1 year ago
|
||
Backed out for causing build bustages in SelfHosting.cpp.
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/js/src/vm/SelfHosting.cpp:2652:23: error: use of undeclared identifier 'Info'
Comment 16•1 year ago
|
||
Comment 17•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/14e8eb30d5b1
https://hg.mozilla.org/mozilla-central/rev/00c0f7f77f54
https://hg.mozilla.org/mozilla-central/rev/3780ceaa56c5
Description
•