Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35915733rwd; Mon, 10 Jul 2023 14:56:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4vIKfoAzLfoetLXsdnB+4wVF5z5A/Jcb3WC0iGJ21z3l6VLS0ilmTrTZApMY942ZeNaNG X-Received: by 2002:a17:906:7a52:b0:993:d700:8a46 with SMTP id i18-20020a1709067a5200b00993d7008a46mr11313725ejo.16.1689026214517; Mon, 10 Jul 2023 14:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689026214; cv=none; d=google.com; s=arc-20160816; b=hh//bQl49mvSlCmbAIa9GxpHR86fP7UZoDf7LU02ytzx8wRXcTfnjUWyDmHfNVhSl9 o1E4ousdgYMNastXYkUQRvt8rgxNyyRl1gPsGbJH44mWFRZvXXiyoZQeWcTYzLxOPENm w0qyNNAdsYjCPmHXneA4xqcmt1hHxy5jAOniL+JSrp23gM3Z63Zx5CVfWkAfhXCJ72AF q3O8/R5cq4BkGzG4Oma7ZZOLER6y9Rj2wa0Pj+Qub0yuhZcQANOJD1+MSOf0Ar0yW4v8 9JHGMQ22Ypj5w2/FP/CGe5HVmfvEXRT4DU527Mh2p0mkIbO13HKJbx57kiztOOhSsWbg 8D8g== 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=EuY7YWF+Kh1UKEuVmzs1ImB1X2StsWyaHb8EJ2edbSU=; fh=9pD2+2ICCrYwNj41slMBNPIGySuJuSxDdTDRXBzu2p8=; b=FERTNc//eezBt+jXeSMYsIPGvaf2SHQX42K+CEgxWY8azFIzQsBQFYrbR7BfC3zTWo 5gSfoO/uhGZA60NDseMsmsIkxjF4XpFHdEQs43Z6CQVLepbvmZJ2AtOxsB9tbaU07cUy PZqBVZNAjmhuDc+zhF0JHDbX7sUvZsHzsJrIENI9CryVMBWpo+o4CX+ghXHXmAM7F7Pm SLrxb1NTnlmKwbOSbokRP245h50YJbSabjxI0/Wl1YvfVDLFA/yZnFoYWuPF9UBMCAgx cgIdJ729ZMdNHE3Plwc8dfR1vXKD7+Qb9pwgR1Jt5gLAbOVMJZbp5RkyLPpXO845kKSv fbbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=b3unhp+1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a170906c21300b00992b17e93f1si547856ejz.47.2023.07.10.14.56.30; Mon, 10 Jul 2023 14:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=b3unhp+1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231357AbjGJVaQ (ORCPT + 99 others); Mon, 10 Jul 2023 17:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjGJVaP (ORCPT ); Mon, 10 Jul 2023 17:30:15 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC6FDE; Mon, 10 Jul 2023 14:30:14 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-666ecf9a0ceso2565446b3a.2; Mon, 10 Jul 2023 14:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689024614; x=1691616614; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=EuY7YWF+Kh1UKEuVmzs1ImB1X2StsWyaHb8EJ2edbSU=; b=b3unhp+1fEq1qyFirSnAUKqpNzuFjhYYSuty9IalbkDlKvc7XoIUkCzsQX53+qqMso NwXyfA1g9Xij5ua20EZYWee/MO0shqL3wMkRZAmF3/qpeczM4vPXnasiWO7nmM4zPbpr 0hXqvIK9ovnj6bBskOJYe09WNUA7ZqVrWMXhlSpXhpAhs0U/uUmVhjPB3K5UT9VZvAox 7vtXOPRSOOHV8Ak+7M8NJNupp2LhUxzIWpQk6ViFHF13n0NiADBRyjZyT1Y1TJstujDg qypPLEV3FJqR1rVskyvFRj9wLqdVoPTFtB/kSQLbNmTPRoK8nmjff2VZGWr2tnc4YlPm 3/2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689024614; x=1691616614; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EuY7YWF+Kh1UKEuVmzs1ImB1X2StsWyaHb8EJ2edbSU=; b=RmspFaZmcZcgZ1PyGHc4kwrbbfrv/8VXziY8AVnNbahfyo8x8pdl3F21VaG3fcox4O OZQpkXl+mvCBfCwlMAlPu4qszUeMnsTU2z6ZZDt31pBGt35tW3nUQqx/k0cFy9A6W2mv NAxM/wUaS+xFbFyFq+sXLndt39ITM4+vjBGzUnge8gVoMCwv66LB83vf5SxOZEujfLYH pkmh5UshbDMtKHo0x5rwSu5c2Lml4ZalooMDRxxVisn3h+oGwaAqp4da/fNlkEc8HDUl 9MPmX+W4X3K0PuD5CGiv4WZ2DRVa2KoTOCCTuLdE0gFTZUnjxOdFk9/4UHnCYPbEhcaO tarw== X-Gm-Message-State: ABy/qLZAOqwITqQaQUFjC1FvjTnhze3u8XnT9qC3Ntygf+KDrlCDEJpT Vl2j0QW6ef/Vw5VqyMB81phzU4ixrOVt/A== X-Received: by 2002:a05:6a00:1782:b0:666:8403:9f4 with SMTP id s2-20020a056a00178200b00666840309f4mr16380908pfg.16.1689024613985; Mon, 10 Jul 2023 14:30:13 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:e2fe]) by smtp.gmail.com with ESMTPSA id a10-20020a62bd0a000000b0067db7c32419sm266518pff.15.2023.07.10.14.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 14:30:13 -0700 (PDT) Sender: Tejun Heo Date: Mon, 10 Jul 2023 11:30:12 -1000 From: Tejun Heo To: Waiman Long Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Juri Lelli , Valentin Schneider , Frederic Weisbecker , Mrunal Patel , Ryan Phillips , Brent Rowsell , Peter Hunt , Phil Auld Subject: Re: [PATCH v4 8/9] cgroup/cpuset: Documentation update for partition Message-ID: References: <20230627143508.1576882-1-longman@redhat.com> <20230627143508.1576882-9-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230627143508.1576882-9-longman@redhat.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Jun 27, 2023 at 10:35:07AM -0400, Waiman Long wrote: ... > + There are two types of partitions - local and remote. A local > + partition is one whose parent cgroup is also a valid partition > + root. A remote partition is one whose parent cgroup is not a > + valid partition root itself. Writing to "cpuset.cpus.exclusive" > + is not mandatory for the creation of a local partition as its > + "cpuset.cpus.exclusive" file will be filled in automatically if > + it is not set. The automaticaly set value will be based on its > + "cpuset.cpus" value. Writing the proper "cpuset.cpus.exclusive" > + values down the cgroup hierarchy is mandatory for the creation > + of a remote partition. Wouldn't a partition root's cpus.exclusive always contain all of the CPUs in its cpus? Would it make sense for cpus.exclusive to be different from .cpus? Thanks. -- tejun