Skip to content

Commit 8b27622

Browse files
committed
macs: gc twice per hour for up to 100 GB
We see too many alerts about disk fullness and jobs stuck sending inputs because there is no space remaining, so we now gc harder.
1 parent 84e0907 commit 8b27622

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

macs/common.nix

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,16 @@ in
5454
};
5555
gc = {
5656
automatic = true;
57-
interval = {
58-
# hourly at the 15th minute
59-
Minute = 15;
60-
};
61-
# ensure up to 125G free space every hour
62-
options = "--max-freed $(df -k /nix/store | awk 'NR==2 {available=$4; required=125*1024*1024; to_free=required-available; printf \"%.0d\", to_free*1024}')";
57+
interval = [
58+
{
59+
Minute = 15;
60+
}
61+
{
62+
Minute = 45;
63+
}
64+
];
65+
# ensure up to 100G free space every half hour
66+
options = "--max-freed $(df -k /nix/store | awk 'NR==2 {available=$4; required=100*1024*1024; to_free=required-available; printf \"%.0d\", to_free*1024}')";
6367
};
6468
};
6569

0 commit comments

Comments
 (0)