From 504a443acc63ed8bb07973a0c8b829768909f3f2 Mon Sep 17 00:00:00 2001 From: Yureka Date: Wed, 31 Jul 2024 23:44:08 +0200 Subject: [PATCH] adjust hydra-gc numbers we want to see how garbage collection would behave on a 480GB drive --- hosts/buildbot/default.nix | 2 +- services/baremetal-builder/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/buildbot/default.nix b/hosts/buildbot/default.nix index 5748069..6fea50b 100755 --- a/hosts/buildbot/default.nix +++ b/hosts/buildbot/default.nix @@ -28,7 +28,7 @@ bagel.services.buildbot = { enable = true; domain = "buildbot.forkos.org"; - builders = [ "builder-3" ]; + builders = [ "builder-11" ]; }; i18n.defaultLocale = "en_US.UTF-8"; diff --git a/services/baremetal-builder/default.nix b/services/baremetal-builder/default.nix index 3fc32ca..74af67f 100644 --- a/services/baremetal-builder/default.nix +++ b/services/baremetal-builder/default.nix @@ -156,8 +156,8 @@ in script = '' while : ; do percent_filled=$(($(stat -f --format="100-(100*%a/%b)" /mnt))) - if [ "$percent_filled" -gt "85" ]; then - ${config.nix.package.out}/bin/nix-store --gc --max-freed 100G --store /mnt + if [ "$percent_filled" -gt "54" ]; then + ${config.nix.package.out}/bin/nix-store --gc --max-freed 50G --store /mnt else break fi