Received: by 10.192.165.156 with SMTP id m28csp1237567imm; Wed, 18 Apr 2018 06:33:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+BP7GgbTfFQ4VZOFeMVPcv1rVwMP7ESXaRyRTKpw7JhR6IvE46abD/hj2EcHzwBVs89cN/ X-Received: by 10.98.99.4 with SMTP id x4mr1997168pfb.179.1524058387038; Wed, 18 Apr 2018 06:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524058386; cv=none; d=google.com; s=arc-20160816; b=E6E+NvjFPSwvrLDRZA2oNqUFZkY8zi4es3fVpTjLBxeeNZfNgEQXZ8w6OR96yykX1i G0ECOtZHLoIlc9Vwqs34xMeeSn765dcOov53ZsdQApEqXUu/p4loAPuE7EtOcTwhsmVr 5846eii/JHGjyCjhj7LK4V7EcixLSQYUt+TJTQcC+wMlN9FbK+zMIry5fWfgYl2evUV8 uXwWiRk9aeyM5k/G0DqQ6fte1du4TOV5t8Rn1e/cMKNj7twMKZ3JeG2aMzsmVppTM+lm +/K3jqLMsBH+bUF3jNC7GLqLqc9RwrOevSa6TasSj6t1iAntZO+gOcTaMzvk+GVmiMMV iYPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HCgsZPe1uvoHDj/YLtdoL6EsdGgJ/+fwltvewYvGZGk=; b=1HEW+DWLSPme8VwkYzDkQmDfYBWIQMpR34oQ+eHy4VkOZkNGQ40UU7Fg0Ebp73W1j5 hGBubfr9RyHBqkKungIuKohDhDypEUAU2FgHaeDR6eMP8jpMMFVztdZNrYfAaCBEBRqW xmAi9m/7ONCT6kV4UvT5bFRmC/VbrRgGDml+tU11Ir9krct5KgUaN2fHbUU0SooeQxCL +8mDQMMyH3jkbTFWw/arcvge/GGpc95Yo+EK3OnXMZCzGqqP3j+eNBybAiYJEYhkepHe y6hxzxNKAu7ABYzTXFmUovAvN7uENBel+2jAhHGuqiLxxfgol7X+QxZ46ZcXnxFWp8F+ /uMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KEs7SWdX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si1140973pfn.63.2018.04.18.06.32.50; Wed, 18 Apr 2018 06:33:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KEs7SWdX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753938AbeDRNbm (ORCPT + 99 others); Wed, 18 Apr 2018 09:31:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45852 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753442AbeDRNbl (ORCPT ); Wed, 18 Apr 2018 09:31:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HCgsZPe1uvoHDj/YLtdoL6EsdGgJ/+fwltvewYvGZGk=; b=KEs7SWdX0GCjBdChCBW5zsMD8 2wbSenhy656c7fHNWqoObq1SQSby4Wqu/DZkudsaaM6jmin2oijfGxrg9HG2BeWn0rdnrjT7/tvkm c2RuGD5iQvkHxzKayw1OUzQZiOKFNKjMvjCFilXNRmYP72HSehdW73SlZSBG+8etyF90XftSsy5Zv T/tPntnb7ENOl2O1LMZIFREf9D965ZQ3CqV6fR47zaQrO7Hk/ue/fOsEvXlFdcXhOi+A3CZo7cfxg 3l/OVufOQxFcA8xbYamMW68dynZStioaiaICsEF95rd0YK3IdxpzZt2YQ4QxEOWDwn1CwA24V33zq lEyTeCmZA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8nBT-0004C2-Q0; Wed, 18 Apr 2018 13:31:39 +0000 Date: Wed, 18 Apr 2018 06:31:39 -0700 From: Matthew Wilcox To: Minchan Kim Cc: Andrew Morton , LKML , linux-mm , Johannes Weiner , Michal Hocko , Vladimir Davydov Subject: Re: [PATCH] mm:memcg: add __GFP_NOWARN in __memcg_schedule_kmem_cache_create Message-ID: <20180418133139.GB27475@bombadil.infradead.org> References: <20180418022912.248417-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180418022912.248417-1-minchan@kernel.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2018 at 11:29:12AM +0900, Minchan Kim wrote: > If there are heavy memory pressure, page allocation with __GFP_NOWAIT > fails easily although it's order-0 request. > I got below warning 9 times for normal boot. > > Let's not make user scared. Actually, can you explain why it's OK if this fails? As I understand this code, we'll fail to create a kmalloc cache for this memcg. What problems does that cause? > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 448db08d97a0..671d07e73a3b 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -2200,7 +2200,7 @@ static void __memcg_schedule_kmem_cache_create(struct mem_cgroup *memcg, > { > struct memcg_kmem_cache_create_work *cw; > > - cw = kmalloc(sizeof(*cw), GFP_NOWAIT); > + cw = kmalloc(sizeof(*cw), GFP_NOWAIT | __GFP_NOWARN); > if (!cw) > return; > > -- > 2.17.0.484.g0c8726318c-goog >