Skip to content

[9.18] Make it possible to create memory contexts backed by jemalloc arenas

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

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.

(cherry picked from commit 8550c525)

Closes #4038 (closed)

Backport of !8270 (merged)

Edited by Ondřej Surý

Merge request reports