@cryptotaxi247 / infra-1 / commits / b6dacea5

builders: increase tmpfs size on big-parallel builders

Martin Weinelt committed Jan 6, 2025 at 15:52 UTC b6dacea59a17d886ab6898916f40a8fe86b9ee21
2 files changed +18 -3
builders/profiles/hetzner-ax101r.nix
+9 -2
@@ -1,3 +1,9 @@
1 +{
2 + config,
3 + lib,
4 + ...
5 +}:
6 +
7 {
8 imports = [
9 ../boot/efi-grub.nix
@@ -7,10 +13,11 @@
13 boot.supportedFilesystems.zfs = true;
14 networking.hostId = "91312b0a";
15
10 - # 96G for build roots, 160G for working memory
16 boot.tmp = {
17 useTmpfs = true;
13 - tmpfsSize = "96G";
18 + # 96G tmpfs, 160G RAM for standard builders
19 + # 128G tmpfs, 128G RAM for big parallel builders
20 + tmpfsSize = if lib.elem "big-parallel" config.nix.settings.system-features then "128G" else "96G";
21 };
22
23 boot.initrd.availableKernelModules = [
builders/profiles/hetzner-rx220.nix
+9 -1
@@ -1,3 +1,9 @@
1 +{
2 + config,
3 + lib,
4 + ...
5 +}:
6 +
7 {
8 imports = [
9 ../boot/efi-grub.nix
@@ -10,7 +16,9 @@
16 # 96G for build roots, 160G for working memory
17 boot.tmp = {
18 useTmpfs = true;
13 - tmpfsSize = "96G";
19 + # 96G tmpfs, 160G RAM for standard builders
20 + # 128G tmpfs, 128G RAM for big parallel builders
21 + tmpfsSize = if lib.elem "big-parallel" config.nix.settings.system-features then "128G" else "96G";
22 };
23
24 boot.initrd.availableKernelModules = [