Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp564779imu; Thu, 20 Dec 2018 01:27:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/WfJ6P/B0rPKXdHFBwxWsCj39imUXT2khS6eU4cvU6uHkMrdI293Flwb0BNeI2PEBszv1Ix X-Received: by 2002:a17:902:43e4:: with SMTP id j91mr22878513pld.147.1545298032167; Thu, 20 Dec 2018 01:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545298032; cv=none; d=google.com; s=arc-20160816; b=pCtuHP0FT6wqRFSGSIp33EZYR2UPfCXnZEuCkOyAWBpjjMDxQQR3zq+vZnw0dxDvV8 X6rcBCNm9/kioryr44ECXOVY/8z/I4k/Ihcm133tmfZneml/FdCECMhJT61Mu7Efk5i/ Ez2Q9cjIjHDE8Jt6mbaz1G06/4TGT0q/Cga4jLjDhnledXPVkFUJWXb0GqjtSOM1fB+2 QknJS/5tphijbCJdkcJ4KCV4JbVu9G09Wuue1nJSZsYgCAqTzyORm1ZyqJDVZzDLt7ak sZFhmVwC7pUW9MEgrooy+dXQQwadQnJ/aQjC5Jubw3ZPsR8Etlc+UM7qUn765kF2m4n7 05Fw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+7O8pY+I5KogQUeFkjaedJQywzCkPnxtLppLTOxMzRI=; b=C6fV9JNkzI7z4FlSkqDO//e+G1UC1MyFR+RB2RQm90+y0NL7p2qnoPge5kYiBQCXYr kL9a+5pPxZMJTFy0HRXBiLchIZC5fgwqu9qR64q2ksd1VqozarhxUgzqPTeOt2Jw2f3C X+PTWdRQLueC/hOtlSJwaAjiT9NWdUQEW6XZIYgWQmo9T3nMNqn33Rf12TMN6bvyWcJL U14mUqF/rPbofVpmiXjZ9rKDsyFBJvfF48opjwIOXN0MKvre9LhQv6XEhQ/PrWT/3fPA GEp8HFxFc0JBuC4rqgaiMQb6Ff4ERDH+XqNHK79KY9bqHh8QQm14sAaoJfZ+gKDmDcQV 4Vfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Qx7la/u3"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si17878024pgi.387.2018.12.20.01.26.56; Thu, 20 Dec 2018 01:27:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Qx7la/u3"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729479AbeLTJXP (ORCPT + 99 others); Thu, 20 Dec 2018 04:23:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:51068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731499AbeLTJXL (ORCPT ); Thu, 20 Dec 2018 04:23:11 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0FB38218D4; Thu, 20 Dec 2018 09:23:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545297790; bh=WnvVvoDwF21WEc1jyGKGDeZJd7sUVpkVgSO17FZUFto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qx7la/u3cxfleJSmrtU9WYJhpHjm6RYBWJ0cEhwqZFKH9b3jTxjVlNRQpjL2e7KtT +hif+P9ervyTxg4dQgPcEcPku+NQlqbBMiyC+/EQdbx7ArMhVxCzVZ7eNTQID9U2qO XKtyDTesAOVpKBTNP5HrKZ7uiasOE9gO05K9DG6c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Davidlohr Bueso , Fengguang Wu , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.9 05/61] lib/rbtree-test: lower default params Date: Thu, 20 Dec 2018 10:18:05 +0100 Message-Id: <20181220085843.951459551@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181220085843.743900603@linuxfoundation.org> References: <20181220085843.743900603@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 0b548e33e6cb2bff240fdaf1783783be15c29080 ] Fengguang reported soft lockups while running the rbtree and interval tree test modules. The logic for these tests all occur in init phase, and we currently are pounding with the default values for number of nodes and number of iterations of each test. Reduce the latter by two orders of magnitude. This does not influence the value of the tests in that one thousand times by default is enough to get the picture. Link: http://lkml.kernel.org/r/20171109161715.xai2dtwqw2frhkcm@linux-n805 Signed-off-by: Davidlohr Bueso Reported-by: Fengguang Wu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- lib/interval_tree_test.c | 4 ++-- lib/rbtree_test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c index 409383463879..bababcf7ffdd 100644 --- a/lib/interval_tree_test.c +++ b/lib/interval_tree_test.c @@ -11,10 +11,10 @@ MODULE_PARM_DESC(name, msg); __param(int, nnodes, 100, "Number of nodes in the interval tree"); -__param(int, perf_loops, 100000, "Number of iterations modifying the tree"); +__param(int, perf_loops, 1000, "Number of iterations modifying the tree"); __param(int, nsearches, 100, "Number of searches to the interval tree"); -__param(int, search_loops, 10000, "Number of iterations searching the tree"); +__param(int, search_loops, 1000, "Number of iterations searching the tree"); __param(bool, search_all, false, "Searches will iterate all nodes in the tree"); diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index e83331aa1b7f..afedd3770562 100644 --- a/lib/rbtree_test.c +++ b/lib/rbtree_test.c @@ -11,7 +11,7 @@ MODULE_PARM_DESC(name, msg); __param(int, nnodes, 100, "Number of nodes in the rb-tree"); -__param(int, perf_loops, 100000, "Number of iterations modifying the rb-tree"); +__param(int, perf_loops, 1000, "Number of iterations modifying the rb-tree"); __param(int, check_loops, 100, "Number of iterations modifying and verifying the rb-tree"); struct test_node { -- 2.19.1