Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5913612rwp; Mon, 17 Jul 2023 11:25:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRGl4b8OICiBgoDSTtptmarbjlUD+xIlu6SDEwZvQdvv0Sq9+RcyVnh0LFj4xXYDiyNmiB X-Received: by 2002:a17:907:310f:b0:991:e5a5:cd4b with SMTP id wl15-20020a170907310f00b00991e5a5cd4bmr10010385ejb.56.1689618356437; Mon, 17 Jul 2023 11:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689618356; cv=none; d=google.com; s=arc-20160816; b=u1aFYLXLp19zu47/SXJ0i8Xbx4k4DL0W4g5bwWYFxEPgO9oOANrwBTT8EIeUrSDuQY LZNmyI4Qp9TuAavAldfNLw4QmPnW2bsGEFsUizLWrYM7aB0p0cljmn7CG/tuxzPMpCSx N+UvIggs0gn4RFqZ4/SGZlG28ZoG1UZjas7Uro7mVn4XAdDCDf73U/xqp/0syWbYwutT zk2IhYB2TQF6kX4If30cxLOcRGjmNonKRAInTG4y6R6kmWwBd1s0rjPg/V1MZ5bBEJUd q/Ig4gxNIEw7NXIuRHzHm80CqQqNyCTeIbWWfH6/+mZOZvkl5/zra3C2gyIOm1FnFsAQ bZnA== 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=NRem7t5M57gemx5Pwld33iSibOVAYDkz1dN4CUDVTfw=; fh=Ag0RbRk3LxdpQ9OdMLAf8hbnmFe6FOAHRGAvgVTwgEc=; b=Bvql2KSNhT7fhPseOb1oFVzHZ3PN23AH+S0UcCtJyFnxi5DpHMLGXcPmvNGMDwdoup Z90H+wLsBrIL8/FpsJczTZUbJeYxXrh9KeuTKzqNDrafI/cEKUreIxKHjUpRe14P8VDB o/I60HOVFEF1K7idpYIxmdIjjwvA7Nd52AJzG56auBXJJvgt+GbDUPzSvhq/T72JtLMH BbH1Pz0bEhO2vlZAZM91bWJnngvfdxJKPBUndTrPmRTIlE7hs2qZIuxZMK2uKg6zAQpE X2+jsojb6MyrbuK6WEAZ2AmWeg2jVbBUtrXQzthmDJWWKOEbjfI2tDsuELNANmdyAJ6K mAzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C6GIMua+; 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 i12-20020a17090671cc00b0098e1ade896asi18182ejk.283.2023.07.17.11.25.31; Mon, 17 Jul 2023 11:25:56 -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=C6GIMua+; 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 S231792AbjGQSSo (ORCPT + 99 others); Mon, 17 Jul 2023 14:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjGQSSf (ORCPT ); Mon, 17 Jul 2023 14:18:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 092671700; Mon, 17 Jul 2023 11:18:24 -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 916F7611DC; Mon, 17 Jul 2023 18:18:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2A34C433C7; Mon, 17 Jul 2023 18:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689617903; bh=5yZnYA/vYH5K7ZYo4itQZ34JbDb64O4rGCUZ6y8VJ9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C6GIMua+brOodMq7+iCLtjYjLpI4ibvqi1J3nVXHWPyDduASQ+Xh+3oQSa4v8O8e7 8oXCUzQgNtwAfUFwWfqPnB1wV9IvTJDnAbRW69Wm3OFDArHJmvJ74Ytj7ucDmHi97d uElDQM7sw0ZZenGPbp01W7j24L3g1VspxVR/MFmUgv+MmhBoQi1SY5ubBSDQkhFmH8 ZIAQxleBE/6tpMNZlpWZq3vxm29G6HprQnisVF/Tr8VRA6cUOjEmM99SRxOUOJ0L86 ei4rHA4PwBD1yO7R/0dExfc5i6WjQDB77286MTEK2KqK12BVw9zO8XW0sXyVY0O/UR bkPForBmE6A/w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id A836DCE03F1; Mon, 17 Jul 2023 11:18:22 -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 1/4] torture: Scale scftorture memory based on number of CPUs Date: Mon, 17 Jul 2023 11:18:17 -0700 Message-Id: <20230717181820.1098541-1-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <38be0135-a7a4-4c16-b2c6-1b3817c3067f@paulmck-laptop> References: <38be0135-a7a4-4c16-b2c6-1b3817c3067f@paulmck-laptop> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 As the number of CPUs increases, the number of outstanding no-wait smp_call_function() handlers also increases, so that the default of 2G of memory is not always sufficient on 80-CPU systems. This commit therefore scales the amount of memory specified to qemu based on the number of CPUs specified to the scftorture test instance. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/torture.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/testing/selftests/rcutorture/bin/torture.sh index 5a2ae2264403..9fa6526067f0 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -376,8 +376,10 @@ fi if test "$do_scftorture" = "yes" then + # Scale memory based on the number of CPUs. + scfmem=$((2+HALF_ALLOTED_CPUS/16)) torture_bootargs="scftorture.nthreads=$HALF_ALLOTED_CPUS torture.disable_onoff_at_boot csdlock_debug=1" - torture_set "scftorture" tools/testing/selftests/rcutorture/bin/kvm.sh --torture scf --allcpus --duration "$duration_scftorture" --configs "$configs_scftorture" --kconfig "CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --memory 2G --trust-make + torture_set "scftorture" tools/testing/selftests/rcutorture/bin/kvm.sh --torture scf --allcpus --duration "$duration_scftorture" --configs "$configs_scftorture" --kconfig "CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --memory ${scfmem}G --trust-make fi if test "$do_rt" = "yes" -- 2.40.1