Skip to content

Commit 2a58a00

Browse files
sundboranagra
andcommitted
Increment threshold to 1.08
Co-authored-by: oranagra <[email protected]>
1 parent 2674d8c commit 2a58a00

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/memefficiency.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ run_solo {defrag} {
534534
r config set activedefrag no
535535
wait_for_defrag_stop 500 100
536536
r config resetstat
537-
r config set active-defrag-threshold-lower 6
537+
r config set active-defrag-threshold-lower 8
538538
r config set active-defrag-cycle-min 65
539539
r config set active-defrag-cycle-max 75
540540
r config set active-defrag-ignore-bytes 1000kb
@@ -577,7 +577,7 @@ run_solo {defrag} {
577577
puts "frag [s allocator_frag_ratio]"
578578
puts "frag_bytes [s allocator_frag_bytes]"
579579
}
580-
assert_lessthan [s allocator_frag_ratio] 1.06
580+
assert_lessthan [s allocator_frag_ratio] 1.08
581581

582582
# Delete all the keys to create fragmentation
583583
for {set i 0} {$i < $n} {incr i} {
@@ -608,7 +608,7 @@ run_solo {defrag} {
608608
}
609609

610610
# wait for the active defrag to stop working
611-
wait_for_defrag_stop 500 100 1.06
611+
wait_for_defrag_stop 500 100 1.08
612612

613613
# test the fragmentation is lower
614614
after 120 ;# serverCron only updates the info once in 100ms

0 commit comments

Comments
 (0)