diff options
author | Richard Marko <srk@48.io> | 2022-08-11 09:55:41 +0200 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2022-08-12 17:31:02 +0800 |
commit | 9ba8f7d8b3446e7534875ada648227c75f865503 (patch) | |
tree | a4439a6b0cb9a08b72d1b78e83e9db602ab647cb /nixos | |
parent | 1410d8939830767e9edba0f824e4f3b1cb8d6ee4 (diff) |
services/klipper: add CPUScheduling and IOScheduling tuning
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/klipper.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/klipper.nix b/nixos/modules/services/misc/klipper.nix index 4c0b67a98caf0..34e9acc71929f 100644 --- a/nixos/modules/services/misc/klipper.nix +++ b/nixos/modules/services/misc/klipper.nix @@ -130,6 +130,10 @@ in SupplementaryGroups = [ "dialout" ]; WorkingDirectory = "${cfg.package}/lib"; OOMScoreAdjust = "-999"; + CPUSchedulingPolicy = "rr"; + CPUSchedulingPriority = 99; + IOSchedulingClass = "realtime"; + IOSchedulingPriority = 0; } // (if cfg.user != null then { Group = cfg.group; User = cfg.user; |