mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
fix: p8s oom - increase zramSwap percentage 50 => 100
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
myvars,
|
myvars,
|
||||||
pkgs,
|
pkgs,
|
||||||
@@ -31,6 +32,11 @@ in {
|
|||||||
"exfat"
|
"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.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
|
boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
|
||||||
|
|||||||
Reference in New Issue
Block a user