Watch
0
1
Fork
You've already forked nixos-configuration
0

more agressive early oom

This commit is contained in:
müde 2026-11-09 17:09:50 +01:00
commit a1023ac7ae

View file

@ -34,6 +34,14 @@
MemoryMax = lib.mkForce "80%";
};
# Swap = 15.5GiB zram (used first) + 32GiB swapfile. Default earlyoom swap
# threshold (10% free) only fires after ~44GiB are used, i.e. deep into
# thrashing. 60% free ≈ zram full plus a few GiB of swapfile.
services.earlyoom = {
freeSwapThreshold = 60;
enableNotifications = true;
};
services.xserver.xkb = {
# Configure keymap in X11
layout = "de";