summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
authorAlan Pearce2021-01-28 15:53:42 +0100
committerAlan Pearce2021-01-28 15:53:42 +0100
commitc5500d5c4506db90268c1d1a1bbbfab8e1109e1e (patch)
tree70e8d10bda743c38a9a5720a53aeb1b03b3876e0 /system/settings
parent7bcc3be4159e146987ae5a768db20c2b3efc5660 (diff)
downloadnixfiles-c5500d5c4506db90268c1d1a1bbbfab8e1109e1e.tar.lz
nixfiles-c5500d5c4506db90268c1d1a1bbbfab8e1109e1e.tar.zst
nixfiles-c5500d5c4506db90268c1d1a1bbbfab8e1109e1e.zip
bare-metal: add more network optimisations
Diffstat (limited to 'system/settings')
-rw-r--r--system/settings/hardware/bare-metal.nix9
1 files changed, 7 insertions, 2 deletions
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 = {