Re: [RFC i-g-t] tests/gem_exec_pad_to_size: Test object padding at execbuf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 25, 2015 at 02:32:05PM +0000, Tvrtko Ursulin wrote:
> 
> On 03/25/2015 02:28 PM, Chris Wilson wrote:
> >What's important to make this trick work is to allocate new handles
> >every time. That way we fill up the GTT and thereby hope to skip over
> >the fragmented part.
> 
> It does do that!

I was just looking for some filler for the email!

> Only perhaps I need to make sure they are kept bound so maybe keep
> them mapped or something while trying new ones?

What I was expecting to see were gem_create()s every loop. I only feel
confident in say that a pair of freshly allocated and bound objects are
likely to line up against each other (so long as space is not
fragmented).

I would allocate a new device fd for the test, leak the individual
handles on every try, then close the fd at the end of the test to avoid
having to track all the allocations. That's the pattern I was looking
for when I skimmed over your test.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux