Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add freelist allocator to allow recycling of chunks with ChunkedBumpAlloc #38

Open
michaelsippel opened this issue Dec 6, 2023 · 0 comments

Comments

@michaelsippel
Copy link
Member

With the the current memory alloctor , ChunkedBumpAlloc will deallocate a chunk , once all its allocations contained in this chunk are deallocated. In practice this means deallocated hwloc_free.
Whenever new memory is requested , another hwloc_alloc_membind is executed.

A potential FreelistAllocator , plugged in between HwlocAlloc & ChunkedBumpAlloc , should keep track of a (limited) number of free chunks and return them to ChunkedBumpAlloc whenever possible.

@michaelsippel michaelsippel changed the title add freelist allocator to allow recyling of chunks with ChunkedBumpAlloc add freelist allocator to allow recycling of chunks with ChunkedBumpAlloc Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant