[systemd-devel] How to correctly use memory controls (MemoryLow) on unified hierarchy system?
Michal Koutný
mkoutny at suse.com
Wed May 26 17:54:18 UTC 2021
On Fri, May 21, 2021 at 03:25:05PM +0300, Andrei Borzenkov <arvidjaar at gmail.com> wrote:
> Is it necessary to explicitly set it on every ancestor?
It depends against what reclaim you want to be protected.
Global memory reclaim (running out of RAM) -> set it on every ancestor.
Cgroup memory reclaim (hitting memory limit of an ancestor cgroup G) ->
set it till G children only.
It's explained (but not merged) with a picture here [1].
The typical case is the former and therefore typically you set
protection on all ancestors.
Michal
[1] https://lore.kernel.org/lkml/20200729140537.13345-2-mkoutny@suse.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210526/9ea1799c/attachment.sig>
More information about the systemd-devel
mailing list