[Intel-gfx] [PATCH] drm/i915: Compute a loadavg as the number of pending requests
Eugeni Dodonov
eugeni at dodonov.net
Sat Jan 7 23:47:49 CET 2012
On Sat, Jan 7, 2012 at 19:03, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> The number of pending requests correlates to the number of batches
> queued and so with the amount of work being performed by the GPU. We
> borrow the concept of loadavg from the scheduler, using the count of
> batches as the count of runnables, and simply adjust the timescales for
> a 60x higher sample rate, i.e. the three values are the load average for
> approximately the last 1s, 5s and 15 respectively. The counter is
> started only once GPU activity is detected, and is then sampled at 60 Hz
> until 10s after the GPU goes idle before the counters are reset and
> sampling ceases.
>
> Sample output for running aa10text under gnome-shell:
>
> Total: 55.29 57.54 61.14
> render ring: 54.80 57.17 60.76
> gen6 bsd ring: 0.00 0.00 0.00
> blt ring: 0.48 0.37 0.37
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Eugeni Dodonov <eugeni.dodonov at intel.com>
>
Very nice one!
Reviewed-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
Acked-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
--
Eugeni Dodonov
<http://eugeni.dodonov.net/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20120107/72ad877c/attachment.html>
More information about the Intel-gfx
mailing list