Re: [Intel-gfx] [PATCH i-g-t 01/19] i915/gem_ppgtt: Estimate resource usage and bail if it means swapping!

2019-03-11 Thread Chris Wilson
Quoting Mika Kuoppala (2019-03-11 10:04:05) > Chris Wilson writes: > > + mem_per_child = SIZE; > > + if (flags & CREATE_CONTEXT) > > + mem_per_child += 2 * 128 * 1024; /* rough context sizes */ > > Someday libify this so that we give num context and size per each? > Just that

Re: [Intel-gfx] [PATCH i-g-t 01/19] i915/gem_ppgtt: Estimate resource usage and bail if it means swapping!

2019-03-11 Thread Mika Kuoppala
Chris Wilson writes: > fi-kbl-guc's swap ran dry while running blt-vs-render-ctxN, which is > midly concerning but conceivable as we never checked there was enough > memory to run the test to begin with. > > Each child needs to keep its own surface and possible a pair of logical > contexts (one

[Intel-gfx] [PATCH i-g-t 01/19] i915/gem_ppgtt: Estimate resource usage and bail if it means swapping!

2019-03-08 Thread Chris Wilson
fi-kbl-guc's swap ran dry while running blt-vs-render-ctxN, which is midly concerning but conceivable as we never checked there was enough memory to run the test to begin with. Each child needs to keep its own surface and possible a pair of logical contexts (one for rcs and one for bcs) so check