Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1738239pxb; Fri, 27 Aug 2021 16:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLIESgbqMr1zI58TjjvHfzVGPZUKfAotDYcNNYg9Ql0rp62DtWeHDhn/NQLme8CztO1DTs X-Received: by 2002:a50:c092:: with SMTP id k18mr12000744edf.361.1630107581357; Fri, 27 Aug 2021 16:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630107581; cv=none; d=google.com; s=arc-20160816; b=B2FqK2FpMUNyWfLciAFkksSdLni/58FQGySdtdLD0qA2rQGxcG/xLbecgVHBsu+ko9 VQZVmO80WUmhUpo8nScijyWABEzhTWGlMX2B4vFxh5gg4+ugrJNiB/nSZJTJmd3qnYhN FlhKnSQ8yeZpNM+I1zpIRD7Qt07Dpz+gfz9WrNL5teX2AODtSB5GJ6L7ZAbKPVNImE8J fL59R+K1dOaZ85Gf2xVFpGGXuUiIt3WbeM/XpPDw2rjxnzH29RONqqhLtxuYbufTEgTO yaOFoXos9F5MIyByKNvlmFb3YmkpcEy5qRnFCbTVneLXuOFFGSoukEf/kzkUwvHDLps8 7IMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=prQGEZISCROhNVrZYgfW+RC/t0atKeeXslehrhwqbKM=; b=s3vAhuCEFUou8zF6LM0riBetdMNGT+PKPM+mAZRetG7TABVFfNlXU26oEn/OrqpV6K PCOHnD8dkUUSgAq6ynVAWMGT/BNhL4BzzcWanKXGsr1KzxDNvVDU1KAiWVB1NjgInLov KorBtcAGK32ULKFouTt0PuiGYMbY9WlOe2Keqlxv45oSKKhToX46jTuYszDG6R9dQTD2 HLTEO8xm1bKZH4mqaOFfn2QeixCx4OMGcsBE4FfV7TVVQ7bghqXMyaKY8HGDWcG8aDXt od0+mq+hSO35VSU/MERx4pbNn4OWB258+jCcjK5ZjD0Gv/1eQbwPXqt/V3Pu6o7VPwfU aXkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JVKQMqIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si9174049edl.348.2021.08.27.16.39.18; Fri, 27 Aug 2021 16:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JVKQMqIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232524AbhH0Xgc (ORCPT + 99 others); Fri, 27 Aug 2021 19:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbhH0Xgb (ORCPT ); Fri, 27 Aug 2021 19:36:31 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44CB3C0613D9; Fri, 27 Aug 2021 16:35:42 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id w6so4904441plg.9; Fri, 27 Aug 2021 16:35:42 -0700 (PDT) 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; bh=prQGEZISCROhNVrZYgfW+RC/t0atKeeXslehrhwqbKM=; b=JVKQMqIk5zflT5U8YILqRhxIh0RbHGgU2gJ/VgQiRBTi+AYzDW0B+/RartoyZkUvtv 0aIPVgKqWSag9KjmoSmL9tIWHn1wBjacgIraxFnfDb5qGOZIUWO89s/DReEueEyUwyCU xBvOq80P4g1ck6ZkFkbUuJXgJhQXW8bc4jx0W3R6bkzBf/GFgpdxXOI9qR3i3aZM7gd5 k1QK34eoX7chwVUadq/Zz9w7KcoJP7gm1tTl686YBb5Wf7RXf5lNfYrYfB7UEh+SWZtl YKdr/zTz3TNPmZM45KKMPXB5YYh4yXEr6TJ8VDPPtbo+4L2n3eYoWYI/mfPVR3fadHXs 3a4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=prQGEZISCROhNVrZYgfW+RC/t0atKeeXslehrhwqbKM=; b=aNrFd0lBYtpLjnaB+Tl95tcX8/jTev+EWJUIe24+Q1fq4alqPHJqhW3BZrVAQahCO8 lU97VFibutqea4xSFuXwl8skDACIKX4Rg7X72bCsYiTS0Y3d8Jm1NcThormu4x7rqIE1 EPbCrG8OHChZBtKb8oC32CSi+mTkVUvJhlkQA25OUFouc/ayfZyjbaI1hjZS2N5krTKI QI8IAN3Fa9nnCw/oTzAGpvBkuEs/5vTKDkgYtscbMr0rvn3W1JFmM4p8LS+6hudujb5e ZPLY+0HIBwi0rI98tNHZQF6Sa8dZLjsG1BjAa2SmSY1SWMMVUO8/gvwZ4orOIKhGbMF8 /3cg== X-Gm-Message-State: AOAM531EW13cTGXbJIbZLNSpxmA5TLGdqndatJYgwjOmk4j1PEl3E4e5 DAOPO0o5eUm5YSiik3tkRFc= X-Received: by 2002:a17:902:6f16:b0:138:a3fa:1b7 with SMTP id w22-20020a1709026f1600b00138a3fa01b7mr3393031plk.60.1630107341560; Fri, 27 Aug 2021 16:35:41 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id z3sm6973962pjn.43.2021.08.27.16.35.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Aug 2021 16:35:40 -0700 (PDT) Sender: Tejun Heo Date: Fri, 27 Aug 2021 13:35:39 -1000 From: Tejun Heo To: Waiman Long Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti , Michal =?iso-8859-1?Q?Koutn=FD?= Subject: Re: [PATCH v7 5/6] cgroup/cpuset: Update description of cpuset.cpus.partition in cgroup-v2.rst Message-ID: References: <20210825213750.6933-1-longman@redhat.com> <20210825213750.6933-6-longman@redhat.com> <32e27fcc-32f1-b26c-ae91-9e03f7e433af@redhat.com> <392c3724-f583-c7fc-cfa1-a3f1665114c9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <392c3724-f583-c7fc-cfa1-a3f1665114c9@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Aug 27, 2021 at 06:50:10PM -0400, Waiman Long wrote: > The cpu exclusivity rule is due to the setting of CPU_EXCLUSIVE bit. This is > a pre-existing condition unless you want to change how the > cpuset.cpu_exclusive works. > > So the new rules will be: > > 1) The "cpuset.cpus" is not empty and the list of CPUs are exclusive. Empty cpu list can be considered an exclusive one. > 2) The parent cgroup is a partition root (can be an invalid one). Does this mean a partition parent can't stop being a partition if one or more of its children become partitions? If so, it violates the rule that a descendant shouldn't be able to restrict what its ancestors can do. > 3) The "cpuset.cpus" is a subset of the parent's cpuset.cpus.allowed. Why not just go by effective? This would mean that a parent can't withdraw CPUs from its allowed set once descendants are configured. Restrictions like this are fine when the entire hierarchy is configured by a single entity but become awkward when configurations are multi-tiered, automated and dynamic. > 4) No child cgroup with cpuset enabled. idk, maybe? I'm having a hard time seeing the point in adding these restrictions when the state transitions are asynchronous anyway. Would it help if we try to separate what's absoluately and technically necessary and what seems reasonable or high bar and try to justify why each of the latter should be added? Thanks. -- tejun