Skip to content

perf bench: Add epoll-wait-mp1c benchmark calling epoll_wait(2)

Roman Penyaev lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf bench: rename epoll-wait bench to epoll-wait-1pmctools/perf/bench/Build tools/perf/bench/bench.h tools/perf/bench/epoll-wait-1pmc.c +1 more+8 -40 replies
2/2perf bench: Add epoll-wait-mp1c benchmark calling epoll_wait(2)tools/perf/bench/Build tools/perf/bench/bench.h tools/perf/bench/epoll-wait-mp1c.c +1 more+178 -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/2] perf bench: Add epoll-wait-mp1c benchmark calling epoll_wait(2)

The intention of a new benchmark is to measure events delivery
bandwidth: N threads produce events and 1 thread consumes events calling epoll_wait(2).

Benchmark does measurements for 8, 16, 32, 64 and 128 threads in a loop.

This one differs from epoll-wait in that it produces events from many threads and consumes from one, thus mp1c (many producers 1 consumer).

Roman Penyaev (2):
perf bench: rename epoll-wait bench to epoll-wait-1pmc perf bench: Add epoll-wait-mp1c benchmark calling epoll_wait(2)

 tools/perf/bench/Build                        |   3 +-
 tools/perf/bench/bench.h                      |   3 +-
 .../bench/{epoll-wait.c => epoll-wait-1pmc.c} |   6 +-
 tools/perf/bench/epoll-wait-mp1c.c            | 175 ++++++++++++++++++
 tools/perf/builtin-bench.c                    |   3 +-
 5 files changed, 186 insertions(+), 4 deletions(-)
 rename tools/perf/bench/{epoll-wait.c => epoll-wait-1pmc.c} (98%)
 create mode 100644 tools/perf/bench/epoll-wait-mp1c.c
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc Jason Baron <[email protected]>
Signature · 1 line
2.19.1