From ba70bdb303692704c3335c934a645eb24918b5ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Piotr=20Da=C5=82ek?= Date: Thu, 25 Feb 2016 15:12:52 +0100 Subject: [PATCH] config: increase default async op threads MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Default value of two async threads is enough for light workloads, but is insufficient for heavy ones, reducing maximum throughput on slower CPUs that have plenty of logical cores. Three async threads give noticeable perf jump without any noticeable downsides. Signed-off-by: Piotr Dałek --- src/common/config_opts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 3190d19eaf7f..6bd67bf05621 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -195,7 +195,7 @@ OPTION(ms_inject_delay_probability, OPT_DOUBLE, 0) // range [0, 1] OPTION(ms_inject_internal_delays, OPT_DOUBLE, 0) // seconds OPTION(ms_dump_on_send, OPT_BOOL, false) // hexdump msg to log on send OPTION(ms_dump_corrupt_message_level, OPT_INT, 1) // debug level to hexdump undecodeable messages at -OPTION(ms_async_op_threads, OPT_INT, 2) +OPTION(ms_async_op_threads, OPT_INT, 3) OPTION(ms_async_set_affinity, OPT_BOOL, true) // example: ms_async_affinity_cores = 0,1 // The number of coreset is expected to equal to ms_async_op_threads, otherwise -- 2.47.3