Skip to content

Commit

Permalink
builders: start gcing earlier
Browse files Browse the repository at this point in the history
Keep a bit more space free percentage-wise and in exchange run less
often.
  • Loading branch information
mweinelt committed Jan 4, 2025
1 parent cffc760 commit e5c6c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builders/common/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

gc =
let
maxFreed = 100; # GB
maxFreed = 500; # GB
in
{
automatic = true;
dates = "*:0/30"; # every 30 minutes
dates = "hourly";
options = "--max-freed \"$((${toString maxFreed} * 1024**3 - 1024 * $(df --output=avail /nix/store | tail -n 1)))\"";
};

Expand Down

0 comments on commit e5c6c09

Please sign in to comment.