Lower CPU and RAM limits of the upgrade service
This commit is contained in:
parent
5f5dc1cbcd
commit
52a1cbd382
@ -202,10 +202,10 @@ with pkgs;
|
|||||||
# Limit the memory and CPU use of Nix
|
# Limit the memory and CPU use of Nix
|
||||||
systemd.services.nixos-upgrade.serviceConfig = {
|
systemd.services.nixos-upgrade.serviceConfig = {
|
||||||
MemoryHigh = [ "500M" ];
|
MemoryHigh = [ "500M" ];
|
||||||
MemoryMax = [ "2048M" ];
|
MemoryMax = [ "2G" ];
|
||||||
CPUWeight = [ "20" ];
|
MemorySwapMax = [ "500M" ];
|
||||||
CPUQuota = [ "85%" ];
|
CPUWeight = [ "50" ];
|
||||||
IOWeight = [ "20" ];
|
CPUQuota = [ "50%" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure git for auto-upgrade
|
# Configure git for auto-upgrade
|
||||||
|
Loading…
Reference in New Issue
Block a user