Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1471100rwl; Wed, 12 Apr 2023 13:26:46 -0700 (PDT) X-Google-Smtp-Source: AKy350aeXsAq2bDmV6x8+dl2bDOKCrVR4dEh7G19T1rZAnW6HvyXI8nZSsi/tzb+kEe9PD8N1yHq X-Received: by 2002:a05:6a20:8929:b0:eb:6f3e:f70f with SMTP id i41-20020a056a20892900b000eb6f3ef70fmr4815470pzg.34.1681331206703; Wed, 12 Apr 2023 13:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681331206; cv=none; d=google.com; s=arc-20160816; b=ra88ok8JUYPEaSGjqXOeuJrdyBQatlxsDDb74PPPHzOd8eyyF0w7/Gr+JlzjtuUQHR 8MtY7yQZr2hClioyBgwp8vko3nDxdLPvXhaQ8Lps5O9tmHItRUxEX2RYbkdixlTVGaV3 xek97fITfOQf8jtrmXUeUw2AJQXN1w440jJAFZ1QRXK4hVU4rHGxJ8rQ8NO1cd3P+tCS 836deLjkkSq5Z8RHA6TsxOSnhI7MkKlKsF+539aAEbt1XqXCsRn02rlmziA/UrpHi3ov KSzm33cl7dc/MFFlKJ7kPqfBOb1/4LzVbYSb2FcOs0GQDjdbaV3wyTbOdbPtjgIhwe4G r3bQ== 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:sender:dkim-signature; bh=yu2Dt9jJPuiCFFL8ILGJGVl5zgqQrKcJL03w0OHhJOI=; b=JWcr07AKqDSn/PnPjm/m13sq7lsoTvVe71uKI0SHlkuIIl72z+ck2ray/oH8qrMdaI GQrx287s844armY1cHVuYzFukfZijMVmcOWsCrW2rW26JUCFn4yxj0NpHgrcHY+0arfH 9GPkZHTWa05fUcUi7Y894IAtr8T+9fRd8hR3hOpO2aWPAYaJtY0n4Y6BNe+bChTyfGws CqtGdnG2ayMF6CwQtVTf0d41GUpSvA/i31Vb5VBX1hWtSpvJNFKF9L5B6iFPWUsg9Bkg DkhHwG1mQ8Z7giiPGGBnDl6fLEr9lVv2srZ7mefv05mPoedfc4kHXN4f59K6E0Tlnpi9 EA9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Ci8M+KzE; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020aa79511000000b00594252e8a11si7363015pfp.170.2023.04.12.13.26.34; Wed, 12 Apr 2023 13:26:46 -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=@gmail.com header.s=20221208 header.b=Ci8M+KzE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230126AbjDLUWb (ORCPT + 99 others); Wed, 12 Apr 2023 16:22:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbjDLUW3 (ORCPT ); Wed, 12 Apr 2023 16:22:29 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2A736EBD; Wed, 12 Apr 2023 13:22:25 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-246eebbde1cso345957a91.3; Wed, 12 Apr 2023 13:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681330945; x=1683922945; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=yu2Dt9jJPuiCFFL8ILGJGVl5zgqQrKcJL03w0OHhJOI=; b=Ci8M+KzEkrHqeQxO/tndGcOSzpGiOY1qY8jnZMCv3LEbIRy1ZBZPfioPbFKwOSXfcv TF2Q6ICj/3ro+Q+D6DA1OPKj4KFoeAoUDfXnbdmYn6LKKyzYt1tipZlEZkxLysCiteM7 nGdQPOKFrpEKxt/bL4qceuGyRY1HTfJ5uLQRANULDdPl9MyiAuDKdDHGGgIKkiyhhnxf GX0szzqLngq3xUQA90p+LgPLA1BP3pPAE8OKJADsoBs0xIM4OD+ll/C7Xl5bWBvsKba9 J8FzFgvko4RtmNbuv5DLadsWtravAIywPfnuhYkzP6hTkyzsrJvcyEixc5SE3zDhpnqJ MJYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681330945; x=1683922945; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yu2Dt9jJPuiCFFL8ILGJGVl5zgqQrKcJL03w0OHhJOI=; b=fIfAjN9kkER1fMI2qUNr0ON+5M/tNxJ2alp8MqdD1M0rvsMj91M2GHkMTnudPKe32s AtIe+52xrJlwE/ywJuB9D6NPKO6CjC6HBV//zCCgGFrjiRawySTz9uMfjCqUrgJkjs9j lxStjXzaJNsMw5Ijl71eV1FDV4vgqjRWDKv4Fon740EKxHRZHZ/Lqspjm/JNcBXR4/Zj 61Sqb38COnVlpEyNqgTwOEIEDUOa7UqMtVJm1PK1ESXryx+VEn7/7omPpbrXeUXPOiEP iDA1dmLqm65dl25C0A7g2m/brgibqLjgUhNVJ+AmwN2bwk0O6uDbKVP8pyW9qHBIJFQ3 MGOA== X-Gm-Message-State: AAQBX9cn4fjjRJ1Cykf5MAz3YWM92Q7icc/cuDAGCliqmup2r6OZacTn v2rJQScn0En1MSg3P8s8ex4= X-Received: by 2002:a05:6a00:1387:b0:632:3ff:b3d7 with SMTP id t7-20020a056a00138700b0063203ffb3d7mr198902pfg.12.1681330945295; Wed, 12 Apr 2023 13:22:25 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id u20-20020aa78494000000b005a8bf239f5csm5776444pfn.193.2023.04.12.13.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 13:22:24 -0700 (PDT) Sender: Tejun Heo Date: Wed, 12 Apr 2023 10:22:23 -1000 From: Tejun Heo To: Waiman Long 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 Subject: Re: [RFC PATCH 0/5] cgroup/cpuset: A new "isolcpus" paritition Message-ID: References: <20230412153758.3088111-1-longman@redhat.com> <1ce6a073-e573-0c32-c3d8-f67f3d389a28@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1ce6a073-e573-0c32-c3d8-f67f3d389a28@redhat.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hello, Waiman. On Wed, Apr 12, 2023 at 03:52:36PM -0400, Waiman Long wrote: > There is still a distribution hierarchy as the list of isolation CPUs have > to be distributed down to the target cgroup through the hierarchy. For > example, > > cgroup root > ? +- isolcpus? (cpus 8,9; isolcpus) > ? +- user.slice (cpus 1-9; ecpus 1-7; member) > ??? +- user-x.slice (cpus 8,9; ecpus 8,9; isolated) > +- user-y.slice (cpus 1,2; ecpus 1,2; member) > > OTOH, I do agree that this can be somewhat hacky. That is why I post it as a > RFC to solicit feedback. Wouldn't it be possible to make it hierarchical by adding another cpumask to cpuset which lists the cpus which are allowed in the hierarchy but not used unless claimed by an isolated domain? Thanks. -- tejun