From 62ac23bfdcc45ea46b149418e2299b83f1207216 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Wed, 23 Jan 2019 11:13:21 -0500 Subject: [PATCH] common/options: remove unused ms async affinity options These were never implemented. They can be added back if they are implemented and shown to help performance. Signed-off-by: Josh Durgin --- doc/rados/configuration/ms-ref.rst | 21 --------------------- src/common/legacy_config_opts.h | 7 ------- src/common/options.cc | 9 --------- src/msg/async/PosixStack.cc | 10 ---------- src/msg/async/PosixStack.h | 6 ------ 5 files changed, 53 deletions(-) diff --git a/doc/rados/configuration/ms-ref.rst b/doc/rados/configuration/ms-ref.rst index 55d009e8399a..45c45861f4df 100644 --- a/doc/rados/configuration/ms-ref.rst +++ b/doc/rados/configuration/ms-ref.rst @@ -120,27 +120,6 @@ Async messenger options :Default: ``5`` -``ms async set affinity`` - -:Description: Set to true to bind Async Messenger workers to particular CPU cores. -:Type: Boolean -:Required: No -:Default: ``true`` - - -``ms async affinity cores`` - -:Description: When ``ms async set affinity`` is true, this string specifies how Async - Messenger workers are bound to CPU cores. For example, "0,2" will bind - workers #1 and #2 to CPU cores #0 and #2, respectively. - NOTE: when manually setting affinity, make sure to not assign workers to - processors that are virtual CPUs created as an effect of Hyperthreading - or similar technology, because they are slower than regular CPU cores. -:Type: String -:Required: No -:Default: ``(empty)`` - - ``ms async send inline`` :Description: Send messages directly from the thread that generated them instead of diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index a8fd2ac4eaf4..2ebc67ce5140 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -147,13 +147,6 @@ OPTION(ms_dump_on_send, OPT_BOOL) // hexdump msg to log on send OPTION(ms_dump_corrupt_message_level, OPT_INT) // debug level to hexdump undecodeable messages at OPTION(ms_async_op_threads, OPT_U64) // number of worker processing threads for async messenger created on init OPTION(ms_async_max_op_threads, OPT_U64) // max number of worker processing threads for async messenger -OPTION(ms_async_set_affinity, OPT_BOOL) -// example: ms_async_affinity_cores = 0,1 -// The number of coreset is expected to equal to ms_async_op_threads, otherwise -// extra op threads will loop ms_async_affinity_cores again. -// If ms_async_affinity_cores is empty, all threads will be bind to current running -// core -OPTION(ms_async_affinity_cores, OPT_STR) OPTION(ms_async_rdma_device_name, OPT_STR) OPTION(ms_async_rdma_enable_hugepage, OPT_BOOL) OPTION(ms_async_rdma_buffer_size, OPT_INT) diff --git a/src/common/options.cc b/src/common/options.cc index 71bb8ff1c6b7..938b53288a99 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1006,15 +1006,6 @@ std::vector