We can blow our slice budgets due to arena finalization taking too long
Categories
(Core :: JavaScript: GC, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox92 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: jonco)
References
()
Details
(Keywords: perf)
Attachments
(2 files)
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
| Reporter | ||
Updated•9 years ago
|
| Reporter | ||
Comment 3•9 years ago
|
||
| Reporter | ||
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
| Reporter | ||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
| Reporter | ||
Comment 9•9 years ago
|
||
| Reporter | ||
Updated•9 years ago
|
| Assignee | ||
Comment 10•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
| Assignee | ||
Comment 11•8 years ago
|
||
Comment 12•5 years ago
|
||
I'm not planning on working on this anytime soon. I don't know if it's still an issue, either. jonco's recent changes to stall the mutator might be relevant here.
| Assignee | ||
Comment 13•5 years ago
•
|
||
(In reply to Steve Fink [:sfink] [:s:] from comment #12)
I took a profile of this: https://share.firefox.dev/3ynRtfp
It's doing very frequent GC (every ~35ms), although the GCs themselves aren't that bad (max pause ~6.5ms) and the proportion of GC time is around 15%.
| Assignee | ||
Comment 14•5 years ago
|
||
We can improve this by changing the way we calculate our malloc triggers. For the GC bytes threshold we increase the heap growth factor when in 'high frequency GC mode' but this doesn't currently happen for malloc threshold.
Extending this to cover malloc triggers reduces the frequency of GC (at the cost of increasing the threshold, but only to ~115MB). With this change we now see only 4% of time spent in GC:
https://share.firefox.dev/3fmSKM8
This doesn't help the benchmark result much but is still a useful change.
| Assignee | ||
Comment 15•5 years ago
|
||
Updated•5 years ago
|
| Assignee | ||
Comment 16•5 years ago
|
||
Depends on D121625
Comment 17•5 years ago
|
||
Comment 18•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/68165a3d99c8
https://hg.mozilla.org/mozilla-central/rev/82ee3e97047f
Updated•4 years ago
|
Description
•