[systemd-devel] Question related to cgroup and systemd

Francis Moreau francis.moro at gmail.com
Fri Sep 18 08:41:26 PDT 2015


On Fri, Sep 18, 2015 at 5:25 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> 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.
>

Wouldn't that make sense to fail in that case then or at least give a warning ?

Thanks
-- 
Francis


More information about the systemd-devel mailing list