[Intel-gfx] [PATCH i-g-t 0/2] Workload simulation and tracing
Tvrtko Ursulin
tursulin at ursulin.net
Fri Mar 31 14:58:24 UTC 2017
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Another WIP posting with some interopability improvements this time.
Example usage:
root at scnuc:~/intel-gpu-tools# benchmarks/gem_wsim
Calibrating nop delay with 1% tolerance...
Nop calibration for 1000us delay is 438660.
root at scnuc:~/intel-gpu-tools# scripts/trace.pl --trace benchmarks/gem_wsim -n 438660 -r 600 -w benchmarks/wsim/workload1 -c 2 -x
Using 438660 nop calibration for 1000us delay.
2 clients.
Swapping VCS rings between clients.
0: 10.222053s elapsed (58.696622 workloads/s)
1: 10.225807s elapsed (58.675078 workloads/s)
10.226307s elapsed (117.344411 workloads/s)
[ perf record: Woken up 16 times to write data ]
[ perf record: Captured and wrote 3.929 MB perf.data (44688 samples) ]
root at scnuc:~/intel-gpu-tools# perf script | scripts/trace.pl -i 1 -i 4
Ring0: 4832 batches, 4329.07 (4348.11) avg batch us, 0.15% idle, 138.73% busy, 23.88% runnable, 79.66% queued, 0.01% wait)
Ring2: 1808 batches, 1715.68 (1719.99) avg batch us, 69.68% idle, 30.38% busy, 0.12% runnable, 112.04% queued, 99.32% wait)
Ring3: 1810 batches, 1727.59 (1739.31) avg batch us, 69.28% idle, 30.75% busy, 0.11% runnable, 105.37% queued, 99.46% wait)
Most interesting metric here is the engine idle time which will come into play
as I start adding the load balancing options to gem_wsim.
Secondary mode here would be:
root at scnuc:~/intel-gpu-tools# perf script | scripts/trace.pl -i 1 -i 4 --html >graph.html
This would enable a timeline of GPU request execution to be viewed with a little
bit of local setup as described in the trace.pl help text.
Tvrtko Ursulin (2):
benchmarks/gem_wsim: Command submission workload simulator
igt/scripts: trace.pl to parse the i915 tracepoints
benchmarks/Makefile.sources | 1 +
benchmarks/gem_wsim.c | 593 +++++++++++++++++++++++++++
benchmarks/wsim/workload1 | 7 +
scripts/Makefile.am | 2 +-
scripts/trace.pl | 946 ++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 1548 insertions(+), 1 deletion(-)
create mode 100644 benchmarks/gem_wsim.c
create mode 100644 benchmarks/wsim/workload1
create mode 100755 scripts/trace.pl
--
2.9.3
More information about the Intel-gfx
mailing list