[CRIU] [PATCH] cgroups: get controllers from /proc/self/cgroups (v2)

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 11 12:11:18 PDT 2015


On Fri, Sep 11, 2015 at 09:41:15PM +0300, Andrey Vagin wrote:
>    >
>    > Could you please explain why can't you test the "active"
>    > field from /proc/cgroups and simply skip the controller
>    > if it's disabled?
> 
>    There is the "enabled" field? Don't know, haven't heard;)

Hehe ;)

> 
>    Seriously, the old version looks up a hierarchy for each controller.
> 
>    In this version we get all controllers together, so the complexity of the
>    current version is O(n) instead of O(n^2)

OK, great then!


More information about the CRIU mailing list