[Intel-gfx] [igt-dev] [PATCH i-g-t 09/24] i915/gem_exec_big: Add a single shot test

Chris Wilson chris at chris-wilson.co.uk
Tue Mar 26 10:21:25 UTC 2019


Quoting Tvrtko Ursulin (2019-03-26 10:06:37)
> 
> On 22/03/2019 09:21, Chris Wilson wrote:
> > +static void single(int i915)
> > +{
> > +     const uint32_t bbe = MI_BATCH_BUFFER_END;
> > +     uint64_t batch_size, limit;
> > +     uint32_t handle;
> > +     void *ptr;
> > +
> > +     batch_size = (intel_get_avail_ram_mb() - 128) << 20; /* CI slack */
> 
> Slack big enough? Sounds risky..

How big is Java? Bigger than you can possibly imagine. Why is it running
during igt? CI only know.

I have no idea, avail_ram_mb() is meant to be able to say how much
memory we could use, but then Java keeps on stealing more. We could
mlock it I guess, but the end result is the same, Java is forced into
swap and we risk page allocation failures.
-Chris


More information about the Intel-gfx mailing list