On Sat, Jan 7, 2012 at 19:03, Chris Wilson <[email protected]> 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 <[email protected]> > Cc: Eugeni Dodonov <[email protected]> > Very nice one! Reviewed-by: Eugeni Dodonov <[email protected]> Acked-by: Eugeni Dodonov <[email protected]> -- Eugeni Dodonov <http://eugeni.dodonov.net/>
_______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
