Created
January 12, 2022 17:48
-
-
Save 1a1a11a/3cff0dc935089f8dcec58203fe1dd511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/storage/seg/segevict.c b/src/storage/seg/segevict.c | |
index da940e3..66c4988 100644 | |
--- a/src/storage/seg/segevict.c | |
+++ b/src/storage/seg/segevict.c | |
@@ -278,7 +278,8 @@ segevict_setup(evict_policy_e ev_policy, uintmax_t seg_mature_time) | |
struct merge_opts *mopt = &evict_info.merge_opt; | |
mopt->target_ratio = 1.0 / mopt->seg_n_merge; | |
/* stop if the bytes on the merged seg is more than the threshold */ | |
- mopt->stop_ratio = mopt->target_ratio * (mopt->seg_n_merge - 1) + 0.05; | |
+ // mopt->stop_ratio = mopt->target_ratio * (mopt->seg_n_merge - 1) + 0.05; | |
+ mopt->stop_ratio = 0.9; | |
mopt->stop_bytes = (int32_t) (heap.seg_size * mopt->stop_ratio); | |
srand(time(NULL)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment