Skip to content

WIP Experiment with different kind of allocator for backend.#824

Draft
mjp41 wants to merge 4 commits intomainfrom
generalisedbackend
Draft

WIP Experiment with different kind of allocator for backend.#824
mjp41 wants to merge 4 commits intomainfrom
generalisedbackend

Conversation

@mjp41
Copy link
Member

@mjp41 mjp41 commented Mar 4, 2026

The buddy allocator for large objects and chunks leads to good fragmentation behaviour, but can result in a lot of internal fragmentation as the blocks it returns can be twice the size requested. This PR makes the blocks have more sizeclasses using a DougLea/TLSF like consolidation strategy, but with some modification to handle the alignment requires for snmalloc.

Add a backend range that delays returning memory to the next level.  This reduces the pressure on the backend global allocator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant