Re: MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Do, 08.11.18 11:24, Piotr Dobrogost (2018@xxxxxxxxxxxxxxx) 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.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux