Open Bug 2093249 Opened 2 days ago Updated 5 hours ago

Enforce the spare chunk limit asynchronously,

Categories

(Core :: Memory Allocator, enhancement, P1)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: pbone, Assigned: pbone)

References

(Blocks 3 open bugs)

Details

Attachments

(6 external files)

Bug 2070617 introduced a limit (1) to the number of spare chunks per arena before releasing them. However it is enforces sychronously which can affect performance. Enforce it asynchronously as part of purge time. Rather than remove the sychronously limit, make it higher so that it provides safety if idle time scheduling is not favorable:

  • Add arenas to the pending purge list if they have more spare chunks than the limit.
  • Apply the refactoring patches that move Purge’s code into PurgeLoop.
  • Don’t make the limits dynamic (yet).
  • Always apply the limit regardless of recent dirty page reuse (see next item)
Blocks: 2093340
Blocks: 2094091

Note that Jens' version of this patch is better.

Jens' version folds this into part 1. It doesn't matter which version
we use.

Assignee: nobody → pbone
Status: NEW → ASSIGNED

Add a counter for the number of spare chunks in the spare chunk list.

Attachment #9685471 - Attachment description: Bug 2093249 - p4. Raise the sychronous chunk limit to 4 r=glandium → Bug 2093249 - p5. Raise the sychronous chunk limit to 4 r=glandium
Attachment #9685472 - Attachment description: Bug 2093249 - p5. Apply the chunk limit asynchronously r=glandium → Bug 2093249 - p6. Apply the chunk limit asynchronously r=glandium
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: