Closed Bug 1569560 Opened 5 years ago Closed 5 years ago

Add tuning parameters for new malloc memory counter

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(2 files)

At the moment this uses the base parameter for the original malloc allocation counter and a fixed growth factor of 2. This bug will add individual parameters for these and set them to something the approximates the current behaviour.

We impose a minimum heap growth factor so that the new threshold must always be greater than the level at the end of a collection, otherwise we could get stuck endlessly collecting. The problem is that we can eagarly collect before we hit the threshold so this needs to be taken into account. At the moment we have two miminums though and we could simplifiy this to just a single one.

Depends on D39728

This adds two new parameters. The growth fator is set to 1.5 and the base to 42MB. Trail and error showed that this latter value ended up triggering GCs roughtly in line with the old malloc counter. These values make the initial malloc threshold ~64MB.

Depends on D39729

Attachment #9081340 - Attachment description: Bug 1569560 - Simplify minimum heap growth factor limit r=sfink? → Bug 1569560 - Simplify minimum heap growth factor limit r=sfink
Attachment #9081341 - Attachment description: Bug 1569560 - Add tuning parameters for new malloc counter r=sfink? → Bug 1569560 - Add tuning parameters for new malloc counter r=sfink
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b0221b3e7ea Simplify minimum heap growth factor limit r=sfink https://hg.mozilla.org/integration/autoland/rev/c27a6d5810fe Add tuning parameters for new malloc counter r=sfink
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Blocks: 1501238
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: