From: Daniel Vetter Subject: Re: [PATCH] intel-gpu-tools: skip gem_mmap_offset_exhaustion on Android Date: Fri, 25 Jul 2014 11:37:18 +0200 Message-ID: <20140725093718.GT4747@phenom.ffwll.local> References: <1406278819-8464-1-git-send-email-tim.gore@intel.com> <20140725090638.GS4747@phenom.ffwll.local> <20140725091726.GD7661@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by gabe.freedesktop.org (Postfix) with ESMTP id F34306E02A for ; Fri, 25 Jul 2014 02:37:10 -0700 (PDT) Received: by mail-wi0-f181.google.com with SMTP id bs8so652079wib.8 for ; Fri, 25 Jul 2014 02:37:08 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140725091726.GD7661@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson , Daniel Vetter , tim.gore@intel.com, daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Jul 25, 2014 at 10:17:26AM +0100, Chris Wilson wrote: > 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@intel.com wrote: > > > From: Tim Gore > > > > > > 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 > > > > > > > > /* 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. Well someone should fix up the lowmemkiller then. Disabling the test is not really fixing it. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch