From 51f5b854ab77865c886fb5676cea187b83931996 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 7 Nov 2024 14:59:13 +0800 Subject: [PATCH] nixos/core: increase udp buffer sizes --- nixos/profiles/core/networking.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/profiles/core/networking.nix b/nixos/profiles/core/networking.nix index 3e4f4e7..ebcafa3 100644 --- a/nixos/profiles/core/networking.nix +++ b/nixos/profiles/core/networking.nix @@ -12,5 +12,9 @@ boot.kernel.sysctl = { "net.core.default_qdisc" = "cake"; "net.ipv4.tcp_congestion_control" = "bbr"; + + # https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes + "net.core.rmem_max" = 7500000; + "net.core.wmem_max" = 7500000; }; }