From 99c9ea223048c48eb23280287822ea2ead5c8df6 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Wed, 16 Jul 2025 23:04:36 +0200 Subject: [PATCH] feat: add sysctl network config --- sysctl.d/99-network.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sysctl.d/99-network.conf diff --git a/sysctl.d/99-network.conf b/sysctl.d/99-network.conf new file mode 100644 index 0000000..b7af21d --- /dev/null +++ b/sysctl.d/99-network.conf @@ -0,0 +1,14 @@ +# Network performance optimizations from Arch Wiki +# https://wiki.archlinux.org/title/Sysctl#Increase_the_memory_dedicated_to_the_network_interfaces +net.core.rmem_default = 1048576 +net.core.rmem_max = 16777216 +net.core.wmem_default = 1048576 +net.core.wmem_max = 16777216 +net.core.optmem_max = 65536 +net.ipv4.tcp_rmem = 4096 1048576 2097152 +net.ipv4.tcp_wmem = 4096 65536 16777216 +net.ipv4.udp_rmem_min = 8192 +net.ipv4.udp_wmem_min = 8192 +net.core.netdev_max_backlog = 16384 +net.core.somaxconn = 8192 +net.ipv4.tcp_fastopen = 3