]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/segment_cleaner: delay reclaim until near full
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 30 May 2022 05:27:30 +0000 (13:27 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 31 May 2022 02:51:03 +0000 (10:51 +0800)
It should be generically better to delay reclaim as much as possible, so
that:
* unalive/unavailable can higher to reduce reclaim efforts;
* less conflicts between mutate and reclaim transactions;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/segment_cleaner.h

index f244f2689db95d599bd011cbc3255f0945ebd1f9..e7a41d549865ddb3d63560549794c353d6d4fe38 100644 (file)
@@ -516,10 +516,10 @@ public:
          12,   // target_journal_segments
          16,   // max_journal_segments
          2,    // target_backref_inflight_segments
-         .9,   // available_ratio_gc_max
-         .2,   // available_ratio_hard_limit
-         .8,   // reclaim_ratio_hard_limit
-         .6,   // reclaim_ratio_gc_threshold
+         .1,   // available_ratio_gc_max
+         .05,  // available_ratio_hard_limit
+         .9,   // reclaim_ratio_hard_limit
+         .1,   // reclaim_ratio_gc_threshold
          1<<20,// reclaim_bytes_per_cycle
          1<<17,// rewrite_dirty_bytes_per_cycle
          1<<24 // rewrite_backref_bytes_per_cycle