Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp776372iog; Mon, 13 Jun 2022 12:43:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1shqR42QDZsYxCzzw2IlYR/GNGft2tv75ZJbxWu8gqsHN64IRwT0k1gjTlGWRtezAnmeQ6Z X-Received: by 2002:a17:903:1c3:b0:166:303e:124a with SMTP id e3-20020a17090301c300b00166303e124amr616292plh.7.1655149416711; Mon, 13 Jun 2022 12:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655149416; cv=none; d=google.com; s=arc-20160816; b=zHAUYfC6FYVr7hr2BEGNNoEdPJKi3fZjAJHEOQQD7c/up6tBuplTT5WDMuNYIAT3LE AhPu4+dJ0GoA6OcJzUJyKCHQjxNVDJERQC4ynhzUtOVKNBQE5a0F6NEH5QHcJDF5FlO4 kXk+rtRjdtmWf4zBI0jAD+/91C2i2J3PaYvrXnTHtMf3n5zLDkaX/ya9cS8wVGsmpx6T hGkhn9RjN7BwoAwPkBWIj6Kua4G5WnereLMhvPicnO/vNIvBaTBXan1oz/ZbOkcjNw3m EOq+wfEjr+4/izKYoiPrCldpqOpFAPXpo2ad+CZOkbr9fOfCv0O8+UGd+7cPt85JXFoB I+EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=s7hhCYT7OGqCx5nH+qXS1ao3TYt75AzmKiJLPQv1MlY=; b=Eve9fpitAzX42kRdVDQqRdLc38LUZt9+khUMJi51fWW2yr4YC6LSUM3ZhhZH7iWZdB t2JY8CuYbD0h6/LLo4GzwZx48RpfksGUw/Lv9LzTR9pfbHuVmifXH3p5R3zb1sChupfS NQcATp27YAz7gVynKWiLWgYIAq6ldb0YrLHAW8+Gfvq7mq8IFFMz9H6X7jEAWm/yeJDG MREH8KFL8zaCQumONfx6NHyuXST2Uuq/BIYM7L/CF9K9DzrJmtm4/8QJnD5gfV3ul6tZ sCqeUdj0zpaLc52Sd8Cvr7QoPqRiAu82OKDViG/8QUUCzE2XgFwgi/jfGT1G34LXBU7Z ptXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JCNYakse; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq7-20020a17090b380700b001e073312c32si13212276pjb.8.2022.06.13.12.43.24; Mon, 13 Jun 2022 12:43:36 -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=@redhat.com header.s=mimecast20190719 header.b=JCNYakse; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245090AbiFMTLL (ORCPT + 99 others); Mon, 13 Jun 2022 15:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349335AbiFMTIq (ORCPT ); Mon, 13 Jun 2022 15:08:46 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 52AD450056 for ; Mon, 13 Jun 2022 10:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655139986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s7hhCYT7OGqCx5nH+qXS1ao3TYt75AzmKiJLPQv1MlY=; b=JCNYakseNPAMc4eW8hchL1OFesd1TBNMpPoMv7uvihz0fkB1M9F7E4jLhiLlEeK/CG6LdC RtE2a0wE2PanIIMwrC82ha3PF2aUIch2DgL6Wx7ft/W1XE53EnLC69nv/3u2vrV6ps2Ubl klcF5rd/yCUcSa41yHAq86Q+nURLRbE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-29-u9ZkP3_qMFWE3PS8XzGi6A-1; Mon, 13 Jun 2022 13:06:22 -0400 X-MC-Unique: u9ZkP3_qMFWE3PS8XzGi6A-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3825D801756; Mon, 13 Jun 2022 17:06:21 +0000 (UTC) Received: from [10.18.17.215] (dhcp-17-215.bos.redhat.com [10.18.17.215]) by smtp.corp.redhat.com (Postfix) with ESMTP id 68A6F2026D64; Mon, 13 Jun 2022 17:06:20 +0000 (UTC) Message-ID: Date: Mon, 13 Jun 2022 13:06:20 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v11 7/8] cgroup/cpuset: Update description of cpuset.cpus.partition in cgroup-v2.rst Content-Language: en-US From: Waiman Long To: Tejun Heo 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 , =?UTF-8?Q?Michal_Koutn=c3=bd?= References: <20220510153413.400020-1-longman@redhat.com> <20220510153413.400020-8-longman@redhat.com> <404171dc-0da3-21f2-5003-9718f875e967@redhat.com> <8d7ddb5a-0d0b-3f2e-e049-900360e95fc6@redhat.com> In-Reply-To: <8d7ddb5a-0d0b-3f2e-e049-900360e95fc6@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 6/13/22 09:18, Waiman Long wrote: > On 6/12/22 23:12, Tejun Heo wrote: >> Hello, >> >> On Sun, Jun 12, 2022 at 11:02:38PM -0400, Waiman Long wrote: >>> That is the behavior enforced by setting the CPU_EXCLUSIVE bit in >>> cgroup v1. >>> I haven't explicitly change it to make it different in cgroup v2. >>> The major >>> reason is that I don't want change to one cpuset to affect a sibling >>> partition as it may make the code more complicate to validate if a >>> partition >>> is valid. >> If at all possible, I'd really like to avoid situations where a >> parent can't >> withdraw resources due to something that a descendant does. > > No, it doesn't affect parent at all. It just limit whats the siblings > can do due to their mutual constraint. If this is what the confusion > is about, I will try to reword the doc text. I am planning to make the following change to the documentation patch. Please let me know if that can clarify the confusion, if any. Thanks, Longman diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guid> index 9184a09e0fc9..9cbfa25dab97 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -2176,7 +2175,8 @@ Cpuset Interface Files         For a valid partition root or an invalid partition root with         the exclusivity rule enabled, changes made to "cpuset.cpus" -       that violate the exclusivity rule will not be allowed. +       that violate the exclusivity rule with its siblings will not +       be allowed.         A valid non-root parent partition may distribute out all its CPUs         to its child partitions when there is no task associated with it.