OpenCloudOS-Kernel/tools/perf/bench
Davidlohr Bueso d65817b4e7 perf bench futex: Support parallel waker threads
The futex-wake benchmark only measures wakeups done within a single
process. While this has value in its own, it does not really generate
any hb->lock contention.

A new benchmark 'wake-parallel' is added, by extending the futex-wake
code such that we can measure parallel waker threads. The program output
shows the avg per-thread latency in order to complete its share of
wakeups:

Run summary [PID 13474]: blocking on 512 threads (at [private] futex 0xa88668), 8 threads waking up 64 at a time.

[Run 1]: Avg per-thread latency (waking 64/512 threads) in 0.6230 ms (+-15.31%)
[Run 2]: Avg per-thread latency (waking 64/512 threads) in 0.5175 ms (+-29.95%)
[Run 3]: Avg per-thread latency (waking 64/512 threads) in 0.7578 ms (+-18.03%)
[Run 4]: Avg per-thread latency (waking 64/512 threads) in 0.8944 ms (+-12.54%)
[Run 5]: Avg per-thread latency (waking 64/512 threads) in 1.1204 ms (+-23.85%)
Avg per-thread latency (waking 64/512 threads) in 0.7826 ms (+-9.91%)

Naturally, different combinations of numbers of blocking and waker
threads will exhibit different information.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Davidlohr Bueso <dbueso@suse.de>
Link: http://lkml.kernel.org/r/1431110280-20231-1-git-send-email-dave@stgolabs.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-05-08 16:23:50 -03:00
..
Build perf bench futex: Support parallel waker threads 2015-05-08 16:23:50 -03:00
bench.h perf bench futex: Support parallel waker threads 2015-05-08 16:23:50 -03:00
futex-hash.c perf bench futex: Support operations for shared futexes 2014-09-29 15:43:21 -03:00
futex-requeue.c perf bench futex: Sanitize -q option in requeue 2014-09-29 15:43:26 -03:00
futex-wake-parallel.c perf bench futex: Support parallel waker threads 2015-05-08 16:23:50 -03:00
futex-wake.c perf bench futex: Support operations for shared futexes 2014-09-29 15:43:21 -03:00
futex.h perf tools: Provide stub for missing pthread_attr_setaffinity_np 2015-01-28 12:43:32 -03:00
mem-memcpy-arch.h tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
mem-memcpy-x86-64-asm-def.h perf/bench: Fix mem* routines usage after alternatives change 2015-03-03 18:01:10 +01:00
mem-memcpy-x86-64-asm.S perf/bench: Fix mem* routines usage after alternatives change 2015-03-03 18:01:10 +01:00
mem-memcpy.c A more involved rework of the alternatives framework to be able to 2015-03-04 06:36:15 +01:00
mem-memset-arch.h tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
mem-memset-x86-64-asm-def.h perf/bench: Fix mem* routines usage after alternatives change 2015-03-03 18:01:10 +01:00
mem-memset-x86-64-asm.S perf/bench: Fix mem* routines usage after alternatives change 2015-03-03 18:01:10 +01:00
numa.c perf bench numa: Show more stats of particular threads in verbose mode 2015-05-04 12:43:41 -03:00
sched-messaging.c perf tools: Don't include sys/poll.h directly 2014-09-17 17:08:09 -03:00
sched-pipe.c perf tools: Avoid build splat for syscall numbers with uclibc 2015-01-16 17:49:29 -03:00