ComputationalRadiationPhysics / redGrapes

Resource-based, Declarative task-Graphs for Parallel, Event-driven Scheduling :grapes:
https://redgrapes.rtfd.io
Mozilla Public License 2.0
20 stars 5 forks source link

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

Open michaelsippel opened 10 months ago

michaelsippel commented 10 months ago

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.