Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36078771rwd; Mon, 10 Jul 2023 17:46:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlEySqhMAzTfxKqn15uxaOtAgj5Ba0qT8Isj26aTjsGj3CkEKoeEnGjhX7Hq7rIpXOas+VWm X-Received: by 2002:a17:906:194:b0:993:d920:87ce with SMTP id 20-20020a170906019400b00993d92087cemr11255341ejb.28.1689036371824; Mon, 10 Jul 2023 17:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689036371; cv=none; d=google.com; s=arc-20160816; b=tspKXtfTAN8JCxylsJ2OW8Z80lZaixYTZP0zPXx+SFsw1gRzj9rTPw10OYPrjVcoeP jJQACgp3VjkcOBxojU+yXzFxSvOhlNJWSGeX86BbMRnc9wqH/JkuaG0Jcv7b9tNFOM+G 5ljYezIicdmPXJdIx6xAR6VJK0Bl3nqjbVQ+WyfCGr22a4M6oK+C5OVnSQUnghj+HqKp JqExS4VvX4onLdMxmFG8drU1Vr+7KVanjeTnBVWmzjsmYF8jBPxE3LLwW4LawhHX5sdS +7/ueMsvLY/VaSZI0B69RE+DF6lPRZ/AhdqCHvJ0kD0ffhQ+BVmX3qvvucrdqGyEVVkh DP0A== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3lffsLwd9raQCh04kyVM/H+XhSacCMhW6kPfQWTCBjE=; fh=oYRzRzQ337m9sNrFDN4f6gowTZYubNby5HvuxUP/+tA=; b=WrSLiGDvDzN/QJ2DRE95BIlO5SPl2ccOU1t+twh6ECwL7si/E7kFHGgAEyY7iXnxsf H0P0Bt/q82itnBCQf9JTl3ZdC11yIa8ANGLb8WUfrX1AonTGjPqyEghDZvfLGufwzgOb gUHb5Uo5xsCBSLvM+exHtB4Va3r1GaqXxURkF2Y32pEshyxRgP2/pNuItLRXViy30M88 IgmQD0M2A1HIJB1rEUMVFaxrOITyZHayn94PY/0sceSnR6Nz/AigGE2yb/9HyImgMQKR daBqun8+lGpb2d3wAgMxUsovk1+SwfSqX13iVWfprQ9bJs+N1v2Y8CUgmz8XGVzmgNDS 8Fxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QqvpdXlC; 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 z16-20020a1709064e1000b00988d4bc0913si859160eju.478.2023.07.10.17.45.48; Mon, 10 Jul 2023 17:46:11 -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=QqvpdXlC; 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 S230419AbjGKAWf (ORCPT + 99 others); Mon, 10 Jul 2023 20:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjGKAWe (ORCPT ); Mon, 10 Jul 2023 20:22:34 -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 ESMTPS id 6078A1A8 for ; Mon, 10 Jul 2023 17:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689034909; 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=3lffsLwd9raQCh04kyVM/H+XhSacCMhW6kPfQWTCBjE=; b=QqvpdXlChr2hJa9bGbDD1AfRdDnBRAPEeXjtNP1fxJXB2Pa/3RYcb5pEJqDyNkJeYnOQQ4 kJz8bW6qDSRTY7NpEr67BFDh4uo+2tyOh+lvcNjpLJaG+4tO8sUkRLjFOCrv/jI5UghS9T trPn00pJK3sMCzlYAcB4yt3BhT6PfuI= 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-523-ObH99LfENPezcnZF7mrKCg-1; Mon, 10 Jul 2023 20:21:44 -0400 X-MC-Unique: ObH99LfENPezcnZF7mrKCg-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 352AA80006E; Tue, 11 Jul 2023 00:21:44 +0000 (UTC) Received: from [10.22.18.171] (unknown [10.22.18.171]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3BC8E200B415; Tue, 11 Jul 2023 00:21:43 +0000 (UTC) Message-ID: <6d5aee58-f558-868c-76e0-0b58f8332110@redhat.com> Date: Mon, 10 Jul 2023 20:21:43 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v4 8/9] cgroup/cpuset: Documentation update for partition Content-Language: en-US To: Tejun Heo 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 References: <20230627143508.1576882-1-longman@redhat.com> <20230627143508.1576882-9-longman@redhat.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-2.2 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,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 7/10/23 17:30, Tejun Heo wrote: > 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. In auto-filled case, it should be the same as cpuset.cpus. I will clarify that in the documentation. Thanks for catching that. Cheers, Longman