services/klipper: add CPUScheduling and IOScheduling tuning

This commit is contained in:
Richard Marko 2022-08-11 09:55:41 +02:00 committed by Peter Hoeg
parent 1410d89398
commit 9ba8f7d8b3

View File

@ -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;