[systemd-devel] Question related to cgroup and systemd
Lennart Poettering
lennart at poettering.net
Fri Sep 18 08:25:33 PDT 2015
On Fri, 18.09.15 14:45, Francis Moreau (francis.moro at gmail.com) wrote:
> > # systemd-run --slice=my-deep-slice.slice -p MemoryLimit=3G /bin/sleep 99999
> >
> > It creates the specified slice, and places the new service in it, then
> > adds the process in it and sets the memory.limit_in_bytes= attribute
> > on the services' cgroup.
> >
> > Does this not work for you?
>
> I dont think so:
>
> $ cat ~/.config/systemd/user/myslice.slice
Controller access is not permitted for --user instances of systemd if
the legacy hierarchy is used, as that's not deemed safe by the kernel
guys.
If you use the unified hierarchy this is opened up, as it is safe
then.
systemd --system instances get access to controllers in any case.
> Which kernel version starts to support the new unified hierarchy ? Is
> there a doc which explain it ?
See NEWS.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list