home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit f68b3f4e03a417563685da9eee97844361b2fa55
parent 8b45999ef3f3161df80d33e478c923a1e405b624
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 13 May 2024 17:27:12 +0200

core: update nix daemon "scheduler" policies…

… should help not overload the laptop, and hopefully doesn't hurt
build performance too much.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/modules/core/nix.nix | 17+++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/systems/modules/core/nix.nix b/systems/modules/core/nix.nix @@ -57,16 +57,13 @@ in "vdemeester.cachix.org-1:eZWNOrLR9A9szeMahn9ENaoT9DB3WgOos8va+d2CU44=" ]; }; - # FIXME handle this depending on the version - # 21.05 has the following - # daemonIONiceLevel, daemonNiceLevel - # 21.11 and above - # daemonCPUSchedPolicy, daemonIOSchedClass, daemonIOSchedPriority - - #daemonIONiceLevel = 5; - #daemonNiceLevel = 10; - daemonIOSchedPriority = 5; - daemonCPUSchedPolicy = "batch"; + # On laptops at least, make the daemon and builders low priority + # to have a responding system while building + daemonIOSchedClass = "idle"; + daemonCPUSchedPolicy = "idle"; + # FIXME: On servers, we may change this. + # daemonIOSchedPriority = 5; + # daemonCPUSchedPolicy = "batch"; # if hydra is down, don't wait forever extraOptions = ''