[CRIU] [PATCH 1/2] cg: Add ability to dump custom cgroup properties and skip controllers
Cyrill Gorcunov
gorcunov at gmail.com
Wed Apr 27 02:55:28 PDT 2016
On Wed, Apr 27, 2016 at 11:53:09AM +0300, Cyrill Gorcunov wrote:
> We have some common predefined properties such as "cpuset.cpus" and etc gathered
> in @cgp_predefined set, but there might be situation when only predefined ones
> are not enough, so add ability to specify properties via --cgroup-props
> and/or --cgroup-props-file options.
>
> For example one may pass
>
> --cgroup-props "\"cpu\": [\"cpu.shares\", \"cpu.cfs_period_us\"]"
>
> to dump custom properties for cpu controller.
>
> The description is implemented in almost valid yaml, probably we will
> need to support the various forms, but oneline is enough for now.
>
> Once custom properties are specified all predefined controllers
> and their properties are zapped out.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
Forgot to update the subject of the patch: "skip controllers" feature
will be implemented on top of this series ;)
More information about the CRIU
mailing list