Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824AbbHQVcy (ORCPT ); Mon, 17 Aug 2015 17:32:54 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:36480 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751722AbbHQVcx (ORCPT ); Mon, 17 Aug 2015 17:32:53 -0400 Date: Mon, 17 Aug 2015 14:32:52 -0700 (PDT) Message-Id: <20150817.143252.890116643769336637.davem@davemloft.net> To: phil@nwl.cc Cc: tgraf@suug.ch, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] rhashtable-test: extend to test concurrency From: David Miller In-Reply-To: <1439591835-30357-1-git-send-email-phil@nwl.cc> References: <1439591835-30357-1-git-send-email-phil@nwl.cc> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 17 Aug 2015 14:32:52 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1252 Lines: 30 From: Phil Sutter Date: Sat, 15 Aug 2015 00:37:15 +0200 > After having tested insertion, lookup, table walk and removal, spawn a > number of threads running operations on the same rhashtable. Each of > them will: > > 1) insert it's own set of objects, > 2) lookup every successfully inserted object and finally > 3) remove objects in several rounds until all of them have been removed, > making sure the remaining ones are still found after each round. > > This should put a good amount of load onto the system and due to > synchronising thread startup via two semaphores also extensive > concurrent table access. > > The default number of ten threads returned within half a second on my > local VM with two cores. Running 200 threads took about four seconds. If > slow systems suffer too much from this though, the default could be > lowered or even set to zero so this extended test does not run at all by > default. > > Signed-off-by: Phil Sutter Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/