Skip to content

Commit 9af2cb9

Browse files
committed
tune memory profiler and thread local cache
1 parent cfda22d commit 9af2cb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pulsebeam-runtime/src/net.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::{
22
io::{self, ErrorKind, IoSliceMut},
3-
mem::MaybeUninit,
43
net::SocketAddr,
54
};
65

pulsebeam/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ use tokio_util::sync::CancellationToken;
55
#[global_allocator]
66
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
77

8+
// sampling every 32MB allocations
89
#[allow(non_upper_case_globals)]
910
#[unsafe(export_name = "malloc_conf")]
10-
pub static malloc_conf: &[u8] = b"prof:true,prof_active:true,lg_prof_sample:19\0";
11+
pub static malloc_conf: &[u8] = b"background_thread:true,metadata_thp:auto,dirty_decay_ms:30000,muzzy_decay_ms:30000,lg_tcache_max:21,prof:true,prof_active:true,lg_prof_sample:25\0";
1112

1213
use std::{
1314
net::{IpAddr, SocketAddr},

0 commit comments

Comments
 (0)