(In reply to Anita Zhang from comment #15)
>
> You're pretty close to the default limits set up for Fedora so if you're
> fine with the added pressure you may want to try bumping them for your
> system with an override like so:
>
> $ cat /etc/systemd/system/user@.service.d/99-oomd-override.conf
Directory `user@.service.d` is absent on my system.
$ ls /etc/systemd/system/user@.service.d
ls: cannot access '/etc/systemd/system/user@.service.d': No such file or directory
> [Service]
> ManagedOOMMemoryPressureLimit=65%
> $ sudo systemctl daemon-reload
> $ oomctl # check if new limit was applied
>
> The default values will likely be reworked once
> https://github.com/systemd/systemd/pull/20690 is merged. This will allow
> setting more tuned pressure values on slices within a user session rather
> than relying on one value for all of <email address hidden>.
As I am understand by default PressureLimit should be 50%
(In reply to Anita Zhang from comment #15) system/ user@.service. d/99-oomd- override. conf
>
> You're pretty close to the default limits set up for Fedora so if you're
> fine with the added pressure you may want to try bumping them for your
> system with an override like so:
>
> $ cat /etc/systemd/
Directory `user@.service.d` is absent on my system.
$ ls /etc/systemd/ system/ user@.service. d system/ user@.service. d': No such file or directory
ls: cannot access '/etc/systemd/
> [Service] yPressureLimit= 65% /github. com/systemd/ systemd/ pull/20690 is merged. This will allow
> ManagedOOMMemor
> $ sudo systemctl daemon-reload
> $ oomctl # check if new limit was applied
>
> The default values will likely be reworked once
> https:/
> setting more tuned pressure values on slices within a user session rather
> than relying on one value for all of <email address hidden>.
As I am understand by default PressureLimit should be 50%
$ cat /usr/lib/ systemd/ oomd.conf. d/10-oomd- defaults. conf essureDurationS ec=20s
[OOM]
DefaultMemoryPr
$ cat /usr/lib/ systemd/ system/ user@.service. d/10-oomd- user-service- defaults. conf yPressure= kill yPressureLimit= 50%
[Service]
ManagedOOMMemor
ManagedOOMMemor
But oomctl show 60%, why?
$ oomctl
Swap Usage: (see System Context) user-1000. slice/user@ 1000.service
Memory Pressure Limit: 50.00%
Pressure: Avg10: 0.00 Avg60: 0.00 Avg300: 0.00 Total: 14s
Current Memory Usage: 49.6G
Memory Min: 250.0M
Memory Low: 0B
Pgscan: 85039860
Last Pgscan: 85039860
Dry Run: no
Swap Used Limit: 90.00%
Default Memory Pressure Limit: 60.00%
Default Memory Pressure Duration: 20s
System Context:
Memory: Used: 55.3G Total: 62.6G
Swap: Used: 104.5M Total: 63.9G
Swap Monitored CGroups:
Path: /
Memory Pressure Monitored CGroups:
Path: /user.slice/