From f84471edc37dbf8ff86a36d71c988ee4d8e6c5f9 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Tue, 7 Mar 2017 15:08:29 -0800 Subject: [PATCH] Add documentation for percpu_arena in jemalloc.xml.in. --- doc/jemalloc.xml.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in index 36ec140b..937879a8 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -926,6 +926,24 @@ mallctl("arena." STRINGIFY(MALLCTL_ARENAS_ALL) ".decay", number of CPUs, or one if there is a single CPU. + + + opt.percpu_arena + (const char *) + r- + + Per CPU arena mode. Use the percpu + setting to enable this feature, which uses number of CPUs to determine + number of arenas, and bind threads to arenas dynamically based on the + CPU the thread runs on currently. phycpu setting uses + one arena per physical CPU, which means the two hyper threads on the + same CPU share one arena. Note that no runtime checking regarding the + availability of hyper threading is done at the moment. When set to + disabled, narenas and thread to arena association will + not be impacted by this option. The default is + percpu. + + opt.decay_time