Re: systemd put it uinder a custom slice

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

 



On Mi, 30.10.19 11:08, Bhasker C V (bhasker@xxxxxxxxxxxxx) wrote:

> Hi all,
>
>  I have been googl-ing for a few days now but could not stumble upon a
> solution I am looking for.
>
> Apologies if this is a noob question.
>
> Is there a way to use custom slices with my systemd-nspawn container ?
>
> I see that systemd-nspawn man page says using --slice= but any such
> cgroup created is not accepted by this option (I dont know how to create
> a slice externally from systemd unit-files)
>
> $ sudo cgcreate  -g freezer,memory:/test

This is not supported.

systemd owns the cgroup tree, only subtrees for which delegation is
explicitly turned on can be managed by other programs, for example for
the purpose of container managers.

Thus, creating cgroups manually, directly via cgcreate at the top of
the tree is explicitly not supported.

Use systemd's own concepts, i.e. slice units, direct cgroup access
bypassing systemd at the top of the tree is explicitly not supported.

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
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