Re: cpusets in non-unified hierarchy broken?

From: Zefan Li
Date: Thu Feb 12 2015 - 21:16:52 EST


On 2015/2/13 5:49, Serge Hallyn wrote:
> Hi,
>
> as of some point in 3.18, cpuset.cpus doesn't seem to be
> enforced any more. I don't see an obvious reason in the
> code, but it seems likely to be related to the effective_cpus.
>
> If I mount -t cgroup -o cpuset cpuset /mnt and then mkdir /mnt/lxc,
> then /mnt/lxc has:
>
> ====================================================
> ubuntu@cpuset1:~$ cat /mnt/lxc/cpuset.effective_cpus
>
> ubuntu@cpuset1:~$ cat /mnt/lxc/cpuset.cpus
> 0-3

This happens when you enable cgroup.clone_children.

Thanks for reporting this bug! Will fix it soon.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/