diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-10 11:03:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-10 12:15:58 +0100 |
commit | 75b2b1a8dc7165b01615c25f486888032cead53d (patch) | |
tree | 82fa7ab7a068243a183c41c89f3cc96675fdad57 /benchmarks | |
parent | 36dec3d81f40cbcc48878bdfb1c7d4fe79305bae (diff) |
wsim: Limit heartbeats to sync points
We only need a heartbeat if we don't have any inflight batches to those
engine (the idea is to try and keep track of external usage). It only
needs to be periodic, but use once a wait point for simplicity.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/gem_wsim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index 95b49c29..a529b087 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -1217,9 +1217,9 @@ run_workload(unsigned int id, struct workload *wrk, hars_petruska_f54_1_random_seed((flags & SYNCEDCLIENTS) ? 0 : id); + init_status_page(wrk); for (j = 0; run && (background || j < repeat); j++) { clock_gettime(CLOCK_MONOTONIC, &wrk->repeat_start); - init_status_page(wrk); for (i = 0, w = wrk->steps; run && (i < wrk->nr_steps); i++, w++) { @@ -1309,8 +1309,10 @@ run_workload(unsigned int id, struct workload *wrk, } } - if (w->wait) + if (w->wait) { gem_sync(fd, w->obj[0].handle); + init_status_page(wrk); + } if (qd_throttle > 0) { while (wrk->nrequest[engine] > qd_throttle) { |