summaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2015-08-15 00:37:15 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-17 14:33:47 -0700
commitf4a3e90ba5739cfd761b6befadae9728bd3641ed (patch)
tree2aef5687fe36853abbd5cb80a1b7b0d0c14905ca /net/ipv6/udp.c
parentc1f066d4ee0bde4bb0ff4ac295218b631729e0de (diff)
downloadlinux-f4a3e90ba5739cfd761b6befadae9728bd3641ed.tar.bz2
rhashtable-test: extend to test concurrency
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> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
0 files changed, 0 insertions, 0 deletions