Comment 49 for bug 1972159

Revision history for this message
In , the.anitazha (the.anitazha-redhat-bugs) wrote :

You(In reply to Mikhail from comment #16)
> (In reply to Anita Zhang from comment #15)
> Directory `user@.service.d` is absent on my system.

You need to make it. Directories under /etc/systemd/system are managed by the system maintainer.

> As I am understand by default PressureLimit should be 50%
>
> But oomctl show 60%, why?
>
> $ oomctl
> 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: /
> Swap Usage: (see System Context)
> Memory Pressure Monitored CGroups:
> Path: /user.slice/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

Default memory pressure limit is 60% meaning if the unit doesn't override it, it will use 60%. But here since we ship a config for user@.service, the memory pressure limit is overridden to be 50% (it has it in the output above the "Pressure" line).