Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp857486rwe; Fri, 14 Apr 2023 10:33:48 -0700 (PDT) X-Google-Smtp-Source: AKy350b9eqDoxfdHAhcL5zbZCcCEzeqxlylNhqmRWsuaS7Bf9MeE0EQWqaPpGGEWIHAZnQkdPXLG X-Received: by 2002:a17:90a:5101:b0:23a:8f25:7fd6 with SMTP id t1-20020a17090a510100b0023a8f257fd6mr6642537pjh.29.1681493627837; Fri, 14 Apr 2023 10:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681493627; cv=none; d=google.com; s=arc-20160816; b=TiJCttMF+/Oux6yGHqHsLewChqj/J6h0oHUb1M+IJ9hFRl9ejYNoFozNWehV7Jey95 q2mW6bbcehAP26hP2M3v7aMvSuzoSMfnKRmDT6afSlMPGx9F1Iel8YC9noj5CbKRLNoU 3IfN5HmWdaGZKQjrpWz0g8r7dZPXVPZQGVHpWEeGYrOet3YjJf0JOzHCeA12rz2CMhx9 qBse3c4jDyNCfCtLWw/qs0t9Rq3aW6CLQXHixVt4lr4SaJcgyU4RxihIIegK+HqUUkd5 fPbwBXlv2KXfmsDm9mu6qC8VymL/TRdfBnAcp5TNVuacnHPJ6S+P5lMy2EJWMS8kNp4q zlEw== 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=MTd7Dy+8soUmatOtiinPtWUDXXQuQ2CyGor29K2QHkA=; b=HMJKsgF87gkB8Z0gXP4vsiHE+G5QQA/TAX9ZFphhuSGi9tewEJaSAFpiWqAndrSH+G /a9a5UT5uj2X5A192JqjsZS+v+AtWY+G2+Rf9A8Uf79tdcPbRI1PWx/+xVlzOpDiQf8z S1Y9PFHdpVYqETzbnnLeazRS4+CjUVz7xuYA+4UTjerTKpDDLWPLd+dqei2FGD3QfhYj 2CxzsuvudI9lAqoY8HYkeBgAf7BrSBUVcBFw6u4peNvbf9AAdX2dr+TQrEj9PYtII1X9 ofiKjFqZS1uOpGEAD+nJGKCEP9d5HRiIIafHvPTyxuO43f9dfxcgmsX9GfaOtw3eHdwz x86Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Cnjt3xGi; 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 r1-20020a17090aad0100b0023747b24923si4773355pjq.53.2023.04.14.10.33.35; Fri, 14 Apr 2023 10:33:47 -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=Cnjt3xGi; 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 S229965AbjDNRak (ORCPT + 99 others); Fri, 14 Apr 2023 13:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbjDNRaY (ORCPT ); Fri, 14 Apr 2023 13:30:24 -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 318B88A5A for ; Fri, 14 Apr 2023 10:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681493371; 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=MTd7Dy+8soUmatOtiinPtWUDXXQuQ2CyGor29K2QHkA=; b=Cnjt3xGimUsOlJFtWS1O0dmcYIwkm2plNwztvRERnvg9wTQCcjFYqv/RKBLrGnonbv5Xby 4Swlkb1oqIYo30hp2jKLGfZTSFnYBgGUkPV58EoCosjJUJion631yKDZjEeJKkPFD5+6oW F06N2Nmx20YEMDl33b1D4mG44VOcTWg= 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-461-CSoVfliCPOm3dUjnmkUAqA-1; Fri, 14 Apr 2023 13:29:26 -0400 X-MC-Unique: CSoVfliCPOm3dUjnmkUAqA-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 54124280A341; Fri, 14 Apr 2023 17:29:26 +0000 (UTC) Received: from [10.22.18.140] (unknown [10.22.18.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9CD640C6E70; Fri, 14 Apr 2023 17:29:25 +0000 (UTC) Message-ID: Date: Fri, 14 Apr 2023 13:29:25 -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: <1ce6a073-e573-0c32-c3d8-f67f3d389a28@redhat.com> <1b8d9128-d076-7d37-767d-11d6af314662@redhat.com> <9862da55-5f41-24c3-f3bb-4045ccf24b2e@redhat.com> <226cb2da-e800-6531-4e57-cbf991022477@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.2 X-Spam-Status: No, score=-4.4 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, 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 4/14/23 12:54, Tejun Heo wrote: > On Thu, Apr 13, 2023 at 09:22:19PM -0400, Waiman Long wrote: >> I now have a slightly different idea of how to do that. We already have an >> internal cpumask for partitioning - subparts_cpus. I am thinking about >> exposing it as cpuset.cpus.reserve. The current way of creating >> subpartitions will be called automatic reservation and require a direct >> parent/child partition relationship. But as soon as a user write anything to >> it, it will break automatic reservation and require manual reservation going >> forward. >> >> In that way, we can keep the old behavior, but also support new use cases. I >> am going to work on that. > I'm not sure I fully understand the proposed behavior but it does sound more > quirky. The idea is to use the existing subparts_cpus for cpu reservation instead of adding a new cpumask for that purpose. The current way of partition creation does cpus reservation (setting subparts_cpus) automatically with the constraint that the parent of a partition must be a partition root itself. One way to relax this constraint is to allow a new manual reservation mode where users can set reserve cpus manually and distribute them down the hierarchy before activating a partition to use those cpus. Now the question is how to enable this new manual reservation mode. One way to do it is to enable it whenever the new cpuset.cpus.reserve file is modified. Alternatively, we may enable it by a cgroupfs mount option or a boot command line option. Hope this can clarify your confusion. Cheers, Longman