Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp460578imn; Wed, 3 Aug 2022 11:10:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR504oZIIMgDOuFgUp7AHqM1oSBCJqiLbu+jX5FpvXj1wEPpXstz1gKxb3irzbrUdvWLwls2 X-Received: by 2002:a17:902:70c4:b0:16c:5306:9172 with SMTP id l4-20020a17090270c400b0016c53069172mr27159433plt.171.1659550210577; Wed, 03 Aug 2022 11:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659550210; cv=none; d=google.com; s=arc-20160816; b=wBF2DvYF2lEc0fwYxQTXqX7stSfPJ1VVjlZif/igbHDxDYJ8lZJORNItbRmet0Pl7w BUVJMYGmzRVO8UeGpPPw1wGi2iKcwZN9S8am2pmwN4RHnjqnxMHwQUnmuEXGsICDo2oM uI/HqhRm+DdLSOaeLlAi6n2HrKwP928QN6yo9WvMLwAp+10fNi5KvegHK4CMwbSZFpQU ptObsSTcwR00RcdMzlzMatLY/ysjKhqPogVqrnoXsQ95cxV0+kqKVNw2cEzPn+Jskqn/ xUOHdp9aA+WLWiajwerPqTiXnYI6ncj+1hmL9WNPt90JXNYVa+ifxPbf+SNib9SjouZ1 0PBA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=0F2KsgjThkMHJsCvW8q0mHWxfELmkopPA/c2rKsFWiQ=; b=q0Jg6L3ftWzXkOESnOd1thrPE+huiMkRI+SpDcYXDmufCYAhg3O3k8y6kuAsJFdK33 B+/kMyLwpS6nsixoIC79a+rwNrJhJRC7q8Vne2u9q9gBO2h1SGMNzwEM6sBuAOVzV8Ua TI9DgeFWO2MjoUpNLLS6DMzmy/QQ4eJ5HOIzY+3F8F2z8ovyCDNupWiwzx7sg310LtK9 eW24I1pNDv+FcLb/8Gmt3v+X0AFhmyxymkUv8sZKDi3D35BBV2A2ylRGXo/gJ8Fb6KAP MHE4IMyQPGMhU2DD5IExyqQk+dobvMEn5kh2XhQYR22itKdTwE2ru5c6RvyCtxmdTY1a 3CrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=irnvtNDI; 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 e8-20020a656888000000b0041c14304fcbsi9689569pgt.20.2022.08.03.11.09.55; Wed, 03 Aug 2022 11:10:10 -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=irnvtNDI; 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 S236571AbiHCR6t (ORCPT + 99 others); Wed, 3 Aug 2022 13:58:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238184AbiHCR6c (ORCPT ); Wed, 3 Aug 2022 13:58:32 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24C2D5A178; Wed, 3 Aug 2022 10:58:29 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id i71so10252837pge.9; Wed, 03 Aug 2022 10:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc; bh=0F2KsgjThkMHJsCvW8q0mHWxfELmkopPA/c2rKsFWiQ=; b=irnvtNDIhFfQ5STKu/5oLxnXV9W5JZmn1EV32OigTb/j1H7T4y30vulOjAKaAlbI5P Cm8ZuZ0CLfsw55nypOyeR4PB2evi7h7MSyRZlw2hdAK/MSdj19G7f7D4dwdj5BHqiD6U x6EU71FTrPaqJBTtm5+s7omP3SqaHD8Fpnd3cQtNbMfSN/TnOC96P4qwRn+GINwaSJB5 1usP0fEwBYFkR34DhK/fe6Yjff1IrmHA9CfJsgmjttZGEL1V+Ka/S6h/WISxaAyhpUwN g7av/flBcnUgkS5cXSDC/nKHPXOaaKUPksJkwn9uYjVcMhLDXTI+ghaJNfe1Ajwb74hh JXHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc; bh=0F2KsgjThkMHJsCvW8q0mHWxfELmkopPA/c2rKsFWiQ=; b=tkIN4AGQdUUsGkRwuxZfZxxt8mM61kYs/8zS5QMfKnXbO+o+pT9Fo40CtEtaWK9VXV uzFjWbFo2Axw1ZVhrpjDKk32LvW4yfkBv2pSks/edkOLy17WJSgN4v6lw6q6HEL6cdwL y4IJneTj3aNGz9SgCR2CtCEVAkcLsUuxk90/YUtUNWRIynYtsiLbHbbEBVfPDGokZp3W v2WUbO4C070PBTLtxeiWkjlnW0NeN7cvUB0Mmf5AIm/Ib8MxDtUpeUVdnCYnfyfg3j7V WwCbfv12OeWFHUG63uCbF2yY7F4RbZakiJoDZzF0e9kuSG0RaPx/GEUrbYLrQFADcZ47 PX5g== X-Gm-Message-State: AJIora9I1MC7z4fKj8RJsDvIFiHAYxKIslGyyCoKccWdVk04BUYQhsmi gJkV+LFr7E3xLWChXvzJe/Q= X-Received: by 2002:a65:5207:0:b0:3fb:c00f:f6e4 with SMTP id o7-20020a655207000000b003fbc00ff6e4mr22436056pgp.415.1659549509177; Wed, 03 Aug 2022 10:58:29 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:83dc]) by smtp.gmail.com with ESMTPSA id s2-20020a625e02000000b005251c6fbd0csm13344644pfb.29.2022.08.03.10.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 10:58:28 -0700 (PDT) Sender: Tejun Heo Date: Wed, 3 Aug 2022 07:58:27 -1000 From: Tejun Heo To: Chengming Zhou 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 Subject: Re: [PATCH 8/9] sched/psi: add kernel cmdline parameter psi_inner_cgroup Message-ID: References: <20220721040439.2651-1-zhouchengming@bytedance.com> <20220721040439.2651-9-zhouchengming@bytedance.com> <5a3410d6-428d-9ad1-3e5a-01ca805ceeeb@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a3410d6-428d-9ad1-3e5a-01ca805ceeeb@bytedance.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, 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? Thanks. -- tejun