Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3153725imm; Fri, 25 May 2018 00:16:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq4mOOexgmm5jvNICdmNmc6D/6T8swSpq/fLH0NV7ap5LR0zC8rHn3vhOa1xA6Wdcahvmqk X-Received: by 2002:a63:7986:: with SMTP id u128-v6mr1053409pgc.127.1527232577748; Fri, 25 May 2018 00:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527232577; cv=none; d=google.com; s=arc-20160816; b=LjYk8wy1iMQJSMs72rGGtP3+NPs7U9UcvCQZld50l4wCQRF7KxrcgJOZlZSqMWZNSR bxypoXGBxoupghTV8o7tEiCof/wCuxgMoER1SW3VPTSgZ24wA3cXSHLbUag/8B3LB81/ rVPoxb2LPO1JHcAadQh4RQWmaRWJIGfaA+Q32PZud5V+RHTidmqujkVKtiGBTnhQOAb7 R5eUuzIKkm82sfudPHib9cjFxqw9Tlm0XegastnZqqwYwSfil9lFIRvjXUeWTvtQ98Md zJv05GsBRnQpWbKpPZquVs7+/L8q1kFXgkz+lhklVwhFVADbDrkflFk0c0JWY0fTLHOC 1tSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ccSGORzi1kauMm9VoF/P9IEFnX4OPSySDEXnF3jN2C8=; b=HFUu4LJjJPoNiIOKJ0hM6bcBqqHsiZWRvyELT/ugtt4fmDVepkOg2LeMjv32+D7QLU vXARRIqm1qiKrD8EFaw2xFtx88lgIUzq5hM0l2ODDG5LWY5NBtm6dyDjgSHumXhgKfNb vLafygWUKOHYduLNcA1cRG2bHgj0ve99CjvIfUx7XEXk2hsrWRyk7AN22bGMrb0vdmT2 ZxXKU3WmJqHSH/rcmxQ4e73COlAInhdc/1GMFPA7yW7jj90GMI0F4DiQLuKEGKPJTG6O pUkUvT+P+ij4L3bo8pc5zsyGqbvR/tHMLZXlIbhbqtIyLS+fpaylF0lypdirkMQMAALq NLEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=wKVe4SZE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5-v6si2371747pll.525.2018.05.25.00.16.02; Fri, 25 May 2018 00:16:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=wKVe4SZE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935800AbeEYHPv (ORCPT + 99 others); Fri, 25 May 2018 03:15:51 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36994 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934393AbeEYHPt (ORCPT ); Fri, 25 May 2018 03:15:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ccSGORzi1kauMm9VoF/P9IEFnX4OPSySDEXnF3jN2C8=; b=wKVe4SZEc9Gn53UoLaWFvXM8h E9xZ1B4TcXPwXv0ZruOHpmFClM4UD1u4HcDRaX/NlrfByFFPoQczdrBpMuVCUu3hWkBKbljfhAmR0 EQnGuj5AiirNCjgF1S+DxoUB8rjZKHN8wkXs4VcE1fWz3WiJnb4oQ9c03qlbOkUHDJE1HuRHcND94 fpDQS4ErE1peJC8+XyVLysOobjgD9Xpug2sLZkdh2V5G8yk02SizUa4aTtA2ej2wbPjvaM3aBcD9/ kb634XPIHGd1zbOfxK+ngkeaTHDcyKzG11jESQpkmcv1AFzDqPtgYZxxdhsoemurT/0Pk9hMjkSXJ cwqI+hAnQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fM6wh-000505-LD; Fri, 25 May 2018 07:15:28 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6483F2029F1CB; Fri, 25 May 2018 09:15:24 +0200 (CEST) Date: Fri, 25 May 2018 09:15:24 +0200 From: Peter Zijlstra To: Waiman Long Cc: Tejun Heo , 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 Subject: Re: [PATCH v8 2/6] cpuset: Add new v2 cpuset.sched.domain flag Message-ID: <20180525071524.GQ12198@hirez.programming.kicks-ass.net> References: <1526590545-3350-1-git-send-email-longman@redhat.com> <1526590545-3350-3-git-send-email-longman@redhat.com> <20180524154156.GI12198@hirez.programming.kicks-ass.net> <675f0f38-9154-4e73-1679-179eefdb7c9f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <675f0f38-9154-4e73-1679-179eefdb7c9f@redhat.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 02:53:31PM -0400, Waiman Long wrote: > On 05/24/2018 11:41 AM, Peter Zijlstra wrote: > > On Thu, May 17, 2018 at 04:55:41PM -0400, Waiman Long wrote: > >> A new cpuset.sched.domain boolean flag is added to cpuset v2. This new > >> flag indicates that the CPUs in the current cpuset should be treated > >> as a separate scheduling domain. > > The traditional name for this is a partition. > > Do you want to call it cpuset.sched.partition? That name sounds strange > to me. Let me explore the whole domain x load-balance space first. I'm thinking the two parameters are mostly redundant, but I might be overlooking something (trivial or otherwise). > >> + cpuset.sched.domain > >> + A read-write single value file which exists on non-root > >> + cpuset-enabled cgroups. It is a binary value flag that accepts > >> + either "0" (off) or a non-zero value (on). > > I would be conservative and only allow 0/1. > > I stated that because echoing other integer value like 2 into the flag > file won't return any error. I will modify it to say just 0 and 1. Ah, I would make the file error on >1. Because then you can always extend the meaning afterwards because you know it won't be written to with the new value. > >> + 3) There is no child cgroups with cpuset enabled. > >> + > >> + Setting this flag will take the CPUs away from the effective > >> + CPUs of the parent cgroup. Once it is set, this flag cannot be > >> + cleared if there are any child cgroups with cpuset enabled. > > This I'm not clear on. Why? > > > That is for pragmatic reason as it is easier to code this way. We could > remove this restriction but that will make the code more complex. Best to mention that I think.