From 4953f5ac92dd0426381a56186ef51be72d86725c Mon Sep 17 00:00:00 2001 From: k3t Date: Fri, 3 Jul 2026 19:50:29 -0600 Subject: [PATCH] add ecn support in sysctl --- modules/sys/sysctl.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/sys/sysctl.nix b/modules/sys/sysctl.nix index 3851d55..61af9fe 100644 --- a/modules/sys/sysctl.nix +++ b/modules/sys/sysctl.nix @@ -2,9 +2,9 @@ # Transparent Hugepages for better memory performance boot.kernel.sysctl = { "vm.max_map_count" = 1048576; # For some games that need it - "vm.swappiness" = 200; # Reduce swapping + "vm.swappiness" = 200; # BBR congestion control - "net.core.default_qdisc" = "fq"; + "net.core.default_qdisc" = "cake"; "net.ipv4.tcp_congestion_control" = "bbr"; "kernel.sysrq" = 1; # Enable SysRq for emergency recovery @@ -14,5 +14,9 @@ "vm.dirty_ratio" = 10; # Faster writes to disk "vm.dirty_background_ratio" = 5; # Background write threshold "kernel.sched_autogroup_enabled" = 0; # Better CPU scheduling for gaming + + # ECN + "net.ipv4.tcp_ecn" = 1; + "net.ipv4.tcp_ecn_fallback" = 1; }; } \ No newline at end of file