Skip to content

Make it possible to create memory contexts backed by jemalloc arenas

Ondřej Surý requested to merge 4038-specialised-arena-per-worker into main

This commit extends the internal memory management middleware code in BIND so that memory contexts backed by dedicated jemalloc arenas can be created. A new function (isc_mem_create_arena()) is added for that.

Moreover, it extends the existing code so that specialised memory contexts can be created easily, should we need that functionality for other future purposes. We have achieved that by passing the flags to the underlying jemalloc-related calls. See the above isc_mem_create_arena(), which can serve as an example of this.

Having this opens up possibilities for creating memory contexts tuned for specific needs.

Closes #4038 (closed)

Merge request reports