Author: eelco
Date: Mon Sep 12 09:06:44 2011
New Revision: 29199
URL: https://ssl.nixos.org/websvn/nix/?rev=29199&sc=1
Log:
* Run the garbage collector 4 times a day on the build machines.
A Nixpkgs rebuild can easily fill up > 100 GB in a day.
Modified:
configurations/trunk/tud/build-machines-common.nix
Modified: configurations/trunk/tud/build-machines-common.nix
==============================================================================
--- configurations/trunk/tud/build-machines-common.nix Mon Sep 12 03:38:12
2011 (r29198)
+++ configurations/trunk/tud/build-machines-common.nix Mon Sep 12 09:06:44
2011 (r29199)
@@ -24,7 +24,7 @@
services.cron.systemCronJobs =
[ # Make sure that at least 100 GiB of disk space is available.
- "15 03 * * * root nix-store --gc --max-freed \"$((100 * 1024**3 - 1024
* $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" > /var/log/gc.log 2>&1"
+ "15 03,09,15,21 * * * root nix-store --gc --max-freed \"$((100 *
1024**3 - 1024 * $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" >
/var/log/gc.log 2>&1"
];
networking.hostName = ""; # obtain from DHCP server
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits