2021-01-07

SteveBromwich recommended some IP tuning on mercury.bonmot.ca

Most suggestions are from https://enterprise-support.nvidia.com/s/article/linux-sysctl-tuning

ifconfig enp1s0 indicated

cat /proc/sys/net/ipv4/tcp_mem 22593 30124 45186

Will have to be done every reboot:

find the interface name with:

 ip route show
 ip route change default via 5.39.78.254 dev eno0 cwnd 100 initcwnd 100
 ip link set txqueuelen 3000 dev eno0
 echo 6000 > /proc/sys/net/core/netdev_max_backlog
 echo 3000 > /proc/sys/net/core/netdev_budget

Permanent changes:

... and added those and the following to /etc/sysctl.conf

net.ipv4.tcp_sack=1
net.core.netdev_max_backlog=250000
net.ipv4.tcp_low_latency=1
net.core.rmem_max=4194304
net.core.wmem_max=4194304
net.core.rmem_default=4194304
net.core.wmem_default=4194304
net.core.optmem_max=4194304
net.ipv4.tcp_rmem="4096 87380 4194304"
net.ipv4.tcp_wmem="4096 65536 4194304"