Hi.

On Sun, 12 Mar 2023 17:33:42 +0000 "Andre Robatino" wrote:

> I just tried removing systemd-oomd-defaults and it's still possible to run
> systemd-oomd so I was wrong in thinking that would prevent it.

Right: systemd-oomd-defaults only configures systemd-oomd.

    rpm -ql --scripts systemd-oomd-defaults
    /usr/lib/systemd/oomd.conf.d
    /usr/lib/systemd/oomd.conf.d/10-oomd-defaults.conf
    /usr/lib/systemd/system/system.slice.d/10-oomd-per-slice-defaults.conf
    /usr/lib/systemd/system/user-.slice.d/10-oomd-per-slice-defaults.conf
    /usr/lib/systemd/user/slice.d/10-oomd-per-slice-defaults.conf

I checked on a small VM.

With it installed, oomctl shows some CGroups monitored

    root# oomctl
    Dry Run: no
    Swap Used Limit: 90.00%
    Default Memory Pressure Limit: 60.00%
    Default Memory Pressure Duration: 30s
    System Context:
            Memory: Used: 349.5M Total: 1.9G
            Swap: Used: 0B Total: 0B
    Swap Monitored CGroups:
    Memory Pressure Monitored CGroups:
            Path: /user.slice/user-0.slice
                    Memory Pressure Limit: 50.00%
    <snip>
            Path: /user.slice/user-0.slice/user@0.service
    <snip>
    root# 

With it removes. and after a reboot (needed), no CGroups monitored

    root# oomctl
    Dry Run: no
    Swap Used Limit: 90.00%
    Default Memory Pressure Limit: 60.00%
    Default Memory Pressure Duration: 30s
    System Context:
            Memory: Used: 457.5M Total: 1.9G
            Swap: Used: 0B Total: 0B
    Swap Monitored CGroups:
    Memory Pressure Monitored CGroups:
    root#

-- 
francis
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to