From b5b81795999a215f915433eff2628b12392bca2e Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 3 Feb 2026 14:55:52 -0600 Subject: [PATCH] runners: bench: Enabled wear-leveling (BLOCK_RECYCLES=100) by default This shows an interesting strategy difference between the test_runner and bench_runner. In the test_runner we default to the least-stress configuration, to minimize bugs unrelated to the current test. But the resulting configuration is unrealistic, as most use cases on flash will probably want wear-leveling. In the bench_runner, we should use a more realistic configuration, so setting BLOCK_RECYCLES=100 by default makes sense. --- runners/bench_defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runners/bench_defines.h b/runners/bench_defines.h index ee7d355e..859cc941 100644 --- a/runners/bench_defines.h +++ b/runners/bench_defines.h @@ -20,7 +20,7 @@ BENCH_DEFINE(ERASE_SIZE, DISK_MAP(ERASE_SIZE) ) BENCH_DEFINE(BLOCK_SIZE, LFS3_MAX(ERASE_SIZE, 512) ) BENCH_DEFINE(BLOCK_COUNT, DISK_SIZE/LFS3_MAX(BLOCK_SIZE, 1) ) - BENCH_DEFINE(BLOCK_RECYCLES, -1 ) + BENCH_DEFINE(BLOCK_RECYCLES, 100 ) BENCH_DEFINE(RCACHE_SIZE, LFS3_MAX(16, READ_SIZE) ) BENCH_DEFINE(PCACHE_SIZE, LFS3_MAX(16, PROG_SIZE) ) BENCH_DEFINE(FCACHE_SIZE, 16 )