NewsCrawler.org

Fornax's Guide to Ridiculously Fast Ethernet

The author of this pixeldrain post describes how the service spent about a year getting its server to serve files at 100 Gigabit per second. The first 100 GbE server crashed at 20 Gigabit, and the hosting provider could not help. The write-up covers the Linux kernel settings, called sysctls[1], that the author chose through testing and kernel recompilation.

Sysctls do not survive a reboot, so the lines go into /etc/sysctl.d/10-network.conf, since the older /etc/sysctl.conf is deprecated. The first setting is the congestion control algorithm BBR[2], which the author says works best and does not sharply cut the transfer rate when a packet is lost. BBR uses the pacing system of the fq queuing discipline (qdisc[3]), which the author says performs better than the default.

The article then covers buffer sizes, which depend on the Bandwidth-Delay Product[4]. Using a 260 ms round trip between Amsterdam and Tokyo, the author calculates that 10 Gigabit needs a buffer of about 325 MB. The servers use a maximum buffer of 1 GiB, and the author says a Cloudflare patch merged into Linux 6.5 cut TCP buffer memory use by 80% on his systems.

Read the original docs.pixeldrain.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page