From: Tejun Heo Subject: Re: [PATCH v11 7/9] cpuset: Expose cpus.effective and mems.effective on cgroup v2 root Date: Fri, 17 Aug 2018 08:59:46 -0700 Message-ID: <20180817155946.GJ3978217@devbig004.ftw2.facebook.com> References: <20180719165201.GU72677@devbig577.frc2.facebook.com> <20180720113121.GJ2476@hirez.programming.kicks-ass.net> <20180720114549.GY72677@devbig577.frc2.facebook.com> <20180720154454.GR2494@hirez.programming.kicks-ass.net> <20180720155613.GB1934745@devbig577.frc2.facebook.com> <4857a9db-ebf5-24f8-c42d-d795f5c75854@redhat.com> <20180720163712.GU2494@hirez.programming.kicks-ass.net> <8c655adc-6d9e-b767-1024-5d6941c995a9@redhat.com> <20180720174100.GC1934745@devbig577.frc2.facebook.com> <446ab203-85cd-32ff-40a9-0ba22d5a2534@redhat.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4fcruF0wHWAiuq7TBuf0S7S9RugixbQxRSP48LAR0zc=; b=Jsy3ErxEW5czngd306aCb2YJmiW2wT36rr2cN+fWybPa7H2AfX1lkF5OvYJ6kkPV8v ZNwthLC3UktUqSduS9PFjdfFeY/bqhwcmIPxb4VFZPOEiwNv/OTIqVxONezaDBhDgzIG MGb70uQXjMqkOyCuRvVHu6C66Q9fdmB1uxT8uMK9uxAOwDdtkhZ/ZjQiwo5NVVZvwPIh XXcfM/l+IpFcxCpDzOLOFYcld6hOIL2wykT07YgEd5a04nmvfpPz6bP6pXcS9gvbb9ul Zl1BmPSgsBPWXvUsREaoKwD3XwkRd/Bm0dK+0BNZi04CYdliQImVEr7LbEd7bUykC3OD A1Fw== Content-Disposition: inline In-Reply-To: <446ab203-85cd-32ff-40a9-0ba22d5a2534@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Waiman Long Cc: Peter Zijlstra , Li Zefan , Johannes Weiner , Ingo Molnar , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@fb.com, pjt@google.com, luto@amacapital.net, Mike Galbraith , torvalds@linux-foundation.org, Roman Gushchin , Juri Lelli , Patrick Bellasi Hello, Waiman. On Mon, Aug 13, 2018 at 01:56:15PM -0400, Waiman Long wrote: > The following restrictions are still imposed on a partition root wrt > allowable changes in cpuset.cpus: > 1) cpuset.cpus cannot be set to "". There must be at least 1 cpu there. > 2) Adding cpus that are not in parent's cpuset.cpus (as well as > cpuset.cpus.effective) or that will take all the parent's effective cpus > away is not allowed. > > So are these limitations acceptable? > > The easiest way to remove those restrictions is to forcefully turn off > the cpuset.sched.partition flag in the cpuset as well as any > sub-partitions when the user try to do that. With that change, there > will be no more new restriction on what you can do on cpuset.cpus. I think that'd be the right thing to do. That's what we do with cpuset.cpus and cpuset.mems too. If there's nothing available, we ignore the config and show the settings which are currently in effect. Thanks. -- tejun