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 <tazjin@tvl.su>
This commit is contained in:
Alyssa Ross 2023-02-10 22:48:15 +00:00
parent c4ade691e1
commit 3c68159b81

View file

@ -644,5 +644,7 @@ in
}; };
}; };
zramSwap.enable = true;
system.stateVersion = "20.03"; system.stateVersion = "20.03";
} }