Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp787465iog; Mon, 13 Jun 2022 13:00:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybKCm0Drn9EX8e4WXKYwt4fvj/LV3v99jqt9x0ZWExsMcR7LiFA9rVKIO8lRbBlDMePpVc X-Received: by 2002:a17:907:6f07:b0:715:7e23:bbb7 with SMTP id sy7-20020a1709076f0700b007157e23bbb7mr1227288ejc.462.1655150427763; Mon, 13 Jun 2022 13:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655150427; cv=none; d=google.com; s=arc-20160816; b=DlaN00DLsNIpakd8Z4hr/z5JbNXEADebHI1h1lc37DtRO06yOhgfDPG3ozwKG2vYfX 201xot4j0lc2cTJKFRz4kcy+l4dbFqt5g1IhdioDeuAsEu7AxOmVH5QPP/ZAV0p0AD6T BP0hxw4mg/ZEANj8pVyzZO6TjDVYx0+HapqHyXPIJSR359+7y+L+w6NiNP54LuXH2jYL D6Fi9axQAg8BUKrhp3Wv6yMt69+U2UCX7btI22ElmlZ0v3JDK3ZudGxfca+wQf5epjWH 4ngqyj4wGvjr8/kM1YMMR8SzZemAxmMMz3AcQm5+63AqgNk4ZbZsd3TFKsdkI73l1P1z vddw== 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=7M+A4Tkcl4j2ZEYJxnHofmbHWBP8K2O9jymdDhG9tv0=; b=oLtTCZOdHfNavoVbPDSUmJzlHn+VghyODhaionS8zZiIDpcmEF586pKILuXf8vrYg6 SzLSIovFb7qZcb+fTVXx9rPxPaM4hGouDqXc4PJFn/GJb+OqUL58q6iAutCN6NM8CEvX zFb4Po5IsAFOtImhdt2lQ7OB/Dd5Lyk2d+1GFVkLiPDjMS2XwJAmmvHPO3MNK9Dv4Fd0 X22yVeTNP5JYKmtKQS/KI2Cy0nr8A3VIzFRqa5bxlpGi7mxfg4zBRTH+cpmTvMy9YEOk nWRDF2MbApSP/jt6AwakhkuKWqVXn1Q8PIdUG2osFw9Qy5FUBSTALI9TCt2mwHDAAKvc N5vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SfbzRvan; 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 r13-20020a05640251cd00b0042dfb99b7fesi10397222edd.34.2022.06.13.13.00.00; Mon, 13 Jun 2022 13:00:27 -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=20210112 header.b=SfbzRvan; 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 S1349115AbiFMTVp (ORCPT + 99 others); Mon, 13 Jun 2022 15:21:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349089AbiFMTVS (ORCPT ); Mon, 13 Jun 2022 15:21:18 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CABA1CB22; Mon, 13 Jun 2022 10:23:06 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id s37so3637895pfg.11; Mon, 13 Jun 2022 10:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=7M+A4Tkcl4j2ZEYJxnHofmbHWBP8K2O9jymdDhG9tv0=; b=SfbzRvanLsSXpQIXsHN2DLvLUMY5t8/g0db/VVEH7eeh+ei07KzvHZObXvbjTtVeim QqAtDY4GBjmFmerP5kZz+/mf7m/AS/3Q5XZMZOj/OJ8HDObBVWj2SDvQTRMUldRoZMZ+ SeJLzy0p5MzASUh/0RwJPnMgBysfdsAoMl1zLmYslcAO+FOxbb8NVeSW1lz0Tf3iyUJ1 7LDCIUE5aIDnihc8OtiMhEzJchy+X65LWl8FCJEPOHTTeMSAznyrJtD842u6apyMxgiI ZuePfGPvvzwdUYaLN3R4KH78h6kCwyviro32caqZmQSWGivj6/D750j/QfJwc+em2o6W 8ANw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=7M+A4Tkcl4j2ZEYJxnHofmbHWBP8K2O9jymdDhG9tv0=; b=t3DkZMS/cctafLZdQLmxZP854yMY27zMd3yQMrXvqyh8klLUZAh1a8p1Yg3DldYyXG 1Y6I47mjQxw0VkSicPFwXJkPaw9VgcJ5o1Uz3aBm3RKqAw7KeMkzFvIZQH2bslvRsM+K ohuOWNPBBN3yjD/xEa+soqp+6a7nj77qDycRfjGMDXqbAoxR7oAR34RmTRwM0SlufChL 6Uzp2r7InXKbTsVAGao0SaCE3aj5FRtkte/esTEJDQmTGQxuI0mGvKbCO/SlA+m4pC0C eYnTWuZ7kV89ZHDgMKIUpU0MOgsuEOMGRCkTfu8fJswXUic1ksdCUebQukqM8Y+18oMu GNCw== X-Gm-Message-State: AOAM531gkt+L5SdHB/8PZ9u3H9D0zXCWxttkv8Szo7ecXSbAs0NqtrLY VJU1CZv1DIyGLCTPgAKNgeo= X-Received: by 2002:a63:1f55:0:b0:3fd:41c5:b53a with SMTP id q21-20020a631f55000000b003fd41c5b53amr529334pgm.441.1655140985316; Mon, 13 Jun 2022 10:23:05 -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 s194-20020a6377cb000000b003fd1111d73csm5956795pgc.4.2022.06.13.10.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 10:23:04 -0700 (PDT) Sender: Tejun Heo Date: Mon, 13 Jun 2022 07:23:03 -1000 From: Tejun Heo To: Waiman Long Cc: Michal =?iso-8859-1?Q?Koutn=FD?= , Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti Subject: Re: [PATCH v11 3/8] cgroup/cpuset: Allow no-task partition to have empty cpuset.cpus.effective Message-ID: References: <20220510153413.400020-1-longman@redhat.com> <20220510153413.400020-4-longman@redhat.com> <20220613140206.GA6910@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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,T_SCC_BODY_TEXT_LINE 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, On Mon, Jun 13, 2022 at 12:47:37PM -0400, Waiman Long wrote: > On 6/13/22 10:02, Michal Koutn? wrote: > > On Sun, Jun 12, 2022 at 04:55:13PM -1000, Tejun Heo wrote: > > > But how would that happen? A lot of other things would break too if that > > > were to happen. > > cpuset is a threaded controller where the internal-node-constraint does > > not hold. So the additional condition for cpuset migrations is IMO > > warranted (and needed if there's no "fall up"). > > Yes, you are right. cpuset is threaded and so it may have tasks even if it > is not the leaf node. And we had this same exchange the last time. Can you please add a comment? We might also already have had this exchange before too but is it necessary to allow threaded cgroups to be isolated roots? The interaction between being threaded and isolated is cleaner at that layer as it's interactions between two explicit mode changes. Thanks. -- tejun