Closed Bug 1881303 Opened 2 years ago Closed 2 years ago

Expose GC scheduling tunables for eager nursery collection as prefs

Categories

(Core :: JavaScript: GC, task, P3)

task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(2 external files)

To allow performance experiments aimed at improving our sp3 score, we should expose all relevant GC scheduling tunables.

In particular we should do this for those affecting nursery size and collection scheduling.

Assignee: nobody → jcoppeard
Summary: Expose more GC scheduling tunables as prefs → Expose GC scheduling tunables for eager nursery collection as prefs

This renames the GC parameters (and some methods) in terms of eager nursery
collection, since the JS engine doesn't have any concept of idle time itself.
The bytes threshold parameter is changed to be specified in KB to make it
easier to deal with.

This also tidies up the implementation and adds comments to hopefully clarify
how this works.

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03dd205ae80b Part 1: Rename nursery eager collection GC parameters r=sfink https://hg.mozilla.org/integration/autoland/rev/cbfdd18b0c88 Part 2: Expose eager nursery collection tunables as prefs r=sfink

The new prefs are:

  • javascript.options.mem.nursery_eager_collection_threshold_kb
  • javascript.options.mem.nursery_eager_collection_threshold_percent
  • javascript.options.mem.nursery_eager_collection_timeout_ms
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: