From bf8ae48ec28c1c8748fd2e08e5ca087dbb0de2e7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 2 Mar 2026 03:52:34 +0000 Subject: [PATCH] Tweak default malloc conf. Signed-off-by: Jason Volk --- src/core/alloc/je.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/alloc/je.rs b/src/core/alloc/je.rs index ff7eb1b1..78e68110 100644 --- a/src/core/alloc/je.rs +++ b/src/core/alloc/je.rs @@ -26,15 +26,16 @@ use crate::{ #[cfg(feature = "jemalloc_conf")] #[unsafe(no_mangle)] pub static malloc_conf: &[u8] = const_str::concat_bytes!( - "lg_extent_max_active_fit:4", - ",oversize_threshold:16777216", - ",tcache_max:2097152", - ",dirty_decay_ms:16000", - ",muzzy_decay_ms:144000", + "tcache:true", ",percpu_arena:percpu", ",metadata_thp:always", ",background_thread:true", ",max_background_threads:-1", + ",lg_extent_max_active_fit:4", + ",oversize_threshold:2097152", + ",tcache_max:524288", + ",dirty_decay_ms:16000", + ",muzzy_decay_ms:144000", //MALLOC_CONF_PROF, 0 );