Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5909851rwp; Mon, 17 Jul 2023 11:21:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4A0u8FjrIMc7oVg+5E745lDIOrnYeww7tX5V7hFAptWDZYJNgbwneHtuIrtEp05727gzS X-Received: by 2002:a05:6a21:7885:b0:133:6d89:4d2f with SMTP id bf5-20020a056a21788500b001336d894d2fmr16193284pzc.55.1689618096993; Mon, 17 Jul 2023 11:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689618096; cv=none; d=google.com; s=arc-20160816; b=sfRwV8FrTVNl3SuBh8MS4W9sFqrH/WOTcfUl9BeLkIF5SWpqIEiNxaYQrTDHgy8fj8 4VwG6mBM3xHCHcWuY8UruSZvK68veBQ03M+hRPmwtGcVTBRFkX7u2mGGojyX7VpLJfzv 2ExCjJPXMMLxyv/wod3ZHc9LTlds3MWRxpr+9ua35rgEsNWAdL2dZOidj3i4i1WNOSct Dpj3/2a2p4JZPkRlqbg9NIMXxNmylCO5v6C6BB6Cpg4O01w7AA/NMitFDXcrIF9rSXAf Xs3gv+hehg3vzu5NL32sRLecF2PSzGVYSXlmei0bzYbIaKOfdM3HVnVskC17lywRyXyo F74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J0y8bkiRSY3LDrWOEWZM8aRFs9G16uNW53OYkQZ+GZQ=; fh=Ag0RbRk3LxdpQ9OdMLAf8hbnmFe6FOAHRGAvgVTwgEc=; b=HoqYjeXQbZGH+1WwdkDuJFRw75s9asdOqmUGERSCGx+nxm1XFpGwuN9/tfbsvHjqkg BYqKEHQplDnco/HJLprtdda5ytEm8fy+iNT/w0Qt2+nouKuIdDUiSp5yBCHqC0uQKOeR qL4YCwyoZcunZuqmBN/WnY41lhQpYAWOcoFug9POGH2cafp7adLknA9tHV3e1wGNwYCe Fwr19SUiJ7eyLrxAYIoPdsNV/bP8zkkNRcPjx8O8E8T/FzOlZsfOp7fKpl+95M4kq4G1 waQCTC8w+HExwRoLZs3et65xNNdVlGL1r07uZ/yBnn+KeCH8H8TkmwgbshQ++jURJ3x9 kMvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o7DsUuPa; 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 ch12-20020a056a00288c00b0067e69fcebb9si160061pfb.86.2023.07.17.11.21.24; Mon, 17 Jul 2023 11:21:36 -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=@kernel.org header.s=k20201202 header.b=o7DsUuPa; 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 S231400AbjGQSLy (ORCPT + 99 others); Mon, 17 Jul 2023 14:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbjGQSLn (ORCPT ); Mon, 17 Jul 2023 14:11:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4097799; Mon, 17 Jul 2023 11:11:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 207DE611E1; Mon, 17 Jul 2023 18:11:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CB43C433A9; Mon, 17 Jul 2023 18:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689617500; bh=N9K+fD3EFCsSjTZTUsdzLJiPJxPM1QAGdJD0a23WnpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o7DsUuPadJm0BDm8NK9h1ln05KhLCAhlYqBXu/hQty300WAYdzBGEx2rG1p+0r29v xer+JPV5IGFeVJkJaoBr6vK8LjOXn99WhzbPIcfW5H4mCcR+fGY8fido2K2CYfu1gV m/+cHby9EP0HYX+W6S2tpbiC0lctt+ab19BKn/pT/THkFNBv0xW/5zJLeiLHfzJW5e H0rrNY1Epood0uZ/HUb44+YjzD5K8R85BOrQjOR5GczIK00mSArjD9EQO/alCarggU S4q8ekVvGcbYJc4F0xhlQgpBB3nb/qCw57puNgj+vdY9sZMQkh0gd+ELGzpOnDYFq6 l7OMtMu1lPAcQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id BE377CE093C; Mon, 17 Jul 2023 11:11:39 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 08/13] rcuscale: Print grace-period kthread CPU time, if recorded Date: Mon, 17 Jul 2023 11:11:33 -0700 Message-Id: <20230717181138.1098063-8-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 This commit prints out the CPU time consumed by the grace-period kthread, if the specified RCU flavor supports this notion. Signed-off-by: Paul E. McKenney --- .../selftests/rcutorture/bin/kvm-recheck-rcuscale.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh index b582113178ac..f683e424ddd5 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh @@ -40,6 +40,10 @@ awk ' sum += $5 / 1000.; } +/rcu_scale: Grace-period kthread CPU time/ { + cputime = $6; +} + END { newNR = asort(gptimes); if (newNR <= 0) { @@ -78,6 +82,8 @@ END { print "90th percentile grace-period duration: " gptimes[pct90]; print "99th percentile grace-period duration: " gptimes[pct99]; print "Maximum grace-period duration: " gptimes[newNR]; - print "Grace periods: " ngps + 0 " Batches: " nbatches + 0 " Ratio: " ngps / nbatches; + if (cputime != "") + cpustr = " CPU: " cputime; + print "Grace periods: " ngps + 0 " Batches: " nbatches + 0 " Ratio: " ngps / nbatches cpustr; print "Computed from rcuscale printk output."; }' -- 2.40.1