From 47062b9c681807fb98e0fb15c5204c4a89f0245a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 18 Sep 2025 12:08:08 -0400 Subject: [PATCH] raise wmem_max/rmem_max for non-autotuned buffers Unbound now requests 4M for the send buffer by default and we might as well permit that for both the send and receive buffers. We set the max auto-tuned send buffer size on a per-server basis but don't currently have much use for tuning the maximum manually specified buffer size across servers. It can be moved in the future if needed. --- etc/sysctl.d/60-local.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/sysctl.d/60-local.conf b/etc/sysctl.d/60-local.conf index 7715d05..6c463af 100644 --- a/etc/sysctl.d/60-local.conf +++ b/etc/sysctl.d/60-local.conf @@ -10,6 +10,9 @@ net.ipv6.conf.*.accept_redirects = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.*.rp_filter = 0 +net.core.wmem_max=4194304 +net.core.rmem_max=4194304 + # use BBR and disable ECN since BBRv1 doesn't support it net.ipv4.tcp_congestion_control = bbr net.ipv4.tcp_ecn = 0