From 1f72c8cd38c34430a596e1e281111a070b85c8e3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 28 May 2024 20:58:41 +0800 Subject: [PATCH] quiet down poll loop --- services/xous-swapper/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/xous-swapper/src/main.rs b/services/xous-swapper/src/main.rs index 6dc9e4dfe..3a96ce268 100644 --- a/services/xous-swapper/src/main.rs +++ b/services/xous-swapper/src/main.rs @@ -687,7 +687,8 @@ fn main() { while sss.inner.is_none() { xous::yield_slice(); } - + // measure memory at boot + get_free_pages(); let total_ram = sss.inner.as_ref().unwrap().sram_size; // Binary heap for storing the view of the memory allocations. sss.inner.as_mut().unwrap().hard_oom_alloc_heap = Some(BinaryHeap::with_capacity(total_ram / PAGE_SIZE)); @@ -711,7 +712,7 @@ fn main() { let conn = conn.clone(); move || { loop { - sleep(Duration::from_millis(2500)); + sleep(Duration::from_millis(10_200)); xous::send_message(conn, Message::new_scalar(Opcode::Test0.to_usize().unwrap(), 0, 0, 0, 0)) .ok(); }