Received: by 10.192.165.148 with SMTP id m20csp317576imm; Thu, 19 Apr 2018 22:44:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+EoUAEpuNcuk3/ee/iETMwAlLWDP6CvFV2tZtgf/N47nSmtt72sPvMEFIklElzF7B2cBJi X-Received: by 10.99.170.72 with SMTP id x8mr2333885pgo.398.1524203047961; Thu, 19 Apr 2018 22:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524203047; cv=none; d=google.com; s=arc-20160816; b=h4sRKzOmEmVaiYecPdgFW9U3aEEzREf0xhPILQQKMF4SmzREWHp406N1AmD4RuEbAg IVnnh4lNFmu6I1Xbsf/rHUvAk6s25td3YX0sCovsAF1jFJUbjEktkj4gX76dewYXHS5/ +S+4y71spHgGqL16DC6vzbvZdjCy7HHER/Ue4sKPjG8q6XRWOZPcpNTFfDvgC/qyYOrG TYmFZQsx5LgpjxaBLXDwANw+kxiKe6xiVbjG7ciOFGYUceQteh7mkZq14Bdel7E9Xpw1 gKwNvs0nSJphG6oEzRPmAMcLHc+IR8gyWOuSn7uQklXgVbrxTh+7v/yKizKqyDoR4/Qr CLOw== 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=cysPBPMEAm/SRqgYpO7cdZUh4GpJc0Vdt9Evv9UQu0s=; b=QG0p5gdW5WDK5FtnxerKkLrJqiB5VXb7WzyRh0qS6lURMXhx+l+4ZR123DC7XdNAzL vxC5/LXmf4RgJZy6REVzy0i1BgJZnT0PmltEegUcNXmfKwtQIih5aJ2rgzWDMlh9c+al zv3gOMbyydnoCB3wlUg+fGeAXr6l5BjHL/MK6bXktrtExkuK06qeZaNtK0d78s/gugXv rBk/zogHmqVS2D2cM3FcaZYn5/2re+/9+BHF9KMuNPJsDJgX6h3+QYJ1PyE0HA440nr/ K8Ge0GNLZbVn5IO8rVW7TlTtNnfaBzGPUEDdJs6VNuC4V0GlQay1Onk9e+ILDgaagxpK YwxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hwhT8yXl; 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 d24-v6si4964006plr.225.2018.04.19.22.43.53; Thu, 19 Apr 2018 22:44:07 -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=@gmail.com header.s=20161025 header.b=hwhT8yXl; 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 S1753485AbeDTFmr (ORCPT + 99 others); Fri, 20 Apr 2018 01:42:47 -0400 Received: from mail-pl0-f46.google.com ([209.85.160.46]:42816 "EHLO mail-pl0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478AbeDTFmp (ORCPT ); Fri, 20 Apr 2018 01:42:45 -0400 Received: by mail-pl0-f46.google.com with SMTP id t20-v6so4618704ply.9 for ; Thu, 19 Apr 2018 22:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cysPBPMEAm/SRqgYpO7cdZUh4GpJc0Vdt9Evv9UQu0s=; b=hwhT8yXlLJCOAGXEErdCukbZQFKS5Er0LI6XS2pP5cUMIGimug7IMBEZtIp6Z98Uz0 aNOuUh1GN7g2SHIKYGodCxXnl5iw2uCTAomW5c+5cTPqiiy6zmGtCI7xPUWBPVN/TxWA OoqB4W37Bvbnm+hlDNkbTfTOcLA7s2kPSAlOs3LPuxA/vVquzPcffr5f9n+MJZrL9gzg CRyn5TXzkF8FZm6Khzx0YNDOdwGvWTNg8bThMhZawFS+nunYkhXJNLaUi0i5LD9TDJS9 x4LmCQw5AzJQhLPyukt1anhlcrNhcKRZ39YQ5QGL6t4btd6vWEHweHwIAY9a6dzxSurE 6vJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=cysPBPMEAm/SRqgYpO7cdZUh4GpJc0Vdt9Evv9UQu0s=; b=XYA1gZlGV9QV+sY/V3Ex8D3Hj/bzfkx2IWiTrHe6HV9m+GjLLhvls9M3zmT08BCMfN WABrB9UG104P283mSFjbmgB5W7mEl8+CiItXsC99uAaG4gfts9WmBk4Nae8Ho7Nk+l/Z I7Ri98i++VDH6ehZkqngc0/aGDMUChfBuM7PtDm0Cll2zDOJ1+NTDMEOBGiwxqaovkxP nq99PKOuAjZF/URdJFYtyb8koXEKQXGGMtwR6iS7vV8icRBcPjsM9SIHTWiNDWNDyyIy MAO2r0KSbFrJD4X3GdR4B9PKY7Nzd7pNwL0oSM7pedt513OTLtgdRYhsR4ZMd1BRb/Fu AXNg== X-Gm-Message-State: ALQs6tAD+D58kVTbv1eYVTe+TOs3Y/XPVkOuw2KBlmmafCdZsaruAtff QxDwtQtJxCtVFE9WViVLowU= X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr8902852pll.281.1524202965006; Thu, 19 Apr 2018 22:42:45 -0700 (PDT) Received: from rodete-desktop-imager.corp.google.com ([2401:fa00:d:10:affa:813f:5380:6613]) by smtp.gmail.com with ESMTPSA id z127sm8901259pfb.72.2018.04.19.22.42.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Apr 2018 22:42:43 -0700 (PDT) Date: Fri, 20 Apr 2018 14:42:39 +0900 From: Minchan Kim To: Michal Hocko Cc: David Rientjes , 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: <20180420054239.GA221997@rodete-desktop-imager.corp.google.com> References: <20180418022912.248417-1-minchan@kernel.org> <20180418072002.GN17484@dhcp22.suse.cz> <20180418074117.GA210164@rodete-desktop-imager.corp.google.com> <20180418075437.GP17484@dhcp22.suse.cz> <20180418132328.GB210164@rodete-desktop-imager.corp.google.com> <20180418132715.GD17484@dhcp22.suse.cz> <20180419064005.GL17484@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180419064005.GL17484@dhcp22.suse.cz> 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 Thu, Apr 19, 2018 at 08:40:05AM +0200, Michal Hocko wrote: > On Wed 18-04-18 11:58:00, David Rientjes wrote: > > On Wed, 18 Apr 2018, Michal Hocko wrote: > > > > > > Okay, no problem. However, I don't feel we need ratelimit at this moment. > > > > We can do when we got real report. Let's add just one line warning. > > > > However, I have no talent to write a poem to express with one line. > > > > Could you help me? > > > > > > What about > > > pr_info("Failed to create memcg slab cache. Report if you see floods of these\n"); > > > Thanks you, Michal. However, hmm, floods is very vague to me. 100 time per sec? 10 time per hour? I guess we need more guide line to trigger user's reporting if we really want to do. > > > > Um, there's nothing actionable here for the user. Even if the message > > directed them to a specific email address, what would you ask the user for > > in response if they show a kernel log with 100 of these? > > We would have to think of a better way to create shaddow memcg caches. > > > Probably ask > > them to use sysrq at the time it happens to get meminfo. But any user > > initiated sysrq is going to reveal very different state of memory compared > > to when the kmalloc() actually failed. > > Not really. > > > If this really needs a warning, I think it only needs to be done once and > > reveal the state of memory similar to how slub emits oom warnings. But as > > the changelog indicates, the system is oom and we couldn't reclaim. We > > can expect this happens a lot on systems with memory pressure. What is > > the warning revealing that would be actionable? > > That it actually happens in real workloads and we want to know what > those workloads are. This code is quite old and yet this is the first > some somebody complains. So it is most probably rare. Maybe because most > workloads doesn't create many memcgs dynamically while low on memory. > And maybe that will change in future. In any case, having a large splat > of meminfo for GFP_NOWAIT is not really helpful. It will tell us what we > know already - the memory is low and the reclaim was prohibited. We just > need to know that this happens out there. The workload was experimenting creating memcg per app on embedded device but at this moment, I don't consider kmemcg at this moment so I can live with disabling kmemcg, even. Based on it, I cannot say whether it's real workload or not. When I see replies of this thread, it's arguble to add such one-line warn so if you want it strongly, could you handle by yourself? Sorry but I don't have any interest on the arguing. Thanks.