From 860de9b4b280d63d66e94d36df92c238026887c5 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Tue, 9 Oct 2018 09:11:29 -0700 Subject: [PATCH] osd: Separate removal and recovery thread pools The name "disk_tp" was misleading because it was only used for removal and recovery. Signed-off-by: David Zafman This backport is not cherry-picked from master since the remove threadpool was folded into the main op queue post-luminous, so the code is almost entirely different. --- src/common/legacy_config_opts.h | 3 ++- src/common/options.cc | 6 +++++- src/osd/OSD.cc | 28 ++++++++++++++++++---------- src/osd/OSD.h | 3 ++- 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index a51870ef64289..8232fdc3d788e 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -665,7 +665,8 @@ OPTION(osd_peering_wq_threads, OPT_INT) OPTION(osd_peering_wq_batch_size, OPT_U64) OPTION(osd_op_pq_max_tokens_per_priority, OPT_U64) OPTION(osd_op_pq_min_cost, OPT_U64) -OPTION(osd_disk_threads, OPT_INT) +OPTION(osd_remove_threads, OPT_INT) +OPTION(osd_recovery_threads, OPT_INT) OPTION(osd_disk_thread_ioprio_class, OPT_STR) // rt realtime be best effort idle OPTION(osd_disk_thread_ioprio_priority, OPT_INT) // 0-7 OPTION(osd_recover_clone_overlap, OPT_BOOL) // preserve clone_overlap during recovery/migration diff --git a/src/common/options.cc b/src/common/options.cc index ff3bb1a1be193..970a12f3fe614 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1950,7 +1950,11 @@ std::vector