Closed Bug 1980048 Opened 11 months ago Closed 8 months ago

Remove the tiny size class

Categories

(Core :: Memory Allocator, task, P1)

task

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: pbone, Assigned: pbone)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

To implement Bug 1980047 we must ensure there are no more than 256 regions in a run. We must remove the tiny size class because it is too small and will exceed 256 regions per run for 4096-byte runs.

Removing the tiny size class will slightly regress explicit memory, but resident memory is unaffected. This is good. it shows that we're trading external fragmentation (more unallocated slots in 8 and 16 byte size classes) for internal fragmentation (8 byte allocations being rounded up to 16). The explicit memory measurement will increase because it counts internal fragmentation, but I'm happy that resident memory usage is unaffected.

https://perf.compare/compare-results?baseRev=04d817974fc947759dd0f9894eccf421bb67ee02&baseRepo=try&newRev=874bfec2723fac4323c4da78573702b9ab365747&newRepo=try&framework=4

Attachment #9503949 - Attachment description: WIP: Bug 1980048 - Remove the tiny size class from mozjemalloc → Bug 1980048 - Remove the tiny size class from mozjemalloc r=glandium
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
QA Whiteboard: [qa-triage-done-c147/b146]
Blocks: 2004528
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: