Skip to content

perf-bench: introduce futex microbenchmarks

Davidlohr Bueso lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf-bench: add futex-hash microbenchmarktools/perf/Makefile.perf tools/perf/bench/bench.h tools/perf/bench/futex-hash.c +3 more+277 -10 replies
2/3perf-bench: add futex-wake microbenchmarktools/perf/Makefile.perf tools/perf/bench/bench.h tools/perf/bench/futex-wake.c +2 more+214 -02 replies
3/3perf-bench: add futex-requeue microbenchmarktools/perf/Makefile.perf tools/perf/bench/bench.h tools/perf/bench/futex-requeue.c +2 more+227 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] perf-bench: introduce futex microbenchmarks

This patchset adds three programs that stress and measure different futex
operations: (i) uaddr hashing, (ii) wakeups and (iii) requeuing/waiting.

More details and usage examples in each individual patch, along with parameter descriptions in the code.

While the previous effort (https://lkml.org/lkml/2012/5/17/207) to add futex benchmarks to perf-bench failed, I strongly believe that perf is an ideal place for these kinds of programs. This patchset is different from Hitoshi's because it does not try to take over Darren's futextest suite, and only deals with finer grained aspects of the kernel's implementation, and thus mostly useful for kernel hacking. Furthermore, by being part of the kernel tree, it can get more attention and naturally evolve with time.

Thanks!

Davidlohr Bueso (3):
perf-bench: add futex-hash microbenchmark
perf-bench: add futex-wake microbenchmark
perf-bench: add futex-requeue microbenchmark

 tools/perf/Makefile.perf         |   3 +
 tools/perf/bench/bench.h         |   3 +
 tools/perf/bench/futex-hash.c    | 212 +++++++++++++++++++++++++++++++++++++++
 tools/perf/bench/futex-requeue.c | 211 ++++++++++++++++++++++++++++++++++++++
 tools/perf/bench/futex-wake.c    | 201 +++++++++++++++++++++++++++++++++++++
 tools/perf/bench/futex.h         |  71 +++++++++++++
 tools/perf/builtin-bench.c       |  12 ++-
 tools/perf/perf.h                |   6 ++
 8 files changed, 718 insertions(+), 1 deletion(-)
 create mode 100644 tools/perf/bench/futex-hash.c
 create mode 100644 tools/perf/bench/futex-requeue.c
 create mode 100644 tools/perf/bench/futex-wake.c
 create mode 100644 tools/perf/bench/futex.h
Signature · 1 line
1.8.1.4