[Intel-gfx] [PATCH] tests/gem_userptr_blits: Expanded userptr test cases

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Wed Jan 22 12:38:08 CET 2014


On 01/22/2014 11:21 AM, Chris Wilson wrote:
> On Wed, Jan 22, 2014 at 10:41:38AM +0000, Tvrtko Ursulin wrote:
>> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>>
>> A set of userptr test cases to support the new feature.
>
> Oh, and another thing...
>
> I guess we will want some benchmarks for mmu_notifier scaling since
> tracking the performance implications seems important.

What would be a realistic benchmark? My first thoughts were something like:

for each [unsync, sync]
   for each N [1, 10, 100, 1000]
	create N userptr bos
		benchmark for T seconds: malloc/realloc/free
		benchmark for T seconds: mmap/unmap
		???

Add this as tests/gem_userptr_benchmark ?

Tvrtko



More information about the Intel-gfx mailing list