# Desktop part of the avoid list comes from the Fedora Workstation SIG:
# https://pagure.io/fedora-workstation/issue/119
# poldek, rpm: killing the package manager mid-transaction corrupts the rpm database
# sshd, sshd-session: on a headless machine this is the only way back in
# Names are matched against /proc/pid/comm, which is truncated to 15 bytes.

EARLYOOM_ARGS="-r 0 -m 4 -M 1048576 --prefer '^(Web Content|Isolated Web Co)$' --avoid '^(poldek|rpm|sshd|sshd-session|gnome-shell|gnome-session-c|gnome-session-b|lightdm|sddm|sddm-helper|gdm|gdm-wayland-ses|gdm-session-wor|gdm-x-session|Xorg|Xwayland|systemd|systemd-logind|dbus-daemon|dbus-broker|cinnamon|cinnamon-sessio|kwin_x11|kwin_wayland|plasmashell|ksmserver|plasma_session|startplasma-way|xfce4-session|mate-session|marco|lxqt-session|openbox|cryptsetup)$'"

# More documentation at `man earlyoom` or `earlyoom -h`.
