From 91c99b8550bac0b0404ee9fdef51aef9306eb634 Mon Sep 17 00:00:00 2001 From: Sridhar Seshasayee Date: Thu, 8 Aug 2019 16:28:01 +0530 Subject: [PATCH] os/bluestore: Add config observer for osd memory specific options. Add config observer to enable changes to the following osd memory specific options at runtime, - osd_memory_target - osd_memory_base - osd_memory_cache_min - osd_memory_expected_fragmentation Signed-off-by: Sridhar Seshasayee (cherry picked from commit 0d3609a2b7a88ae236335df9ea5d9854aa4de7ad) Conflicts: src/os/bluestore/BlueStore.cc - removed config changed detection of bluestore_max_defer_interval as it is not present in nautilus src/os/bluestore/BlueStore.h - removed declaration of max_defer_interval. --- PendingReleaseNotes | 15 +++++++++ src/common/options.cc | 11 ++++++- src/os/bluestore/BlueStore.cc | 60 +++++++++++++++++++++++++++++++++++ src/os/bluestore/BlueStore.h | 3 ++ 4 files changed, 88 insertions(+), 1 deletion(-) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index d4fb7f9810ad..897f41853319 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -116,3 +116,18 @@ * New OSD daemon command dump_scrub_reservations which reveals the scrub reservations that are held for local (primary) and remote (replica) PGs. + +14.2.6 +------ + +* The following OSD memory config options related to bluestore cache autotuning can now + be configured during runtime: + + - osd_memory_base (default: 768 MB) + - osd_memory_cache_min (default: 128 MB) + - osd_memory_expected_fragmentation (default: 0.15) + - osd_memory_target (default: 4 GB) + + The above options can be set with:: + + ceph config set global