diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-09 16:35:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-09 16:36:33 +0100 |
commit | 3b723460a785c35636cee8e672906d98215e5006 (patch) | |
tree | 9967fd66f54b1834d926362f54e5f03722a0147d /benchmarks | |
parent | 012ad453d86a4401b8377b6ab2d4eaeaf731914e (diff) |
wsim: qd throttling now works independently of balancer->get_qd
Since we are tracking the request depth outside of the balancer, we can
apply the qd thottle unconditionally.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/gem_wsim.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index 6cc3592d..4593abfb 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -1158,12 +1158,6 @@ run_workload(unsigned int id, struct workload *wrk, w->eb.batch_start_offset = offset; } - /* If workload want qd throttling when qd is not - * available approximate with normal throttling. */ - if (qd_throttle > 0 && throttle < 0 && - !(balancer && balancer->get_qd)) - throttle = qd_throttle; - if (throttle > 0) w_sync_to(wrk, w, i - throttle); @@ -1185,7 +1179,7 @@ run_workload(unsigned int id, struct workload *wrk, if (w->wait) gem_sync(fd, w->obj[0].handle); - if (qd_throttle > 0 && balancer) { + if (qd_throttle > 0) { while (wrk->nrequest[engine] > qd_throttle) { struct w_step *s; |