» To Project

Compress log files

Hydra #36 - Improvement (by Eelco Dolstra on Jun 2)

Logs are starting to take up a lot of space:

[root@hydra:~]# du /nix/var/log/nix/drvs/
352415032       /nix/var/log/nix/drvs/

We could just bzip them. Then the Hydra log view has to see that /nix/var/log/nix/drvs/.bz2 exists and decompress it on the fly.

We can also delete old logs but there is some value in keeping them.

Issue Log

On Jun 2 Eelco Dolstra wrote:

I've freed about 60 GB by deleting the 300 largest log files (rm $(ls -rS /nix/var/log/nix/drvs/ | tail -n 300)), mostly OpenOffice and WebDSL logs.

On Jun 22 Eelco Dolstra wrote:

On a related note, the build machines also accumulate a lot of log files:

[root@stan:~]# du -h /nix/var/log/nix/drvs/
279G    /nix/var/log/nix/drvs/

These are totally unnecessary so we can just delete them. Maybe Nix should have an option to turn off logging, which build-remote.pl could then use on remote machines.

Log in to post comments