Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2497223rwb; Mon, 15 Aug 2022 06:33:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7nqs0gjUgcWOKaaxSZaBU2eQGqwire1NjDo6iSpm5mpx7QMpuKUaQb/mkzDORWHb/Kgv7A X-Received: by 2002:a17:907:969f:b0:730:b649:ff90 with SMTP id hd31-20020a170907969f00b00730b649ff90mr10546716ejc.337.1660570398747; Mon, 15 Aug 2022 06:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660570398; cv=none; d=google.com; s=arc-20160816; b=pTK4ABX8NZ9t7dtqJQZQ9S69itsEHKBmfq1i2akA6alxbklVav5UaaOfWKKbC6IoHD +riFnQ4lHpwyJl1jd+YBTyjo+iPwhgr45sTMxnjLwZI2FK840M9nQSQ38PQyz+6JoQf6 MYmCz08MmOAZMmyykCbTV3Pl6KfJb/VaGAf8SA4XldK7elp3Lkqur4vBxg/ABR8XAEvJ J90ranmLDcr5y3mKH1AtRHsNFACwMlQFy7EloXi+8OnDAhoWMIRWdGVsOzElZeBl/qMw RSV3Q+UETk6m0oy+L4ltKwW4aAIlKp/B1zBeMAy6vX9cwHShJmYWGcRralIJL+Lj2jqH TPVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fFv09Z66+Z9RxDrPyMXwvJHVM1uCWbRmOhnW660hzr8=; b=XmB8K6/xlOV1Gr7+vM6MSks7skZrOM8lminyvHZTmrMo5yTKIBDja95yGJmKg54EUY 4QOj/o1bgmG9ZEqLCBwaqpsYE8rX6uPzNk5EVd45N5GIEjVJSzm24xHD2nHzr1UXO3nG jHR2Iy7X9V/pdVcXiY5phN7VYRG7UOxeFqNunxxPJ1PKKxyGidWjKhNHJkafjWiI+agT 82VH6icBrzuwQT0ZOSt9vo4zjxKvSeQj7TX1mRGd3ORj8buUtOhxgIVopOUPTJkCavMP 3XoBd/dd6WpYGBvLDRgin1yHZ93sTORjlOwJ/3kP7s47P6r6nSKpcP5QgVQCvXZiJjE4 fyAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=OqWPme3x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d24-20020a17090694d800b0072b83e87339si6718257ejy.208.2022.08.15.06.32.52; Mon, 15 Aug 2022 06:33:18 -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=@suse.com header.s=susede1 header.b=OqWPme3x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243012AbiHONXr (ORCPT + 99 others); Mon, 15 Aug 2022 09:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231941AbiHONXj (ORCPT ); Mon, 15 Aug 2022 09:23:39 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DA701EEF4; Mon, 15 Aug 2022 06:23:34 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 83E8D20B30; Mon, 15 Aug 2022 13:23:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1660569812; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fFv09Z66+Z9RxDrPyMXwvJHVM1uCWbRmOhnW660hzr8=; b=OqWPme3xuINwEeKBN52NXE/mRAnqhga05GZ3BOi4GLrd0F7tILAEBTFWeoaS5WpMm6U+b+ 99RNE/4Qgco/1FgCOblmw6w72VMGekSH328mCz2Y/HUt2vT9VlPdp0Ao+3RgrpKlVxMDnY gZBftxajDbblyzNmxcKMRxps1F0Fs0Y= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2917F13A93; Mon, 15 Aug 2022 13:23:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id LprDCNRI+mJuRAAAMHmgww (envelope-from ); Mon, 15 Aug 2022 13:23:32 +0000 Date: Mon, 15 Aug 2022 15:23:30 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Chengming Zhou Cc: hannes@cmpxchg.org, tj@kernel.org, corbet@lwn.net, surenb@google.com, mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com Subject: Re: [PATCH v2 09/10] sched/psi: per-cgroup PSI stats disable/re-enable interface Message-ID: <20220815132330.GA24237@blackbody.suse.cz> References: <20220808110341.15799-1-zhouchengming@bytedance.com> <20220808110341.15799-10-zhouchengming@bytedance.com> <5ce118b3-bf3b-d9a4-004c-a5a355984b0f@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ce118b3-bf3b-d9a4-004c-a5a355984b0f@bytedance.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, Aug 12, 2022 at 08:36:17PM +0800, Chengming Zhou wrote: > Could you help take a look if there is anything to improve? Thanks, just a little nit. > + The reason this control attribute exists is that PSI accounts stalls for > + each cgroup separately and aggregates it at each level of the hierarchy. > + This may cause non-negligible overhead for some workloads when under > + deep level of the hierarchy, in which case this control attribute can > + be used to disable PSI accounting in the cgroups. s/in the cgroups/in the non-leaf cgroups/ or s/in the cgroups/in the uninteresting cgroups/ (I'm concerned that it may result in lots of disabling if you want the performance. I'll expand on it in 2nd subthread.) Michal