archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.04k stars 522 forks source link

[Feature Request] systemd-oomd #1374

Open Nathan-MV opened 2 years ago

Nathan-MV commented 2 years ago

Add systemd-oomd configs and enable by default in archinstall, it is already enabled by default on most major distributions (Ubuntu, Fedora..). Documentation: https://www.freedesktop.org/software/systemd/man/systemd-oomd.html https://www.freedesktop.org/software/systemd/man/oomctl.html https://www.freedesktop.org/software/systemd/man/oomd.conf.html Here is how fedora implemented its configuration: https://fedoraproject.org/wiki/Changes/EnableSystemdOomd#How_to_test

JoelLarson commented 2 years ago

That looks handy. I'd like to see it get implemented at some point.

There are some considerations for systems without swap space:

It is highly recommended for the system to have swap enabled for systemd-oomd to function optimally. With swap enabled, the system spends enough time swapping pages to let systemd-oomd react. Without swap, the system enters a livelocked state much more quickly and may prevent systemd-oomd from responding in a reasonable amount of time. https://man.archlinux.org/man/systemd-oomd.8.en

deadmeu commented 8 months ago

I was looking into using systemd-oomd but was a little hesitant due to the required config to set up. It would be nice to see this automated with archinstall.