From 8d3fe232e31a7b945c4613923e9395ed6152375f Mon Sep 17 00:00:00 2001 From: Adrian Pistol Date: Sun, 30 Oct 2022 16:47:12 +0100 Subject: [PATCH] linux: Set CONFIG_NO_HZ_FULL=y. CONFIG_NO_HZ_FULL=y should be set to enable the `nohz_full=` and `rcu_nocbs=` options. These carry no additional performance penalty compared to CONFIG_NO_HZ_IDLE and behaves like it by default, but allows disabling the tick interrupts on cores for power or performance reasons. [Debian][1] also applied the change to all their kernels. Like the Kernel says: "If you're a distro say Y." [1]: https://salsa.debian.org/kernel-team/linux/-/commit/f6aad27f05c007d6f30b34ff77bc7ea47844f117 --- pkgs/os-specific/linux/kernel/common-config.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 57fe7420f481..3c1bbb73fda5 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -114,6 +114,12 @@ let IOSCHED_BFQ = whenAtLeast "4.12" module; }; + + timer = { + # Enable Full Dynticks System. + NO_HZ_FULL = yes; + }; + # Enable NUMA. numa = { NUMA = option yes;