Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1741365rwl; Wed, 12 Apr 2023 18:19:39 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIHaquAbnSTbk1H4KlOBx5yHAMDOboDP4cdAJLv75Y3nNjThyQ9J5OPIbaawvn70zr3fl3 X-Received: by 2002:a17:90a:f3cc:b0:23b:4388:7d8a with SMTP id ha12-20020a17090af3cc00b0023b43887d8amr70904pjb.21.1681348779626; Wed, 12 Apr 2023 18:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681348779; cv=none; d=google.com; s=arc-20160816; b=jrLOKBDpb2gV+kFEygiQi8AnnKqOvoHYVwjo54oKJD3NLMLZfumW33lUHRHiJVF3dN bFqegpDipsm9eLYiTb7mZABa4i2YaGz3uhK0/iu5BHnPS86DWRwHY/nrIM1JaR4CmjC4 +x1wCPc9MI7iYIldp/H9vGbx69TXuwf3BY4jhoLepGH8mQij9yPIGTU9KzgksMiLpGob KkMpVz7Ybb1fwo54cie1RmkA4ukGZCdyTPgkeX96kpP1OGqOgqnTksBBAjcO7BsG0Y0o RTrP3lRTB6Z1IfJy5gZ38ugLPJK2lbFSVnmyo8wt46p/UugyNYN37cph3lt151IAprXB gevw== 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=hRJHLQRX436psVY4dEg5oBAGIW2fFsn/wgOTxNFdgEo=; b=QbyMce7enIf7wmm9Vykckfps3LUFTmJTDgy+V2c3dXwlxnBv7Q0BvBwMOyQuJuQCcZ mIiBFE23spE2wM9HagUL1LxZzEarnynnIPeJKdIaNBTojyFGRadJ7ah5SWK4WyhuYktf l3H4kkeFK/uWjsBriGXHidFcURg0rnxvSfWUZPHdZWXKsKRk1/8s0mX7GC5E0xhmEQyQ xMgpvPpCgQYGG5ezwX3wGaS+ZcTT+TVOIIpkEJrTSkJT9q5uaAI92LUNRgTGJEopxsrO eup6Eu/rD46BcPy4MYR0gj+hdgHDja62cWoAa5P4HDKBUCgu+uDKM9OQA7/ehNVeVcBm mqSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NgRsBlDx; 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 z9-20020a170903018900b0019c14335fc0si698733plg.70.2023.04.12.18.19.28; Wed, 12 Apr 2023 18:19:39 -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=NgRsBlDx; 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 S229671AbjDMA4v (ORCPT + 99 others); Wed, 12 Apr 2023 20:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjDMA4u (ORCPT ); Wed, 12 Apr 2023 20:56:50 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D3544B6 for ; Wed, 12 Apr 2023 17:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681347360; 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=hRJHLQRX436psVY4dEg5oBAGIW2fFsn/wgOTxNFdgEo=; b=NgRsBlDxw6tHXbbdP5ueghd1h7Ed8t62lD6HFOmt6YPDljhjkYbMRRbb7CY4a/O+/vovTY vPcbruKUG2ekiceAcHOFuVt3XMQbmofo0rgTigRa/B3oe8PdL+B8B2ffENFNUYY4YHFu7A FhkdfqmSJ9UZfOV9eocIs43XgvGq6rw= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-28-uctjjZuKPamdwzs5oK2dTg-1; Wed, 12 Apr 2023 20:55:57 -0400 X-MC-Unique: uctjjZuKPamdwzs5oK2dTg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D90471C05AED; Thu, 13 Apr 2023 00:55:56 +0000 (UTC) Received: from [10.22.32.168] (unknown [10.22.32.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D25340C6E20; Thu, 13 Apr 2023 00:55:56 +0000 (UTC) Message-ID: <1b8d9128-d076-7d37-767d-11d6af314662@redhat.com> Date: Wed, 12 Apr 2023 20:55:55 -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: [RFC PATCH 0/5] cgroup/cpuset: A new "isolcpus" paritition 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 References: <20230412153758.3088111-1-longman@redhat.com> <1ce6a073-e573-0c32-c3d8-f67f3d389a28@redhat.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-3.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_H2,SPF_HELO_NONE,SPF_NONE 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 4/12/23 20:33, Tejun Heo wrote: > Hello, > > On Wed, Apr 12, 2023 at 08:26:03PM -0400, Waiman Long wrote: >>   If the "cpuset.cpus.isolated" isn't set, the existing rules applies. If it >> is set, the new rule will be used. >> >> Does that look reasonable to you? > Sounds a bit contrived. Does it need to be something defined in the root > cgroup? Yes, because we need to take away the isolated CPUs from the effective cpus of the root cgroup. So it needs to start from the root. That is also why we have the partition rule that the parent of a partition has to be a partition root itself. With the new scheme, we don't need a special cgroup to hold the isolated CPUs. The new root cgroup file will be enough to inform the system what CPUs will have to be isolated. My current thinking is that the root's "cpuset.cpus.isolated" will start with whatever have been set in the "isolcpus" or "nohz_full" boot command line and can be extended from there but not shrank below that as there can be additional isolation attributes with those isolated CPUs. Cheers, Longman > The only thing that's needed is that a cgroup needs to claim CPUs > exclusively without using them, right? Let's say we add a new interface > file, say, cpuset.cpus.reserve which is always exclusive and can be consumed > by children whichever way they want, wouldn't that be sufficient? Then, > there would be nothing to describe in the root cgroup. > > Thanks. >