From e465b4cbba7762a5eaa631619c6716495d7197ea Mon Sep 17 00:00:00 2001 From: guangli-dai Date: Wed, 29 Jul 2026 14:04:22 -0700 Subject: [PATCH] Reduce narenas to save address space to reduce CI flakiness on 32-bit systems. --- test/unit/background_thread_enable.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/unit/background_thread_enable.c b/test/unit/background_thread_enable.c index e66bf13c..083714ae 100644 --- a/test/unit/background_thread_enable.c +++ b/test/unit/background_thread_enable.c @@ -14,8 +14,12 @@ max_test_narenas(void) { */ unsigned ret = 10 * ncpus; - /* Limit the max to avoid VM exhaustion on 32-bit . */ - return ret > 256 ? 256 : ret; + /* + * These arenas remain live for the rest of the test process. Leave + * enough address space for the worker thread in the toggle stress test, + * particularly on 32-bit platforms where its stack allocation can fail. + */ + return ret > 64 ? 64 : ret; } TEST_BEGIN(test_deferred) {