more agressive early oom
This commit is contained in:
parent
f7992f53e4
commit
a1023ac7ae
1 changed files with 8 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue