From 926151361e2b616bbb0a8bb14120ec64663cc9f2 Mon Sep 17 00:00:00 2001 From: Alexander Clausen Date: Thu, 18 Jul 2024 20:30:07 +0200 Subject: [PATCH] Fix shm memory pressure test case --- libertem_qd_mpx/src/background_thread.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libertem_qd_mpx/src/background_thread.rs b/libertem_qd_mpx/src/background_thread.rs index c235f2bb..6b6f0843 100644 --- a/libertem_qd_mpx/src/background_thread.rs +++ b/libertem_qd_mpx/src/background_thread.rs @@ -1170,18 +1170,17 @@ End let (_socket_dir, socket_as_path) = get_socket_path(); let bytes_per_frame = 256 * 256; - let slot_size = bytes_per_frame; - // NOTE: only four slots, meaning we can have three slots for splitting - // plus one slot that is currently being read by client code. - let mut shm = SharedSlabAllocator::new(4, slot_size, false, &socket_as_path).unwrap(); + // NOTE: only 5 slots, meaning we can have three slots for splitting + // plus some for users + let mut shm = SharedSlabAllocator::new(5, bytes_per_frame, false, &socket_as_path).unwrap(); let config = &QdDetectorConnConfig::new( "127.0.0.1", local_addr.port() as usize, 1, bytes_per_frame, - 1, + 5, false, socket_as_path.to_str().unwrap(), None,