From 87ee693e1a8b7d7850e7edf9ff306c7c659af1ae Mon Sep 17 00:00:00 2001 From: Igor Ohrimenko Date: Fri, 24 Jul 2026 16:16:48 +0300 Subject: [PATCH] docs(general): document jemalloc_background_thread option Adds a Memory section to the general config reference describing the jemalloc_background_thread option (pgdogdev/pgdog#1260). --- docs/configuration/pgdog.toml/general.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/configuration/pgdog.toml/general.md b/docs/configuration/pgdog.toml/general.md index 84fe3515..d29bcf28 100644 --- a/docs/configuration/pgdog.toml/general.md +++ b/docs/configuration/pgdog.toml/general.md @@ -632,6 +632,16 @@ Available options: Default: **`abort`** +## Memory + +### `jemalloc_background_thread` + +Enable jemalloc's background purge threads so freed memory is returned to the OS after bursts of large allocations, instead of accumulating as retained dirty pages. Equivalent to setting the `_RJEM_MALLOC_CONF=background_thread:true` environment variable, without requiring it. + +Has no effect on builds where jemalloc is not the active allocator (e.g. `msvc`). + +Default: **`false`** (disabled) + ## Logging ### `log_format`