Raise default jemalloc muzzy threshold.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-02-19 03:53:33 +00:00
parent 0b9df31a41
commit a910dc2777
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ pub struct Args {
/// memory to the operating system using MADV_FREE without MADV_DONTNEED.
/// Setting to false increases performance by reducing pagefaults, but
/// resident memory usage appears high until there is memory pressure. The
/// default is true unless the system has four or more cores.
/// default is true unless the system has eight or more cores.
#[arg(
long,
hide(true),

View File

@@ -25,7 +25,7 @@ const WORKER_KEEPALIVE: u64 = 36;
const MAX_BLOCKING_THREADS: usize = 1024;
const SHUTDOWN_TIMEOUT: Duration = Duration::from_millis(10000);
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
const DISABLE_MUZZY_THRESHOLD: usize = 4;
const DISABLE_MUZZY_THRESHOLD: usize = 8;
static WORKER_AFFINITY: OnceLock<bool> = OnceLock::new();
static GC_ON_PARK: OnceLock<Option<bool>> = OnceLock::new();