[PATCH i-g-t v2 4/5] tests/xe_compute_preempt: adjust number of children according to ram size

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Apr 8 12:12:03 UTC 2025


Hi Zbigniew,
On 2025-04-07 at 21:01:43 +0200, Zbigniew Kempczyński wrote:
> On Mon, Apr 07, 2025 at 10:49:38AM +0200, Dandamudi, Priyanka wrote:
> 
> <cut>
> 
> > > +				 * Get half of ram / 2, then divide by
> > > +				 * CONTEXT_MB * 2 (long and short) job
> > > +				 */
> > > +				child_count = ram_mb / 2 / CONTEXT_MB / 2;
> > Here it should be CONTEXT_MB* 2 or CONTEXT_MB/2 ??
> > -- Priyanka
> 
> child_count = ram_mb / 2 / CONTEXT_MB / 2;
> 
> or
> 
> child_count = ram_mb / 2 / (CONTEXT_MB * 2);
> 
> are equal.

Also:

child_count = ram_mb / (CONTEXT_MB * 4);

Regards,
Kamil

> 
> --
> Zbigniew
> 
> 
> > > +
> > > +				igt_debug("RAM: %zd, child count: %d\n",
> > > +					  ram_mb, child_count);
> > > 
> > >  				test_compute_preempt(xe, hwe, false);
> > >  				igt_fork(child, child_count)
> > > --
> > > 2.34.1
> > 


More information about the igt-dev mailing list