From: Shai Fultheim Date: Fri, 29 May 2026 09:26:39 +0000 (+0300) Subject: crimson/os/seastore: add safety clamp to adaptive hard_limit and crash_floor X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F69083%2Fhead;p=ceph.git crimson/os/seastore: add safety clamp to adaptive hard_limit and crash_floor Signed-off-by: Shai Fultheim --- 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