Use much higher buffer sizes

This commit is contained in:
2026-01-10 16:38:13 -05:00
parent 0861703ddc
commit a93a1f0906

View File

@@ -447,9 +447,11 @@ fn unsubscribe(
/// Try to match the kernel socket buffers to maximize /// Try to match the kernel socket buffers to maximize
/// the amount of data we push through each syscall. /// the amount of data we push through each syscall.
fn getBufferSizes(io: Io) @Tuple(&.{ usize, usize }) { fn getBufferSizes(io: Io) @Tuple(&.{ usize, usize }) {
const default_size = 8 * 1024 * 1024; const default_size = 128 * 1024 * 1024;
const default = .{ default_size, default_size }; const default = .{ default_size, default_size };
if (true) return default;
const dir = Dir.openDirAbsolute(io, "/proc/sys/net/core", .{}) catch { const dir = Dir.openDirAbsolute(io, "/proc/sys/net/core", .{}) catch {
log.warn("couldn't open /proc/sys/net/core", .{}); log.warn("couldn't open /proc/sys/net/core", .{});
return default; return default;