[systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy
Piotr Dobrogost
2018 at p.dobrogost.net
Thu Nov 8 13:15:18 UTC 2018
On Thu, Nov 8, 2018 at 11:33 AM Lennart Poettering <lennart at poettering.net>
wrote:
>
> On Do, 08.11.18 11:24, Piotr Dobrogost (2018 at p.dobrogost.net) wrote:
>
> > Additional question; is there a way to find out which type of hierarchy
> > does systemd use?
>
> Try this:
>
> stat -fc %T /sys/fs/cgroup/
>
> if that reports "cgroups2fs" then you are in full cgroupsv2 mode. If
> it returns "tmpfs" then you are in either full cgroupsv1 mode, or in
> hybrid mode. Then, check if /sys/fs/cgroup/unified exists. If it does,
> then you are in hybrid mode. if not you are in pure cgroupsv1 mode.
Sounds like it could be handy to expose this somehow (as a command or
variable).
I enabled unified hierarchy by passing "systemd.unified_cgroup_hierarchy"
kernel parameter and stat reports "cgroups2fs" yet the limit still doesn't
work – `cat /proc/$(pidof krusader)/status | grep VmRSS` reports "VmRSS:
225452 kB"
Piotr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20181108/36d79475/attachment.html>
More information about the systemd-devel
mailing list