@cryptotaxi247 / infra-1 / commits / a68dff2e

* GC harder, especially on Darwin.

svn path=/configurations/trunk/tud/; revision=32439

Eelco Dolstra committed Feb 20, 2012 at 19:09 UTC a68dff2ebef18ea03ba80f97e6ea720f4eebe2f5
1 file changed +3 -3
lucifer.nix
+3 -3
@@ -79,16 +79,16 @@
79 let
80 # Run the garbage collector on ‘machine’ to ensure that at least
81 # ‘gbFree’ GiB are free.
82 - gcRemote = { machine, gbFree ? 3, df ? "df" }:
82 + gcRemote = { machine, gbFree ? 4, df ? "df" }:
83 "15 03 * * * root ssh -x -i /root/.ssh/id_buildfarm ${machine} " +
84 ''nix-store --gc --max-freed '$((${toString gbFree} * 1024**3 - 1024 * $(${df} -P -k /nix/store | tail -n 1 | awk "{ print \$4 }")))' > "/var/log/gc-${machine}.log" 2>&1'';
85 in
86 [ "*/5 * * * * hydra-mirror flock -x /data/releases/.lock -c /home/hydra-mirror/release/mirror/mirror-nixos-isos.sh >> /home/hydra-mirror/nixos-mirror.log 2>&1"
87 - (gcRemote { machine = "nix@butters"; })
87 + (gcRemote { machine = "nix@butters"; gbFree = 50; })
88 (gcRemote { machine = "nix@garrison"; })
89 (gcRemote { machine = "nix@demon"; })
90 (gcRemote { machine = "nix@beastie"; })
91 - (gcRemote { machine = "nix@tweek"; gbFree = 2; df = "/usr/gnu/bin/df"; })
91 + (gcRemote { machine = "nix@tweek"; gbFree = 3; df = "/usr/gnu/bin/df"; })
92 ];
93
94 services.cgroups = {