From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by kanga.kvack.org (Postfix) with ESMTP id CE0FF6B0031 for ; Fri, 18 Apr 2014 15:14:19 -0400 (EDT) Received: by mail-pa0-f50.google.com with SMTP id kq14so1738079pab.9 for ; Fri, 18 Apr 2014 12:14:19 -0700 (PDT) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTP id x5si16810968pax.105.2014.04.18.12.14.18 for ; Fri, 18 Apr 2014 12:14:18 -0700 (PDT) Date: Fri, 18 Apr 2014 12:14:16 -0700 From: Andrew Morton Subject: Re: [PATCH] mm: Throttle shrinkers harder Message-Id: <20140418121416.c022eca055da1b6d81b2cf1b@linux-foundation.org> In-Reply-To: <1397113506-9177-1-git-send-email-chris@chris-wilson.co.uk> References: <1397113506-9177-1-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Chris Wilson Cc: linux-mm@kvack.org, intel-gfx@lists.freedesktop.org, Mel Gorman , Michal Hocko , Rik van Riel , Johannes Weiner , Dave Chinner , Glauber Costa , Hugh Dickins , David Rientjes On Thu, 10 Apr 2014 08:05:06 +0100 Chris Wilson wrote: > During testing of i915.ko with working texture sets larger than RAM, we > encounter OOM with plenty of memory still trapped within writeback, e.g: > > [ 42.386039] active_anon:10134 inactive_anon:1900781 isolated_anon:32 > active_file:33 inactive_file:39 isolated_file:0 > unevictable:0 dirty:0 writeback:337627 unstable:0 > free:11985 slab_reclaimable:9458 slab_unreclaimable:23614 > mapped:41 shmem:1560769 pagetables:1276 bounce:0 > > If we throttle for writeback following shrink_slab, this gives us time > to wait upon the writeback generated by the i915.ko shinker: > > [ 4756.750808] active_anon:24386 inactive_anon:900793 isolated_anon:0 > active_file:23 inactive_file:20 isolated_file:0 > unevictable:0 dirty:0 writeback:0 unstable:0 > free:5550 slab_reclaimable:5184 slab_unreclaimable:4888 > mapped:3 shmem:472393 pagetables:1249 bounce:0 > > (Sadly though the test is still failing.) > > Testcase: igt/gem_tiled_swapping > References: https://bugs.freedesktop.org/show_bug.cgi?id=72742 i915_gem_object_get_pages_gtt() makes my head spin, but https://bugs.freedesktop.org/attachment.cgi?id=90818 says "gfp_mask=0x201da" which is ___GFP_HARDWALL|___GFP_COLD|___GFP_FS|___GFP_IO|___GFP_WAIT|___GFP_MOVABLE|___GFP_HIGHMEM so this allocation should work and it very bad if the page allocator is declaring oom while there is so much writeback in flight, assuming the writeback is to eligible zones. Mel, Johannes: could you take a look please? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org