From 9024a72d29150f05e2ad62aa088d19a662bbf815 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 30 Oct 2015 15:01:33 +0000 Subject: benchmark/gem_wait: poc for benchmarking i915_wait_request overhead One scenario under recent discussion is that of having a thundering herd in i915_wait_request - where the overhead of waking up every waiter for every batchbuffer was significantly impacting customer throughput. This benchmark tries to replicate something to that effect by having a large number of consumers generating a busy load (a large copy followed by lots of small copies to generate lots of interrupts) and tries to wait upon all the consumers concurrenctly (to reproduce the thundering herd effect). To measure the overhead, we have a bunch of cpu hogs - less kernel overhead in waiting should allow more CPU throughput. Signed-off-by: Chris Wilson --- benchmarks/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) (limited to 'benchmarks/Makefile.am') diff --git a/benchmarks/Makefile.am b/benchmarks/Makefile.am index 15e55b46..9ba0fda7 100644 --- a/benchmarks/Makefile.am +++ b/benchmarks/Makefile.am @@ -8,3 +8,6 @@ LDADD = $(top_builddir)/lib/libintel_tools.la $(DRM_LIBS) $(PCIACCESS_LIBS) $(CA benchmarks_LTLIBRARIES = gem_exec_tracer.la gem_exec_tracer_la_LDFLAGS = -module -avoid-version -no-undefined gem_exec_tracer_la_LIBADD = -ldl + +gem_wait_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS) +gem_wait_LDADD = $(LDADD) -lpthread -- cgit v1.2.3