[cairo] [PATCH] boilerplate/gl: Disable thread awareness

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 4 09:20:06 PDT 2013


On Thu, Apr 04, 2013 at 08:10:55AM -0700, Martin Robinson wrote:
> From d35e5e2bc75ddf2046c91dc0b3f40d406bab8850 Mon Sep 17 00:00:00 2001
> From: Martin Robinson <mrobinson at igalia.com>
> Date: Fri, 29 Mar 2013 11:09:48 -0700
> Subject: [PATCH] boilerplate/gl: Disable thread awareness
> 
> This dramatically speeds up testing on NVidia and actually makes it
> possible to run traces within a reasonable amount of time.
> 
> cairo-perf-trace results for:
> NVIDIA Corporation GeForce GTS 250/PCIe/SSE2 3.3.0 NVIDIA 310.14
> 
> Before:
> test              min(s)  median(s) stddev. count
> gvim              30.924  31.251    0.72%   5/6
> firefox-fishbowl  168.751 201.017   12.46%  8/8
> (exited early)
> 
> After:
> test              min(s)  median(s) stddev. count
> gvim              1.294   1.325     1.79%   6/6
> firefox-fishbowl  18.540  19.104    1.54%   6/6

Wow, I would have made the same change long ago had we any visibility
into the nvidia driver - all I could see was that it was busy-waiting
with no clues on what.

Running multiple threads in cairo-perf is something I keep meaning todo,
but if I ever get around to it, it shall have to be a new mode:
CAIRO_BOILERPLATE_MODE_PERF_THREADS

Maybe add that as a prior patch with some comments to remind us/me in
future.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list