@cryptotaxi247 / infra-1 / commits / dae1a27c

rhea: zramSwap.enable = true;

We were getting OOM too often now, and this workaround is trivial. Example trunk-combined eval with this deployed: https://monitoring.nixos.org/grafana/d/rYdddlPWk/node-exporter-full?orgId=1&var-DS_PROMETHEUS=default&var-job=node&var-node=rhea:9100&from=1695622604311&to=1695628578656

Vladimír Čunát committed Sep 25, 2023 at 11:07 UTC dae1a27cd95d95ae1200d61b79e203fb27cb0e59
1 file changed +3
delft/rhea/configuration.nix
+3
@@ -34,6 +34,9 @@
34 };
35 services.hydra-dev.buildMachinesFiles = [ "/etc/nix/machines" ];
36
37 + # hydra-evaluator causes very sharp spikes in RAM usage on trunk-combined
38 + zramSwap.enable = true;
39 +
40 nix.gc.automatic = true;
41 nix.gc.options = ''--max-freed "$((400 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
42 nix.gc.dates = "03,09,15,21:15";