Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751982AbbBMCQt (ORCPT ); Thu, 12 Feb 2015 21:16:49 -0500 Received: from szxga01-in.huawei.com ([119.145.14.64]:63680 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784AbbBMCQs (ORCPT ); Thu, 12 Feb 2015 21:16:48 -0500 Message-ID: <54DD5E80.4090402@huawei.com> Date: Fri, 13 Feb 2015 10:16:32 +0800 From: Zefan Li User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Serge Hallyn CC: , , =?ISO-8859-1?Q?St=E9phan?= =?ISO-8859-1?Q?e_Graber?= , Subject: Re: cpusets in non-unified hierarchy broken? References: <20150212214950.GB10662@ubuntumail> In-Reply-To: <20150212214950.GB10662@ubuntumail> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.18.230] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 841 Lines: 25 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/