~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
11 lines · 766 B Raw History
# jemalloc, the `pds` binary's allocator (crates/pds/src/main.rs), is built to
# give memory back to the system as soon as it is freed: freed pages are kept
# for no time at all. The server's resident memory is what spec/STORE.md's
# bounds count, and a default build keeps what a large write freed for ten
# seconds. It is built with 8 arenas, not the default four for each core:
# each arena keeps slabs of its own for every size of allocation, part full,
# and a thread's allocations go to its arena, so what is resident and not in
# use grows with the arenas, by megabytes each, whatever the server holds.
# `_RJEM_MALLOC_CONF` in the server's environment still overrides both.
[env]
JEMALLOC_SYS_WITH_MALLOC_CONF = "dirty_decay_ms:0,muzzy_decay_ms:0,narenas:8"