nixpkgs/pkgs/os-specific
Michael Weiss 60f4345e37
linux config: Set TCP_CONG_CUBIC=yes to restore the default
This will switch the default TCP congestion control algorithm from
new Reno to CUBIC. CUBIC is the default since Linux kernel 2.6.19
(see 597811ec167fa) and most (all?) distributions keep this default
(e.g. Debian and Ubuntu). On NixOS the default was still new Reno
because generate-config.pl changes TCP_CONG_CUBIC from y to m (since we
try to build everything as a module by default).

To check the active and available algorithms:
$ sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = cubic
$ sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = cubic reno

Note: E.g. x86_64_defconfig sets TCP_CONG_CUBIC=y indirectly via
CONFIG_TCP_CONG_ADVANCED=y (but CUBIC is also the default if set to no,
see net/ipv4/Kconfig).
2020-03-02 10:57:47 +01:00
..
bsd fixup! Tweak cross-compilation of some netbsd stuff 2019-11-03 12:04:39 +03:00
darwin mpv: add flag for swift on darwin 2020-02-06 14:15:35 +01:00
linux linux config: Set TCP_CONG_CUBIC=yes to restore the default 2020-03-02 10:57:47 +01:00
windows treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00