monolith: limit system slice to 50% cpu usage
This commit is contained in:
parent
ff74e9ec4a
commit
c625920f2c
1 changed files with 8 additions and 0 deletions
|
|
@ -50,6 +50,14 @@ in
|
|||
my.gaming.enable = true;
|
||||
my.nix-ld.enable = true;
|
||||
|
||||
systemd.slices."system" = {
|
||||
enable = true;
|
||||
sliceConfig = {
|
||||
# 50% maximum usage accross 8 cores
|
||||
CPUQuota = "${toString (8 * 50)}%";
|
||||
};
|
||||
};
|
||||
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
||||
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue