Prototype making the main thread part of the rayon thread pool.
Categories
(Core :: CSS Parsing and Computation, task)
Tracking
()
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 5 obsolete files)
Assignee | ||
Comment 1•6 months ago
|
||
Depends on D179492
Assignee | ||
Comment 2•6 months ago
|
||
Depends on D180074
Assignee | ||
Comment 3•6 months ago
|
||
Depends on D180075
Assignee | ||
Comment 4•6 months ago
|
||
Depends on D179492
Assignee | ||
Comment 5•6 months ago
|
||
Depends on D180077
Assignee | ||
Comment 6•6 months ago
|
||
Depends on D180078
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Assignee | ||
Comment 7•6 months ago
|
||
Assignee | ||
Comment 8•6 months ago
|
||
Depends on D180079
Assignee | ||
Comment 9•6 months ago
|
||
Assignee | ||
Comment 10•6 months ago
|
||
Assignee | ||
Comment 11•6 months ago
•
|
||
Some tweak: https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=32b4e24392da47877d9342f90ddd6536bd36015d&newProject=try&newRevision=15e96e0b09c50cd7d3b02a7e26569c60729201cd / https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=778a2e690e6915ad1debf6a1face1b2326887bfc&newProject=try&newRevision=66f0a53bcfb5ec1e847d830b431cebc226f04367
Comment 12•6 months ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a157866c741c Update rayon-core. r=glandium,supply-chain-reviewers
Assignee | ||
Updated•6 months ago
|
Comment 13•6 months ago
|
||
bugherder |
Assignee | ||
Comment 14•6 months ago
|
||
Jeff, if it's not too much work, could you get a visualization like the one you posted in https://github.com/rayon-rs/rayon/issues/1052 but with the patches? (I haven't used the android GPU profiler thing). If you can't let me know and I can give it a shot.
Comment 16•6 months ago
|
||
This is with the patches applied.
The little cores are completely swamped with other work. During this time the style threads spend a lot of time waiting to be scheduled and it seems the main thread runs out of work to do. It then goes idle and gets clocked down while waiting for the style thread 4 to get scheduled.
Comment 17•6 months ago
|
||
Here's a version with layout.css.stylo-local-work-queue.in-main-thread=128
and layout.css.stylo-threads=4
. With it we still do some sleeping on the main thread but we do also manage to do quite a bit of style work in parallel. We don't seem to sleep long enough for the big core to clock down.
Assignee | ||
Comment 18•6 months ago
|
||
https://treeherder.mozilla.org/jobs?repo=try&revision=ac0ee57e8b0af2b3602776347fbe3b3659afb30f / https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=4546bf49916667685fc48bb3cbadfff9c1490de8&newProject=try&newRevision=ac0ee57e8b0af2b3602776347fbe3b3659afb30f with a fix for a bug that prevented the main thread from being prioritized once it ran out of work.
Assignee | ||
Comment 19•4 months ago
|
||
This applies https://github.com/rayon-rs/rayon/pull/1063 to our
rayon-core. I'm hopeful it can be merged upstream soon, but meanwhile
this seems worth having on its ow.
Updated•4 months ago
|
Updated•4 months ago
|
Comment 20•4 months ago
•
|
||
Expect this to not make much impact on try: https://treeherder.mozilla.org/perfherder/comparesubtest?originalProject=try&newProject=try&newRevision=0b618823de9df0809f79cb5494f35eb32f471359&originalSignature=4590278&newSignature=4590278&framework=13&application=geckoview&originalRevision=deb4381b061d0263072a19644bb45fc1a765352b&page=1
However, if we disable bug 1812589 it makes a much clearer difference: https://treeherder.mozilla.org/perfherder/comparesubtest?originalProject=try&newProject=try&newRevision=da146544e88323dad8487233830af61ad8c6d324&originalSignature=4590278&newSignature=4590278&framework=13&application=geckoview&originalRevision=ecb27497d42d2d28b95cc7f4bc8ae94bab10d59b&page=1
(The overall score is still low-confidence, but there are many high confidence subtest improvements).
Paired with the affinity changes I'm working on we can get an even better improvement, and I'm also experimenting with the number of threads. But we should land this first in any case.
Comment 21•3 months ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b98bce55d272 Patch rayon-core with proposed use_current_thread API. r=smaug,jnicol,supply-chain-reviewers https://hg.mozilla.org/integration/autoland/rev/d7f697ba002a Use the main thread as part of the style thread pool. r=smaug
Comment 22•3 months ago
|
||
bugherder |
Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
Description
•