diff options
author | linj <linj.dev@outlook.com> | 2021-11-04 18:54:34 +0800 |
---|---|---|
committer | linj <linj.dev@outlook.com> | 2021-11-05 03:18:16 +0800 |
commit | 555aa76120a4ebb5139704276ee7dd0b8c3cd520 (patch) | |
tree | a112fcba47a522105986693c2cd82a63073c9ebd /pkgs/os-specific/linux/kernel/common-config.nix | |
parent | 642292c85d1589005279dd2f41c511cf58f5f3b2 (diff) | |
download | nixpkgs-555aa76120a4ebb5139704276ee7dd0b8c3cd520.tar nixpkgs-555aa76120a4ebb5139704276ee7dd0b8c3cd520.tar.gz nixpkgs-555aa76120a4ebb5139704276ee7dd0b8c3cd520.tar.bz2 nixpkgs-555aa76120a4ebb5139704276ee7dd0b8c3cd520.tar.lz nixpkgs-555aa76120a4ebb5139704276ee7dd0b8c3cd520.tar.xz nixpkgs-555aa76120a4ebb5139704276ee7dd0b8c3cd520.tar.zst nixpkgs-555aa76120a4ebb5139704276ee7dd0b8c3cd520.zip |
linux: enable TCP_CONG_ADVANCED
TCP_CONG_ADVANCED is enabled by default on x86_64[1] in the upstream. Although it is not the case for aarch64[2], many distributions, such as Debian[3], Fedora[4] and Gentoo[5], choose to enable it in their distribution kernel. With this patch, aarch64 users can choose many other TCP congestion algorithms, which may improve their network performance. [1]: https://github.com/torvalds/linux/blob/7ddb58cb0ecae8e8b6181d736a87667cc9ab8389/arch/x86/configs/x86_64_defconfig#L71 [2]: https://github.com/torvalds/linux/blob/7ddb58cb0ecae8e8b6181d736a87667cc9ab8389/arch/arm64/configs/defconfig [3]: https://salsa.debian.org/kernel-team/linux/-/blob/e2d14375d74cdcb2cfed6518d7a5ad784c30df1a/debian/config/config#L7063 [4]: https://src.fedoraproject.org/rpms/kernel/raw/836165dd2dff34e4f2c47ca8f9c803002c1e6530/f/kernel-aarch64-fedora.config [5]: https://github.com/gentoo/gentoo/blob/5808eb2f066ea2ece19c35a1978b7f79077a467b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.77.ebuild#L27
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index f591910f560..7eb871c30db 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -129,6 +129,7 @@ let XDP_SOCKETS = whenAtLeast "4.19" yes; XDP_SOCKETS_DIAG = whenAtLeast "5.1" yes; WAN = yes; + TCP_CONG_ADVANCED = yes; TCP_CONG_CUBIC = yes; # This is the default congestion control algorithm since 2.6.19 # Required by systemd per-cgroup firewalling CGROUP_BPF = option yes; |