1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# /etc/memwatch.conf -- see README for the reasoning behind each number.
# --- when to wake up --------------------------------------------------------
# Kernel PSI trigger. Fires when *every* runnable task was stalled on memory
# for warn_stall_us out of each warn_window_us. 100ms/1s == 10% of wall time
# lost to reclaim, which is roughly where a desktop starts feeling sticky.
# Raise warn_stall_us if you get woken during normal heavy builds.
warn_stall_us = 100000
warn_window_us = 1000000
# --- when to stop asking and just kill --------------------------------------
# full avg10, as a percentage, sustained for kill_hold_s consecutive seconds.
# 25% held for 4s is not a spike, it is a machine going down.
kill_avg10 = 25.0
kill_hold_s = 4
# How long the dialog waits for you. Timing out means kill.
dialog_timeout_s = 20
# Don't act twice inside this window.
cooldown_s = 15
# --- who is eligible --------------------------------------------------------
min_victim_mb = 300
scan_slices = /user.slice
protect = niri,cosmic-comp,cosmic-session,cosmic-greeter,cosmic-panel,cosmic-bg,systemd,dbus-daemon,dbus-broker,pipewire,wireplumber,sshd,memwatchd,Xwayland
# Leave blank to autodetect the owner of the graphical session.
notify_user =
# Log what it *would* do and touch nothing. Start here.
dry_run = 1
|