Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp48436imn; Wed, 3 Aug 2022 19:07:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR5RAIGtd59zaiAr5YjzGAr9JfxgiIcB3RIIIA3pW0J9OTg73npEnlRhKcLcz197UhdTWII9 X-Received: by 2002:a17:903:11d2:b0:167:8a0f:8d33 with SMTP id q18-20020a17090311d200b001678a0f8d33mr29144870plh.95.1659578842152; Wed, 03 Aug 2022 19:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659578842; cv=none; d=google.com; s=arc-20160816; b=ZsynZY7coCQBri9ZXZDSqkWRGqVed6NN3v+hCVklJIBNrMUHoOWuHghZ8cIKNV3AuE QTERkrYCgll05BishXBvrX8dRlCqX3+sg+QCqNzF5289F/a0boOcah9fTnfMIaD6sqQB sAEZ1RtS0vNVAJp03TVuOscY9MMMQk/Ux7Rtgei/3xNkQsXrsZTDVPBCgSLGQ9UNt2O4 9g8LMqBJKbBTiPeSVvxI0fF5DDWPoVBTfBcfZDZtmJTDYxWUUqvVgIu4350TbxLZ5am5 PO9gdDAVR1DIk7RrIHlOHaw7j5coaVC27fhuNBz8dJnonUGInzfKYhGEq9LOOhSPfBzO JK+A== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=R8a2uTZpErjV8ZoEO/x1ZNaBxjx4vHWCt7mF0miAi5E=; b=zBr9GgSohJHkxum+Elbe9d/wvUHjWGa5dA7No/TuxkTu1SuZqaHZjOakfkI7UMvfGu k3IBsnhXuuFK5YmJGFEQRSRVqIcdYrn0gUNf8MIt1lm3JCM2ffrXTR078dZTAFDwIDkU sNYD4zUAWiPGYp7LyjIiDd10rABTxWV5MPFV11XB0+0I0AXPWHKNFEKOx4+Sx4x6oDMq ZXfPGJUIsheQj6N+BeO3pzkW/IbKshpAIgpB5AdXu0rdUYnD5m2Rsj0wp25nVK5lwnn5 yxSEJ6veMxiFKQhdbylDCfQFXfItc9E1sccFETaiv4ip0m1CXhX+ogEY7Au4VJsVyuit vg0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=zZ1UG92H; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a170903234200b0016d0ee8a096si4475673plh.345.2022.08.03.19.07.07; Wed, 03 Aug 2022 19:07:22 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=zZ1UG92H; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233190AbiHDCCW (ORCPT + 99 others); Wed, 3 Aug 2022 22:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiHDCCV (ORCPT ); Wed, 3 Aug 2022 22:02:21 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D1EB5C9ED for ; Wed, 3 Aug 2022 19:02:20 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id i71so11136884pge.9 for ; Wed, 03 Aug 2022 19:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:to:cc:references :content-language:from:in-reply-to:content-transfer-encoding; bh=R8a2uTZpErjV8ZoEO/x1ZNaBxjx4vHWCt7mF0miAi5E=; b=zZ1UG92HUINfBQ0MPaLPPVMGISoqyJK/vD/6sOBUj8XoURNF1lfjGeUqvP9Fd0Q0n4 S4tnowzf3rtmuMxZufeXmYMk6Idx/JgCkX3Plw150oX75qK9rOWR5ykDKz/sz3+WUMmV qoFAxG0rCEOoKhTUc12aJo6XYNciiUvXjIJdrE1WLpbsMhASFxIFg9i+mVCKLFfEdRf4 79VgYyrQKQ1IuJT+owA5Geif2IltJJU2FgCCZb8FX9DuLUrLQiPPMA3fiLeIhVfrDhS6 lgBpNEPmcHiEORwN/t+xhP9fHEMu5jG2DSGj5k1P7NT0ZHbum9gVw4Knz8LQVXLxleRM DJyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :to:cc:references:content-language:from:in-reply-to :content-transfer-encoding; bh=R8a2uTZpErjV8ZoEO/x1ZNaBxjx4vHWCt7mF0miAi5E=; b=IRO5eG/T//8KAY2nWjeJzSHYPemSFcSELY3GlUcusVHyfpKBqhfMvoSg21vHfoVmnM 1LKdcZ85UPUubfQvEyXYr0SctM5QnUWeq3O5sTyWdnywzjFao+4DD9A3DGlCPbkgUxCm CNRlh0yejfO/2zDszp2HoKhmKpt1JHrK4flEJx+qssvTaaBjr230sCT3AnuNLk4LLAfQ TEOkpWFqqF72QpUZlX+bpawvE4wgw4+OMpMpwPe1WXF7+KfpN1qICJslIzLpB/vudIhd Y1AZ/k1NVSqiXF91l8MGxo31bxS9tX+rnXUKV6HUUVB/0F2n3GB3uWu7GjLlB5h1q9uN bU5g== X-Gm-Message-State: AJIora8ZBtRgOSAzz9fwOZYqGcL2Qh63atG9/KuzBqD+cyJUCxZVhaVF M45kD3OiMMs5b+WssKhwdj1VGA== X-Received: by 2002:a05:6a00:2282:b0:52b:bab:16a4 with SMTP id f2-20020a056a00228200b0052b0bab16a4mr28685867pfe.17.1659578539603; Wed, 03 Aug 2022 19:02:19 -0700 (PDT) Received: from [10.200.231.53] ([139.177.225.233]) by smtp.gmail.com with ESMTPSA id i10-20020a056a00004a00b0052ab602a7d0sm6513352pfk.100.2022.08.03.19.02.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Aug 2022 19:02:19 -0700 (PDT) Message-ID: <94ddcd31-e168-06ed-c0f9-2ea25b802d60@bytedance.com> Date: Thu, 4 Aug 2022 10:02:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH 8/9] sched/psi: add kernel cmdline parameter psi_inner_cgroup To: Tejun Heo Cc: Johannes Weiner , surenb@google.com, mingo@redhat.com, peterz@infradead.org, corbet@lwn.net, akpm@linux-foundation.org, rdunlap@infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com, cgroups@vger.kernel.org References: <20220721040439.2651-1-zhouchengming@bytedance.com> <20220721040439.2651-9-zhouchengming@bytedance.com> <5a3410d6-428d-9ad1-3e5a-01ca805ceeeb@bytedance.com> Content-Language: en-US From: Chengming Zhou In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 2022/8/4 01:58, Tejun Heo wrote: > Hello, > > On Wed, Aug 03, 2022 at 08:17:22PM +0800, Chengming Zhou wrote: >>> Assuming the above isn't wrong, if we can figure out how we can re-enable >>> it, which is more difficult as the counters need to be resynchronized with >>> the current state, that'd be ideal. Then, we can just allow each cgroup to >>> enable / disable PSI reporting dynamically as they see fit. >> >> This method is more fine-grained but more difficult like you said above. >> I think it may meet most needs to disable PSI stats in intermediate cgroups? > > So, I'm not necessarily against implementing something easier but we at > least wanna get the interface right, so that if we decide to do the full > thing later we can easily expand on the existing interface. ie. let's please > not be too hacky. I don't think it'd be that difficult to implement > per-cgroup disable-only operation that we can later expand to allow > re-enabling, right? Agree, the interface is important, per-cgroup disable-only operation maybe easier to implement. I will look into this more. Thanks!