From: Igor Fedotov Date: Mon, 28 Jan 2019 15:17:52 +0000 (+0300) Subject: os/bluestore: cap reads issued during deep fsck X-Git-Tag: v12.2.12~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7dcf8221160474b703e649db11738802cd4747e2;p=ceph.git os/bluestore: cap reads issued during deep fsck Fixes: https://tracker.ceph.com/issues/38065 Signed-off-by: Igor Fedotov (cherry picked from commit ced308000aef6050ca1fdbdfe3b4b63a887a1706) Conflicts: src/common/options.cc - use TYPE_UINT instead of TYPE_SIZE for new bluestore_fsck_read_bytes_cap option - drop .set_flag(Option::FLAG_RUNTIME) because no .set_flag in luminous --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 82869775812..5a36e6bd49b 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1099,6 +1099,7 @@ OPTION(bluestore_fsck_on_umount_deep, OPT_BOOL) OPTION(bluestore_fsck_on_mkfs, OPT_BOOL) OPTION(bluestore_fsck_on_mkfs_deep, OPT_BOOL) OPTION(bluestore_sync_submit_transaction, OPT_BOOL) // submit kv txn in queueing thread (not kv_sync_thread) +OPTION(bluestore_fsck_read_bytes_cap, OPT_U64) OPTION(bluestore_throttle_bytes, OPT_U64) OPTION(bluestore_throttle_deferred_bytes, OPT_U64) OPTION(bluestore_throttle_cost_per_io_hdd, OPT_U64) diff --git a/src/common/options.cc b/src/common/options.cc index 1c474f3047a..fc759287d2a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3691,6 +3691,10 @@ std::vector