From 5843a45d01f76c55288abe00c29931a2520fe521 Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Fri, 8 Jan 2021 10:03:21 +0200 Subject: [PATCH] Skip defrag tests on systems with bigger page sizes (#8294) The defragger works well on these systems, but the tests and their thresholds are not adjusted for these big pages, so the defragger isn't able to get down the fragmentation to the levels the test expects and it fails on "defrag didn't stop". Randomly choosing 8k as the threshold for the skipping Fixes #8265 (which had 65k pages) --- tests/unit/memefficiency.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/memefficiency.tcl b/tests/unit/memefficiency.tcl index 357089c8f..88fcd6f51 100644 --- a/tests/unit/memefficiency.tcl +++ b/tests/unit/memefficiency.tcl @@ -38,7 +38,7 @@ start_server {tags {"memefficiency"}} { run_solo {defrag} { start_server {tags {"defrag"} overrides {appendonly yes auto-aof-rewrite-percentage 0 save ""}} { - if {[string match {*jemalloc*} [s mem_allocator]]} { + if {[string match {*jemalloc*} [s mem_allocator]] && [r debug mallctl arenas.page] <= 8192} { test "Active defrag" { r config set hz 100 r config set activedefrag no