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