about summary refs log tree commit diff
path: root/ops/machines/whitby
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-02-10T22·48+0000
committerAlyssa Ross <hi@alyssa.is>2023-02-11T12·14+0000
commit3c68159b81f9f4f322f19251a30c26344505b66b (patch)
tree94c71817b78784eb5c88b2917fca4bfc286e0224 /ops/machines/whitby
parentc4ade691e1d92f3f03974bacc1077cce6d8309bf (diff)
chore(whitby): enable zram swap r/5846
Whitby has a lot of memory, but I've still been fighting with the OOM
Killer trying to build a few big packages at the same time.  Besides,
it's generally a good idea to always have swap available even if
there's lots of memory for caching optimisation reasons[1], and zram
swap is efficient enough to basically provide bonus memory for free.

[1]: https://haydenjames.io/linux-performance-almost-always-add-swap-space/

Change-Id: I1fbe60f7975ebfa38e341e0de76848ec79b6fcf0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8065
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'ops/machines/whitby')
-rw-r--r--ops/machines/whitby/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix
index 62f8cedb637f..4fcce39fccef 100644
--- a/ops/machines/whitby/default.nix
+++ b/ops/machines/whitby/default.nix
@@ -644,5 +644,7 @@ in
     };
   };
 
+  zramSwap.enable = true;
+
   system.stateVersion = "20.03";
 }