Skip to content

Commit

Permalink
fix: jemalloc profiling (#10314)
Browse files Browse the repository at this point in the history
Co-authored-by: xxchan <xxchan22f@gmail.com>
  • Loading branch information
fuyufjh and xxchan authored Jun 13, 2023
1 parent 07f6b52 commit e02ef6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/risedevtool/src/task/compactor_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Task for CompactorService {
if crate::util::is_env_set("RISEDEV_ENABLE_HEAP_PROFILE") {
// See https://linux.die.net/man/3/jemalloc for the descriptions of profiling options
cmd.env(
"_RJEM_MALLOC_CONF",
"MALLOC_CONF",
"prof:true,lg_prof_interval:38,lg_prof_sample:19,prof_prefix:compactor",
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/risedevtool/src/task/compute_node_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Task for ComputeNodeService {
if crate::util::is_env_set("RISEDEV_ENABLE_HEAP_PROFILE") {
// See https://linux.die.net/man/3/jemalloc for the descriptions of profiling options
cmd.env(
"_RJEM_MALLOC_CONF",
"MALLOC_CONF",
"prof:true,lg_prof_interval:40,lg_prof_sample:19,prof_prefix:compute-node",
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/risedevtool/src/task/meta_node_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl Task for MetaNodeService {
if crate::util::is_env_set("RISEDEV_ENABLE_HEAP_PROFILE") {
// See https://linux.die.net/man/3/jemalloc for the descriptions of profiling options
cmd.env(
"_RJEM_MALLOC_CONF",
"MALLOC_CONF",
"prof:true,lg_prof_interval:32,lg_prof_sample:19,prof_prefix:meta-node",
);
}
Expand Down

0 comments on commit e02ef6c

Please sign in to comment.