Skip to content

Commit

Permalink
Fix shm memory pressure test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sk1p committed Jul 18, 2024
1 parent 9af7e49 commit 9261513
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libertem_qd_mpx/src/background_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9261513

Please sign in to comment.