bare-metal: add more network optimisations
Alan Pearce alan@alanpearce.eu
Thu, 28 Jan 2021 15:53:42 +0100
1 files changed, 7 insertions(+), 2 deletions(-)
M system/settings/hardware/bare-metal.nix → system/settings/hardware/bare-metal.nix
@@ -18,9 +18,14 @@ # set scheduler for rotating disks ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq" ''; + boot.kernelModules = [ "tcp_bbr" ]; boot.kernel.sysctl = { - "net.ipv4.tcp_allowed_congestion_control" = "illinois reno lp"; - "net.ipv4.tcp_congestion_control" = "illinois"; + "net.core.default_qdisc" = "cake"; + "net.ipv4.tcp_allowed_congestion_control" = "bbr illinois reno lp"; + "net.ipv4.tcp_congestion_control" = "bbr"; + "net.ipv4.tcp_fastopen" = 3; + "net.ipv4.tcp_slow_start_after_idle" = 0; + "net.ipv4.tcp_mtu_probing" = 1; }; zramSwap = {