Unverified Commit 5843a45d authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

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)
parent 999494ce
...@@ -38,7 +38,7 @@ start_server {tags {"memefficiency"}} { ...@@ -38,7 +38,7 @@ start_server {tags {"memefficiency"}} {
run_solo {defrag} { run_solo {defrag} {
start_server {tags {"defrag"} overrides {appendonly yes auto-aof-rewrite-percentage 0 save ""}} { 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" { test "Active defrag" {
r config set hz 100 r config set hz 100
r config set activedefrag no r config set activedefrag no
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment