From c5500d5c4506db90268c1d1a1bbbfab8e1109e1e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 28 Jan 2021 15:53:42 +0100 Subject: bare-metal: add more network optimisations --- system/settings/hardware/bare-metal.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'system/settings') diff --git a/system/settings/hardware/bare-metal.nix b/system/settings/hardware/bare-metal.nix index 7fd47513..db668830 100644 --- a/system/settings/hardware/bare-metal.nix +++ b/system/settings/hardware/bare-metal.nix @@ -18,9 +18,14 @@ 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 = { -- cgit 1.4.1