Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758562AbbLBOJB (ORCPT ); Wed, 2 Dec 2015 09:09:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:40049 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758502AbbLBOI7 (ORCPT ); Wed, 2 Dec 2015 09:08:59 -0500 Date: Wed, 2 Dec 2015 14:08:52 +0000 From: Mel Gorman To: Michal Hocko Cc: "Huang, Ying" , lkp@01.org, LKML , Andrew Morton , Rik van Riel , Vitaly Wool , David Rientjes , Christoph Lameter , Johannes Weiner , Vlastimil Babka , Will Deacon , Linus Torvalds Subject: Re: [lkp] [mm, page_alloc] d0164adc89: -100.0% fsmark.app_overhead Message-ID: <20151202140845.GA19677@suse.de> References: <87ziy1a89f.fsf@yhuang-dev.intel.com> <20151126132511.GG14880@techsingularity.net> <87oaegmeer.fsf@yhuang-dev.intel.com> <20151127100647.GH14880@techsingularity.net> <87h9k4kzcv.fsf@yhuang-dev.intel.com> <20151202110009.GA2015@techsingularity.net> <20151202120046.GE25284@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20151202120046.GE25284@dhcp22.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3007 Lines: 60 On Wed, Dec 02, 2015 at 01:00:46PM +0100, Michal Hocko wrote: > On Wed 02-12-15 11:00:09, Mel Gorman wrote: > > On Mon, Nov 30, 2015 at 10:14:24AM +0800, Huang, Ying wrote: > > > > There is no reference to OOM possibility in the email that I can see. Can > > > > you give examples of the OOM messages that shows the problem sites? It was > > > > suspected that there may be some callers that were accidentally depending > > > > on access to emergency reserves. If so, either they need to be fixed (if > > > > the case is extremely rare) or a small reserve will have to be created > > > > for callers that are not high priority but still cannot reclaim. > > > > > > > > Note that I'm travelling a lot over the next two weeks so I'll be slow to > > > > respond but I will get to it. > > > > > > Here is the kernel log, the full dmesg is attached too. The OOM > > > occurs during fsmark testing. > > > > > > Best Regards, > > > Huang, Ying > > > > > > [ 31.453514] kworker/u4:0: page allocation failure: order:0, mode:0x2200000 > > > [ 31.463570] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 4.3.0-08056-gd0164ad #1 > > > [ 31.466115] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 > > > [ 31.477146] Workqueue: writeback wb_workfn (flush-253:0) > > > [ 31.481450] 0000000000000000 ffff880035ac75e8 ffffffff8140a142 0000000002200000 > > > [ 31.492582] ffff880035ac7670 ffffffff8117117b ffff880037586b28 ffff880000000040 > > > [ 31.507631] ffff88003523b270 0000000000000040 ffff880035abc800 ffffffff00000000 > > > > This is an allocation failure and is not a triggering of the OOM killer so > > the severity is reduced but it still looks like a bug in the driver. Looking > > at the history and the discussion, it appears to me that __GFP_HIGH was > > cleared from the allocation site by accident. I strongly suspect that Will > > Deacon thought __GFP_HIGH was related to highmem instead of being related > > to high priority. Will, can you review the following patch please? Ying, > > can you test please? > > I have posted basically the same patch > http://lkml.kernel.org/r/1448980369-27130-1-git-send-email-mhocko@kernel.org > Sorry. I missed that while playing catch-up and I wasn't on the cc. I'll drop this patch now. Thanks for catching it. > I didn't mention this allocation failure because I am not sure it is > really related. > I'm fairly sure it is. The failure is an allocation site that cannot sleep but did not specify __GFP_HIGH. Such callers are normally expected to be able to recover gracefully and probably should specify _GFP_NOWARN. kswapd would have woken up as normal but the free pages were below the min watermark so there was a brief failure. -- Mel Gorman SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/