mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
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)
This commit is contained in:
parent
999494cef8
commit
5843a45d01
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user