From 83b6d9a6e67b28d31b2525c169292906653eaf05 Mon Sep 17 00:00:00 2001 From: Shai Fultheim Date: Fri, 29 May 2026 12:26:39 +0300 Subject: [PATCH] crimson/os/seastore: add safety clamp to adaptive hard_limit and crash_floor Signed-off-by: Shai Fultheim --- src/crimson/os/seastore/async_cleaner.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crimson/os/seastore/async_cleaner.cc b/src/crimson/os/seastore/async_cleaner.cc index e72b3d9d7d9..f0e36f82da1 100644 --- a/src/crimson/os/seastore/async_cleaner.cc +++ b/src/crimson/os/seastore/async_cleaner.cc @@ -1176,7 +1176,8 @@ void SegmentCleaner::maybe_adjust_thresholds() double crash_floor = static_cast(named_writers) * segment_ratio; - new_hard_limit = std::max(new_hard_limit, crash_floor); + crash_floor = std::min(crash_floor, 0.95); + new_hard_limit = std::min(std::max(new_hard_limit, crash_floor), 0.95); // Apply lazy decay covering elapsed time (allows gc_max to gradually fall // when workload eases) so peaks fade even when the background process was -- 2.47.3