From a910dc2777a1773dec7439c6bd5f63597cb02452 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 19 Feb 2026 03:53:33 +0000 Subject: [PATCH] Raise default jemalloc muzzy threshold. Signed-off-by: Jason Volk --- src/main/args.rs | 2 +- src/main/runtime.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/args.rs b/src/main/args.rs index 7808005c..7905b639 100644 --- a/src/main/args.rs +++ b/src/main/args.rs @@ -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), diff --git a/src/main/runtime.rs b/src/main/runtime.rs index 294e53af..1d2c8111 100644 --- a/src/main/runtime.rs +++ b/src/main/runtime.rs @@ -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 = OnceLock::new(); static GC_ON_PARK: OnceLock> = OnceLock::new();