Skip to content

Commit

Permalink
fix: p8s oom - increase zramSwap percentage 50 => 100
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Sep 8, 2024
1 parent 00b9c7e commit 4f93202
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hosts/idols-aquamarine/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
lib,
mylib,
myvars,
pkgs,
Expand Down Expand Up @@ -31,6 +32,11 @@ in {
"exfat"
];

# Maximum total amount of memory that can be stored in the zram swap devices (as a percentage of your total memory).
# Defaults to 1/2 of your total RAM. Run zramctl to check how good memory is compressed.
# This doesn’t define how much memory will be used by the zram swap devices.
zramSwap.memoryPercent = lib.mkForce 100;

boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = ["kvm-amd"];
boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
Expand Down

0 comments on commit 4f93202

Please sign in to comment.