Setting up cgroups on Ubuntu

Dimitri John Ledkov xnox at ubuntu.com
Tue Oct 23 15:57:00 UTC 2018


Hi,

On Tue, 23 Oct 2018 at 09:57, MichaƂ Sawicz <michal at sawicz.net> wrote:
>
> Hey all,
>
> Is there a recommended way of setting up cgroups on Ubuntu? I see we
> don't have `cgrulesengd` set up as a service, so is just running
> `cgconfigparser` on boot and using `cgexec` the recommended approach?
>
> Or even dealing directly with the cgroups filesystem?
>

This is a very low-level question, which feels like one is jumping to
conclusions/solution without stating the problem/user-story/goal. Can
you elaborate and start from the beginning and what prompted you to
find cgrulesengd?

All system, user, and container processes on Ubuntu are segregated
into cgroups with a default equal balancing of resources. And one can
further adjust resource allocations using service, slice, scope
settings. Or use delegation for further management. There are examples
of using all of those things by various things in Ubuntu by default...
but it's hard to point you at something specific, without at all
knowing what is your actual use case.

Also, I'm not sure if you are trying to escape default allocation and
get a bigger slice, or on the contrary further sub-divide the
resources your process was given.

Regards,

Dimitri.



More information about the ubuntu-devel mailing list