all repos — nixfiles @ c5500d5c4506db90268c1d1a1bbbfab8e1109e1e

System and user configuration, managed by nix and home-manager

bare-metal: add more network optimisations

Alan Pearce
commit

c5500d5c4506db90268c1d1a1bbbfab8e1109e1e

parent

7bcc3be4159e146987ae5a768db20c2b3efc5660

1 file changed, 7 insertions(+), 2 deletions(-)

jump to
M system/settings/hardware/bare-metal.nixsystem/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 = {