Skip to content
  • Chris Wilson's avatar
    benchmark/gem_wait: poc for benchmarking i915_wait_request overhead · 9024a72d
    Chris Wilson authored
    
    
    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: default avatarChris Wilson <chris@chris-wilson.co.uk>
    9024a72d