Paul Menage wrote: > On Mon, Dec 28, 2009 at 3:04 PM, Daniel Lezcano <daniel.lezcano@xxxxxxx> wrote: > >> This patch is sent as an answer to a previous thread around the ns_cgroup. >> >> https://lists.linux-foundation.org/pipermail/containers/2009-June/018627.html >> >> It adds a control file 'clone_children' for a cgroup. >> This control file is a boolean specifying if the child cgroup should >> be a clone of the parent cgroup or not. The default value is 'false'. >> >> This flag makes the child cgroup to call the post_clone callback of all >> the subsystem, if it is available. >> > > Basic idea looks OK, and it seems like a plausible way to handle > automatic construction/inheritance of control values. I have a minor > worry that it might not be fine-grained enough though - are there > maybe cases where you'd want cloning for one subsystem but not for > others? I suppose in that case you can just put them on separate > hierarchies. > Yes, or change clone_children by clone_parent ? We create first the cgroup and then echo 1 > newcgroup/clone_parent > The file should be called cgroup.clone_children rather than plain > clone_children, to fit in with the other new generic-cgroup control > files that we've started introducing, and to avoid naming clashes. > oops, missed that. Will fix that, thanks ! -- Daniel _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers