Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp43414rwr; Tue, 2 May 2023 15:36:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ636baGBkib6cB7HM9HsvSBnRszVmKgqzA1EOxihxp20DVpxeajE606oQAl0HMDymq2QJzT X-Received: by 2002:a17:90a:ab88:b0:246:8f9b:d28e with SMTP id n8-20020a17090aab8800b002468f9bd28emr19367249pjq.18.1683067003423; Tue, 02 May 2023 15:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683067003; cv=none; d=google.com; s=arc-20160816; b=XklasQCAC6+TVXPnyhi8w01avmrGkUxh6JZj97PvIcpElYaRclNmJbukW5ZsI/7AQr pYpQMJadcrvO7e3Fr4azAWAp2/Negouub3JsmKN6JF+zHb8hhmQkFzermAMY7ANdqmhp 4lfbvuBP2h9mBUdfsisw6u1T5fP+zns8bOygvGjHDZyJjUO75dU/saUe9ifeAl7teFYB 2J68tWaErgL8tYJf2K/9MymaN31Gc2XC1RlZAtgG7t96htH/AflA92z1ycRGv5BoSbSV vCRSkhOH3Z6s2OaT5G1MMVkvq3SFtJv9zeTvogUBnaPHmF082jmVLDpqmOVTt/dxe8LA REPw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VYMMl6QukjJ+AWKIxzwYKmP/x77nkL2kqwU3yC0/IAE=; b=IXQxYwKA7D0pOyRwYPOIppAVXHw6IpWZN1zZOil6VhcdZ+j+j97K0Y3v+jU2qsloSY B8yEuO0slzA07fT1TQZ2Oj4A7c2/PTjDKyNdXSK3wit49Hads2zubSnhlASBx8ciRg3U s4Ys1OmXPEpzUlXwhHb/ozRMNd4mEThmAmFV/w/3IUtE6QdCm5SpMGeg5RzNn18KqIpV 5U8IoRFta1abwRNIzkAxl30Nhe4libaXLocBfGLsjsT1GxcgNMF7IJVila0CjO4s5z8L 2I0RMsOCt3yitTHuSq9Mhodk9AmTkLXoIwanrfRCbgouIX2jiCWgiP9wVecQ7s/bumM/ oMlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="twfR7/D1"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw5-20020a17090b180500b002496c7b0495si13326888pjb.128.2023.05.02.15.36.29; Tue, 02 May 2023 15:36:43 -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=@suse.com header.s=susede1 header.b="twfR7/D1"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229792AbjEBW1a (ORCPT + 99 others); Tue, 2 May 2023 18:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjEBW13 (ORCPT ); Tue, 2 May 2023 18:27:29 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C5E010E7; Tue, 2 May 2023 15:27:27 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 58A8B21F42; Tue, 2 May 2023 22:27:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1683066446; h=from:from:reply-to: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=VYMMl6QukjJ+AWKIxzwYKmP/x77nkL2kqwU3yC0/IAE=; b=twfR7/D1Mak2ce6QwCqeTdus/uNI/7WRnQBvtx+NzXxn0Fj5eKkbNVZAK7QhBvYLti8zL7 AiNmE4199XoBMBtHzSn9dcoznncO9bmqgACe9SnzsjqwNTuCORcM6MUay4wJbyzTFM6rvZ bqUL4+t/6cqzpUiWOZiSFZkM3NHvDmY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0DB9C134FB; Tue, 2 May 2023 22:27:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id IwtUAk6OUWTwYgAAMHmgww (envelope-from ); Tue, 02 May 2023 22:27:26 +0000 Date: Wed, 3 May 2023 00:27:24 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Waiman Long Cc: Tejun Heo , 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 Subject: Re: [RFC PATCH 0/5] cgroup/cpuset: A new "isolcpus" paritition Message-ID: References: <9862da55-5f41-24c3-f3bb-4045ccf24b2e@redhat.com> <226cb2da-e800-6531-4e57-cbf991022477@redhat.com> <60ec12dc-943c-b8f0-8b6f-97c5d332144c@redhat.com> <46d26abf-a725-b924-47fa-4419b20bbc02@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, May 02, 2023 at 05:26:17PM -0400, Waiman Long = wrote: > In the new scheme, the available cpus are still directly passed down to a > descendant cgroup. However, isolated CPUs (or more generally CPUs dedicat= ed > to a partition) have to be exclusive. So what the cpuset.cpus.reserve does > is to identify those exclusive CPUs that can be excluded from the > effective_cpus of the parent cgroups before they are claimed by a child > partition. Currently this is done automatically when a child partition is > created off a parent partition root. The new scheme will break it into 2 > separate steps without the requirement that the parent of a partition has= to > be a partition root itself. new scheme 1st step: echo C >p/cpuset.cpus.reserve # p/cpuset.cpus.effective =3D=3D A-C (1) 2nd step (claim): echo C' >p/c/cpuset.cpus # C'=E2=8A=86C echo root >p/c/cpuset.cpus.partition current scheme 1st step (configure): echo C >p/c/cpuset.cpus 2nd step (reserve & claim): echo root >p/c/cpuset.cpus.partition # p/cpuset.cpus.effective =3D=3D A-C (2) As long as p/c is unpopulated, (1) and (2) are equal situations. Why is the (different) two step procedure needed? Also the relaxation of requirement of a parent being a partition confuses me -- if the parent is not a partition, i.e. it has no exclusive ownership of CPUs but it can still "give" it to children -- is child partition meant to be exclusive? (IOW can parent siblings reserve some same CPUs?) Thanks, Michal