nix.daemonCPUSchedPolicy
Nix daemon process CPU scheduling policy. This policy propagates to
build processes. other is the default scheduling
policy for regular tasks. The batch policy is
similar to other, but optimised for
non-interactive tasks. idle is for extremely
low-priority tasks that should only be run when no other task
requires CPU time.
Please note that while using the idle policy may
greatly improve responsiveness of a system performing expensive
builds, it may also slow down and potentially starve crucial
configuration updates during load.
idle may therefore be a sensible policy for
systems that experience only intermittent phases of high CPU load,
such as desktop or portable computers used interactively. Other
systems should use the other or
batch policy instead.
For more fine-grained resource control, please refer to
systemd.resource-control(5) and adjust
systemd.services.nix-daemon directly.
- Type
one of "other", "batch", "idle"- Default
"other"- Example
"batch"- Declared
- <nixpkgs/nixos/modules/services/system/nix-daemon.nix>