Received: by 10.192.165.156 with SMTP id m28csp946679imm; Wed, 18 Apr 2018 00:56:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49iELKHwiXQJZ8J/LVuu1sytLbKNy9RVtO8BI8PaDw0yNGfLmAsbsxwcQNg1WGNJ1fuZGcP X-Received: by 10.98.214.152 with SMTP id a24mr1031568pfl.159.1524038169141; Wed, 18 Apr 2018 00:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524038169; cv=none; d=google.com; s=arc-20160816; b=Lk8H61d1Ab2Dhj4Lv4FlfMo+6e4dRUyZf7Nb5O2NQroOWB4H4GOHNqmQV/xfe3cNFN PTd0YhhfiYnNLTkPbTewHbS6rDJRCl/noYxZvQH99kBbfzfGCH7SEm7re/Z6DX6901DU XA+HRPuQGdELpOGka8xAgBJfv6JtMnT2NkTjAwD0ZBBQmvojrJUODioAB+X22ot8N/GB EYNN72tfJaXUmiTsRlK23HObJ1zp+LUMv3IoSnWak4JL9MP2XA5P2Ysjp4KVzyt40/ir LVlgPkKozGgN+khqv3sfn6mpZ0icjVlKZ94k1BJNE8/RYRnTFTLlDXrhNEZIrpyqAYmS VNpQ== 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:arc-authentication-results; bh=k4Mtz2VQrlNODLAGvKMbpTdPssXLUKPaJpmLu9VCHJI=; b=JVsB8WkrOAojYdjn7ICXHQD6QPUjcolj+63kUL6WdtU8EvqKGHFU4pMhLwQu3GKcuB ArCsj0XbqtM82ImYPw6+Tc2iHjh6RJ4EpDuCS+tp6L+jIJqOara+L+2ChhKLD7Sb+869 hu19+mHfszj4vGQyNSCDN8cX2jkdKIiNnP0yM5fW655DWbIOgx8LWdA0jcGMHmbxeTQn tz39xhhthNeDLtOAwM5lLesVcBiU7WnrahtMSOl5+qcE5AfvTZ5etzJiTIHh3gtGPCAL YK9SPAuRy3lf6i7wb/cd+o86xvTxHvayPmttLgOnQvlmawFGQg2aD7t1gf4TEZ5dCD1f +5lw== ARC-Authentication-Results: i=1; mx.google.com; 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 t198si640607pgc.600.2018.04.18.00.55.54; Wed, 18 Apr 2018 00:56:09 -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; 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 S1753022AbeDRHym (ORCPT + 99 others); Wed, 18 Apr 2018 03:54:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:39033 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256AbeDRHyj (ORCPT ); Wed, 18 Apr 2018 03:54:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4CB8FABB4; Wed, 18 Apr 2018 07:54:38 +0000 (UTC) Date: Wed, 18 Apr 2018 09:54:37 +0200 From: Michal Hocko To: Minchan Kim Cc: Andrew Morton , LKML , linux-mm , Johannes Weiner , Vladimir Davydov Subject: Re: [PATCH] mm:memcg: add __GFP_NOWARN in __memcg_schedule_kmem_cache_create Message-ID: <20180418075437.GP17484@dhcp22.suse.cz> References: <20180418022912.248417-1-minchan@kernel.org> <20180418072002.GN17484@dhcp22.suse.cz> <20180418074117.GA210164@rodete-desktop-imager.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180418074117.GA210164@rodete-desktop-imager.corp.google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 18-04-18 16:41:17, Minchan Kim wrote: > On Wed, Apr 18, 2018 at 09:20:02AM +0200, Michal Hocko wrote: > > On Wed 18-04-18 11:29:12, Minchan Kim wrote: [...] > > > Let's not make user scared. > > > > This is not a proper explanation. So what exactly happens when this > > allocation fails? I would suggest something like the following > > " > > __memcg_schedule_kmem_cache_create tries to create a shadow slab cache > > and the worker allocation failure is not really critical because we will > > retry on the next kmem charge. We might miss some charges but that > > shouldn't be critical. The excessive allocation failure report is not > > very much helpful. Replace it with a rate limited single line output so > > that we know that there is a lot of these failures and that we need to > > do something about it in future. > > " > > > > With the last part to be implemented of course. > > If you want to see warning and catch on it in future, I don't see any reason > to change it. Because I didn't see any excessive warning output that it could > make system slow unless we did ratelimiting. Yeah, but a single line would be as much informative and less scary to users. > It was a just report from non-MM guys who have a concern that somethings > might go wrong on the system. I just wanted them relax since it's not > critical. I do agree with __GFP_NOWARN but I think a single line warning is due and helpful for further debugging. -- Michal Hocko SUSE Labs