Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2178064ybk; Mon, 11 May 2020 14:02:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJvdWxrrfIDSu4b5zcgkRJbuK75tLDuCc2P+zwjHEAc14+Q6zmt6YfXSWksjjojWm9p3nVP X-Received: by 2002:a50:f381:: with SMTP id g1mr15275659edm.219.1589230955369; Mon, 11 May 2020 14:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589230955; cv=none; d=google.com; s=arc-20160816; b=Myuhqj5eco5Qnw3C244AVAS4mFwOWTHeAI80+oWm9rZnJZADG75tNzA1H8BS3hHQ2J RHg1jCskoiHY+CLJJr4YeTP6eFrfilzznkbNZSmqO/p7y1olpP5SVxKjCIDplHonwstH wqqvjnKoOmuKbAQVKCvmASitqjWjqMXRw3zyGKA/J2XeFzVWceKWZlLD3+49EkTskQ91 FDCwEYe5wR+4DO7OzAJxrncyofDXx54/MsFMOTfTt1W6TYAFKpf5+gWlPliKmLbmvG0j sl/1MFQpJe0oipJx+jrTpUyzmdN+94F6SsQYWKf+zWvWbrs6tgNrt1zkGB4hHwpRQCVA mlEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:cc:subject:to :reply-to:from:date; bh=toMGGXqmaKV2x85bOIpUrsmD/NsDJo18KkOlPyv3X/k=; b=GFPjHzQNSBXUrqo/LnHFURT+MkslqTzNPV7f6IswVj7loUbhMWZg86XUvUiSwoBzGK esEv2QsSbBTdzncXL1dOuBKimZsQ8H0vtL/tJmVGJFlda0iSpjFnA04TzROOuef10lqT zfML5+A5kaFormMENYLnh29P2kxrObzcDNB2inaF9mvzZMNrpWB92CyVwlavfdI0LeXi Noa1DVgA/IwDHRmFcCgDslF+C8PKxurdprfB0+oYXkUjN0S4uQtD5Fvs7P7d3/UapPAX 9+F1VZNBeIf1pSs7jRov6yhegwxixB91WJvFv84y9p3EpDYyCENdUV1BroIxPvpw1G/E yIUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si2990234eds.589.2020.05.11.14.02.10; Mon, 11 May 2020 14:02:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732152AbgEKVAS (ORCPT + 99 others); Mon, 11 May 2020 17:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732048AbgEKU76 (ORCPT ); Mon, 11 May 2020 16:59:58 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 880F7C061A0C; Mon, 11 May 2020 13:59:58 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jYFWl-0005yk-DK; Mon, 11 May 2020 22:59:55 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 43FB51C0837; Mon, 11 May 2020 22:59:40 +0200 (CEST) Date: Mon, 11 May 2020 20:59:40 -0000 From: "tip-bot2 for Joel Fernandes (Google)" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/rcu] rcuperf: Add ability to increase object allocation size Cc: "Joel Fernandes (Google)" , "Paul E. McKenney" , x86 , LKML MIME-Version: 1.0 Message-ID: <158923078019.390.12609597570329519463.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/rcu branch of tip: Commit-ID: f87dc808009ac86c790031627698ef1a34c31e25 Gitweb: https://git.kernel.org/tip/f87dc808009ac86c790031627698ef1a34c31e25 Author: Joel Fernandes (Google) AuthorDate: Mon, 16 Mar 2020 12:32:26 -04:00 Committer: Paul E. McKenney CommitterDate: Mon, 27 Apr 2020 11:02:50 -07:00 rcuperf: Add ability to increase object allocation size This allows us to increase memory pressure dynamically using a new rcuperf boot command line parameter called 'rcumult'. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney --- kernel/rcu/rcuperf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf.c index a4a8d09..16dd1e6 100644 --- a/kernel/rcu/rcuperf.c +++ b/kernel/rcu/rcuperf.c @@ -88,6 +88,7 @@ torture_param(bool, shutdown, RCUPERF_SHUTDOWN, torture_param(int, verbose, 1, "Enable verbose debugging printk()s"); torture_param(int, writer_holdoff, 0, "Holdoff (us) between GPs, zero to disable"); torture_param(int, kfree_rcu_test, 0, "Do we run a kfree_rcu() perf test?"); +torture_param(int, kfree_mult, 1, "Multiple of kfree_obj size to allocate."); static char *perf_type = "rcu"; module_param(perf_type, charp, 0444); @@ -635,7 +636,7 @@ kfree_perf_thread(void *arg) } for (i = 0; i < kfree_alloc_num; i++) { - alloc_ptr = kmalloc(sizeof(struct kfree_obj), GFP_KERNEL); + alloc_ptr = kmalloc(kfree_mult * sizeof(struct kfree_obj), GFP_KERNEL); if (!alloc_ptr) return -ENOMEM; @@ -722,6 +723,8 @@ kfree_perf_init(void) schedule_timeout_uninterruptible(1); } + pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj)); + kfree_reader_tasks = kcalloc(kfree_nrealthreads, sizeof(kfree_reader_tasks[0]), GFP_KERNEL); if (kfree_reader_tasks == NULL) {