From 163a7f38c4fcff19bc680d5bdb624d82d5c4cde7 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Tue, 5 Mar 2024 22:36:28 +0100 Subject: [PATCH] tcp bbr --- modules/base/network.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/base/network.nix b/modules/base/network.nix index 012bdd8..66a1d4c 100644 --- a/modules/base/network.nix +++ b/modules/base/network.nix @@ -41,6 +41,12 @@ ''; }; + # TCP BBR has significantly increased throughput and reduced latency. Note + # that the IPv4 setting controls both IPv4 and IPv6. + boot.kernel.sysctl = { + "net.ipv4.tcp_congestion_control" = "bbr"; + }; + # vnStat keeps a log of hourly, daily and monthly network traffic services.vnstat.enable = true; environment.persistence."/nix/persist" = {