From f0584e7f1d09f570e819c75d45f123032699330f Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 21 May 2024 03:48:05 +0800 Subject: [PATCH] and test tuning notes --- services/test-swapper/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/test-swapper/src/main.rs b/services/test-swapper/src/main.rs index 177d7f3c8..801791fe4 100644 --- a/services/test-swapper/src/main.rs +++ b/services/test-swapper/src/main.rs @@ -35,7 +35,7 @@ fn main() -> ! { info!("Loop #{}, waiting {} ms", unsafe { LOOP_COUNT.load(Ordering::SeqCst) }, DELAY_MS); sleep(Duration::from_millis(DELAY_MS)); - const TEST_SIZE: usize = 950 * 1024; + const TEST_SIZE: usize = 800 * 1024; // 950 really stresses things, as nothing fits if i == 8 || i == 17 { log::info!("allocating big_vec"); let mut big_vec = Vec::with_capacity(TEST_SIZE);