Skip to content

Commit 873d705

Browse files
committed
increase CHUNK_SIZE to avoid truncation
1 parent c6c66c5 commit 873d705

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pulsebeam-runtime/src/net.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ use std::{
77
use bytes::Bytes;
88
use quinn_udp::RecvMeta;
99

10-
// L2 cache friendly, keep it <= 1MB
1110
pub const BATCH_SIZE: usize = quinn_udp::BATCH_SIZE;
12-
// Fit Mimalloc page size and Linux GRO limit
13-
pub const CHUNK_SIZE: usize = 32 * 1024;
11+
// Fit allocator page size and Linux GRO limit
12+
pub const CHUNK_SIZE: usize = 64 * 1024;
1413
// Up to 8x IO loop latency, a bit of headroom for keyframe bursts.
1514
// With 1ms scheduling delay, this is capped to 8ms latency.
1615
pub const SOCKET_RECV_SIZE: usize = 8 * BATCH_SIZE * CHUNK_SIZE;

0 commit comments

Comments
 (0)