On Fri, 18.09.15 14:45, Francis Moreau ([email protected]) 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 _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
