Update some cgroup settings
Eelco Dolstra committed
Oct 16, 2013 at 10:16 UTC
1340b36d7f29b72fa3db1c3c26be34e81f7a15e4
1 file changed
+4
-22
delft/lucifer.nix
+4
-22
@@ -81,35 +81,17 @@
81
(gcRemote { machine = "nix@tweek"; gbFree = 3; df = "/usr/gnu/bin/df"; })
82
];
83
84
- /*
85
- services.cgroups = {
86
- enable = true;
87
- groups =
88
- ''
89
- mount {
90
- cpu = /dev/cgroup/cpu;
91
- blkio = /dev/cgroup/blkio;
92
- }
93
- group hydra-mirror {
94
- cpu {
95
- cpu.shares = "100";
96
- }
97
- }
98
- '';
99
- rules =
100
- ''
101
- hydra-mirror cpu hydra-mirror
102
- '';
103
- };
104
- */
105
-
84
# Set some cgroup limits.
85
systemd.services.sshd.serviceConfig.CPUShares = 2000;
86
+ systemd.services.sshd.serviceConfig.BlockIOWeight = 1000;
87
systemd.services.nix-daemon.serviceConfig.CPUShares = 200;
88
systemd.services.nix-daemon.serviceConfig.BlockIOWeight = 500;
89
systemd.services.hydra-queue-runner.serviceConfig.CPUShares = 200;
90
+ systemd.services.hydra-queue-runner.serviceConfig.BlockIOWeight = 200;
91
systemd.services.hydra-evaluator.serviceConfig.CPUShares = 100;
92
+ systemd.services.hydra-evaluator.serviceConfig.BlockIOWeight = 100;
93
systemd.services.hydra-server.serviceConfig.CPUShares = 700;
94
+ systemd.services.hydra-server.serviceConfig.BlockIOWeight = 700;
95
96
systemd.services.mirror-nixpkgs =
97
{ description = "Mirror Nixpkgs";