Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1208904

Re: [PATCH] rhashtable-test: extend to test concurrency

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] rhashtable-test: extend to test concurrency
Date 2015-08-17 23:40 +0200
Message-ID <pYAim-2Fp-11@gated-at.bofh.it> (permalink)
References <pXvNM-7b2-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Phil Sutter <phil@nwl.cc>
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 <phil@nwl.cc>

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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] rhashtable-test: extend to test concurrency Phil Sutter <phil@nwl.cc> - 2015-08-15 00:40 +0200
  Re: [PATCH] rhashtable-test: extend to test concurrency Thomas Graf <tgraf@suug.ch> - 2015-08-16 17:10 +0200
  Re: [PATCH] rhashtable-test: extend to test concurrency Florian Westphal <fw@strlen.de> - 2015-08-16 20:20 +0200
    Re: [PATCH] rhashtable-test: extend to test concurrency Phil Sutter <phil@nwl.cc> - 2015-08-16 23:50 +0200
  Re: [PATCH] rhashtable-test: extend to test concurrency David Miller <davem@davemloft.net> - 2015-08-17 23:40 +0200

csiph-web