From 3c68159b81f9f4f322f19251a30c26344505b66b Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 10 Feb 2023 22:48:15 +0000 Subject: [PATCH] chore(whitby): enable zram swap 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 --- ops/machines/whitby/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix index 62f8cedb6..4fcce39fc 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"; }