Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1708158rwl; Wed, 12 Apr 2023 17:45:06 -0700 (PDT) X-Google-Smtp-Source: AKy350YvMw9QM7HxMawXQHw76AjSFbjKwiRI0rW4jLZ0AR9BAFvOreM8L0fll8P4a4Gq63PU7tZn X-Received: by 2002:a17:906:faca:b0:8b1:3483:e3d5 with SMTP id lu10-20020a170906faca00b008b13483e3d5mr771032ejb.48.1681346706174; Wed, 12 Apr 2023 17:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681346706; cv=none; d=google.com; s=arc-20160816; b=gwIiAjKVA7tUexJ0uuDNjXCHSIjH/Tj7wPVI92AUNvNXjUvomXEkWgb+D7u79uaGsl M2YaUeLlG7gfkzo9r6lA5NcnPUCEAj+2rixw0gmSXg7KjtVdIwyBJvs3BTq+9u6LqtBi g/+QxcLDIIgt4wBJi7rJaoWFeAPO23cxm1DIMHrzpebaNVIIE4Q4RH3k9aBssKSKdYYT bEVcMaET1YJWkD8M9WPWDNznWH30XSeYjc2mqjvxg7a4VyUx7994QV+DN0ocoDAp1bDW SB1GIPygL6+70AKUYcIM7hFOckT6pZHzSxDkR7i0xydcT0RzS1cq3Xv4rcLiRm+Gm+sL eOGA== 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=haXTThtMgpsseSV6p+uwEaprdsyUVtg4Cg56AUYX6Mw=; b=I2Om9zqjC7/tHO6sEBiR0hkKOc7D4kHs+NoBmcVvdOCQ7s/dJDtX4KKS0ezHMJwGCD C7dI2PQDI+3XkKYCNyh+/IqPW/kmbLPqUfDh204psakIf8K0R8FVunAbfloS2D9ni5KL 6QdfNkczZGFBjW31KkJa5Mk8OtmkO9oA0J9p6YJPsa2VhSSPl/xEKtqu76p5b4QA0nty 9Z+7x2uRVkTpKCiqa3kJg9tG7uKvHNYP3Of5xslLSyElfeaQjCY9UzuhRdZvvD4b4Vq6 9HgFloLCOltV3Xavo1cgAqeXgCw2GToLv36ztiumxtWNQQO8i6XqquigcrXrx1VenlHf 1XIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=atY2hVPc; 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 ay23-20020a170907901700b00947b5f163ecsi365138ejc.246.2023.04.12.17.44.39; Wed, 12 Apr 2023 17:45:06 -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=atY2hVPc; 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 S229799AbjDMA04 (ORCPT + 99 others); Wed, 12 Apr 2023 20:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjDMA0y (ORCPT ); Wed, 12 Apr 2023 20:26:54 -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 9566C449D for ; Wed, 12 Apr 2023 17:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681345565; 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=haXTThtMgpsseSV6p+uwEaprdsyUVtg4Cg56AUYX6Mw=; b=atY2hVPcYAmNrssV1TOHzKcBSBD5RX/xyhdodRoEyHsMVL+qe5ytCyE4Qk7rCdKrEmeEfB rCXEXPjnn4hE1il+To8Zm5jkDNJjbfV/rnH5yYeAgTkZVtwEN049ful64Xw6qNK9eZ7uJx FVXiUq7mTMLSU2vKsWzXZdBhtX6wQMA= 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-xD8WZDrPMrumTqyXbLUz9g-1; Wed, 12 Apr 2023 20:26:04 -0400 X-MC-Unique: xD8WZDrPMrumTqyXbLUz9g-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 E8CF9185A78B; Thu, 13 Apr 2023 00:26:03 +0000 (UTC) Received: from [10.22.32.168] (unknown [10.22.32.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D7DE40C6E70; Thu, 13 Apr 2023 00:26:03 +0000 (UTC) Message-ID: Date: Wed, 12 Apr 2023 20:26:03 -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=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 4/12/23 20:03, Tejun Heo wrote: > Hello, > > On Wed, Apr 12, 2023 at 04:33:29PM -0400, Waiman Long wrote: >> I think we can. You mean having a new "cpuset.cpus.isolated" cgroupfs file. >> So there will be one in the root cgroup that defines all the isolated CPUs >> one can have. It is then distributed down the hierarchy and can be claimed >> only if a cgroup becomes an "isolated" partition. There will be a slight > Yeah, that seems a lot more congruent with the typical pattern. > >> change in the semantics of an "isolated" partition, but I doubt there will >> be much users out there. > I haven't thought through it too hard but what prevents staying compatible > with the current behavior? It is possible to stay compatible with existing behavior. It is just that a break from existing behavior will make the solution more clean. So the new behavior will be:   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? Cheers, Longman