Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#71546 - [systemd] Provide default configurations for systemd-oomd
Attached to Project:
Arch Linux
Opened by Jitao Lu (dianlujitao) - Monday, 19 July 2021, 03:26 GMT
Last edited by Christian Heusel (gromit) - Tuesday, 08 August 2023, 14:55 GMT
Opened by Jitao Lu (dianlujitao) - Monday, 19 July 2021, 03:26 GMT
Last edited by Christian Heusel (gromit) - Tuesday, 08 August 2023, 14:55 GMT
|
DetailsDescription:
Now that systemd-oomd is distributed with the systemd package, but it doesn't come up with any configurations. Enabling systemd-oomd.service has no effect at all. Fedora provides a systemd-oomd-defaults package that contains default config files: https://fedora.pkgs.org/34/fedora-x86_64/systemd-oomd-defaults-248-2.fc34.x86_64.rpm.html and shipped by default since https://pagure.io/fork/salimma/fedora-comps/c/1ad902bf6fcf42dcdabd57c654acd5c9b7413584 Arch should have a similar package |
This task depends upon
https://fedoraproject.org/wiki/Changes/EnableSystemdOomd#Should_spins_that_don.27t_put_processes_in_separate_cgroups_be_excluded_from_this_change.3F
Perhaps we should just document this in the wiki. Not sure... Anybody else with an opinion?
However, on desktop this needs support from the user session in order to not kill an entire session if a single app triggers oomd. This is AFAIK currently only done by GNOME, and explains why Fedora easily ships this.
GNOME makes heavy use of the systemd user manager's scopes: GNOME Shell launches apps into separate scopes if they don't define a service already; GNOME Terminal creates a scope for every tab. Even then it's surprising to lose the entire terminal tab and not just the foreground process to oomd.