Am 07.01.2015 um 00:20 schrieb Aditya Kali: > I understand your point. But it will add some complexity to the code. > > Before trying to make it work for non-unified hierarchy cases, I would > like to get a clearer idea. > What do you expect to be mounted when you run: > container:/ # mount -t cgroup none /sys/fs/cgroup/ > from inside the container? > > Note that cgroup-namespace wont be able to change the way cgroups are > mounted .. i.e., if say cpu and cpuacct subsystems are mounted > together at a single mount-point, then we cannot mount them any other > way (inside a container or outside). This restriction exists today and > cgroup-namespaces won't change that. I wondered why cgroup namespaces won't change that and looked at your patches in more detail. What you propose as cgroup namespace is much more a cgroup chroot() than a namespace. As you pass relative paths into the namespace you depend on the mount structure of the host side. Hence, the abstraction between namespaces happens on the mount paths of the initial cgroupfs. But we really want a new cgroupfs instance within a container and not just a cut out of the initial cgroupfs mount. I fear you approach is over simplified and won't work for all cases. It may work for your specific use case at Google but we really want something generic. Eric, what do you think? Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html