Re: [PATCH] intel-gpu-tools: skip gem_mmap_offset_exhaustion on Android

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

 



On Fri, Jul 25, 2014 at 11:06:38AM +0200, Daniel Vetter wrote:
> On Fri, Jul 25, 2014 at 10:00:19AM +0100, tim.gore@xxxxxxxxx wrote:
> > From: Tim Gore <tim.gore@xxxxxxxxx>
> > 
> > gem_mmap_offset_exhaustion relies on purgeable memory
> > allocations getting swapped out, freeing up physical
> > memory for further allocations. On Android we have no
> > swap partition so this cannot happen and the test gets
> > killed by the low memory killer before mmap offset
> > exhaustion can happen, thus defeating the tests purpose.
> > 
> > Signed-off-by: Tim Gore <tim.gore@xxxxxxxxx>
> 
> 
> 
> 	/* we happily leak objects to exhaust mmap offset space, the kernel will
> 	 * reap backing storage. */
> 	gem_madvise(fd, handle, I915_MADV_DONTNEED);
> 
> There's really no way you should be able to run out of memory. I suspect
> android kernel's will fall over even with swap.

No, it's just the android lowmemkiller hates i915 by design. The two are
more or less incompatible.
-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