Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp259902ybm; Thu, 28 May 2020 22:40:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywd4qpgVi67xYh5OpEBLW323M0MIbpnmXoHcpTwKBiVk53AzhUFt/AeuYjifnrXJgD2hBb X-Received: by 2002:a17:907:217a:: with SMTP id rl26mr5985231ejb.209.1590730810170; Thu, 28 May 2020 22:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590730810; cv=none; d=google.com; s=arc-20160816; b=eFpUXweQk1abZvAZIR2hRcdHr+lxNW7AMn4VaEm+/K9raZRigp37e3CqCNmBjq4nEi plqSkt8Mg7aA6/FwNbvP+wOo5w+XJVZMJE8Hvej5R4BJVZCU5Dq9fTPbXERPwvsRK65c CuZSuqbnAOUh0n6bzUHjFFIDx+Fevu5KiDnO2T6jNW+24ubkJG+bkQy8OPFhg3mxRGCl KaTZIhMzSoyOYxG91WV/S3g1wltqbTclmr5MnokUplij2ZzX12xm3dBGwhLELOEf5+uV rkhoLW9A4jfmG4w3WCklzB7wRgcQK5U6AFwvY4ZWHFnET+azuZH5geL3n6y0kp4aSmZ8 eqUA== 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:ironport-sdr:ironport-sdr; bh=3G2qxlbbMoEllP44ltAwG4jJf0Mvq9NqLY67GXVXrYU=; b=DeqLq3V8K8xtgxE1XG5FMA8HQhTT4/WyPHdW8wyGabq398yk6UM7jRf5D1XpV0OO+Z +2F6FWnHID3spN4Z0lmHxXJVl4TG822GxU4fwVqNotXzcGRbNAMVVKSNPy305ErTIsvk EZ+wlHeVWPunQe9tWcvX35rEaAvu7kqZkT08xR+7jaEbQPlRSXaCkx63ECFtWHXKOY4Z zNxk+z+rzSGDCCEJL5Sb5Nt2DKvJWDIaB3gUIWWDyL8bw/znmCqZtwVvbsSzU+PqR41P WUvrY5aOXyoLccnVKcQ8osuYC7cr5tIQA6hdv5gdJPuemtEbQOMiD8aze0PsJfElyGT3 wmww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si5068592edv.394.2020.05.28.22.39.47; Thu, 28 May 2020 22:40:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726080AbgE2FhT (ORCPT + 99 others); Fri, 29 May 2020 01:37:19 -0400 Received: from mga07.intel.com ([134.134.136.100]:50821 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgE2FhR (ORCPT ); Fri, 29 May 2020 01:37:17 -0400 IronPort-SDR: oDqi3RttSbizmzPa9HQPLdFpXI2fgZhHZLMXtk1ZgurikbD7d2E1CRDXyT2BmsPSjRFhY9AsJf R6bZG+hICAYg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 22:37:17 -0700 IronPort-SDR: 6ypjrCpGe+u2ZKOsSiOCn+oHK1f4MCoA7qld/0DTbkf5PThk4gEcABNY/WvkBHNGUS/PuTL+S/ vO8+CcBfH0Vw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,447,1583222400"; d="scan'208";a="302724034" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.146.107]) by fmsmga002.fm.intel.com with ESMTP; 28 May 2020 22:37:13 -0700 Date: Fri, 29 May 2020 13:37:13 +0800 From: Feng Tang To: Qian Cai Cc: Andrew Morton , Michal Hocko , Johannes Weiner , Matthew Wilcox , Mel Gorman , Kees Cook , andi.kleen@intel.com, tim.c.chen@intel.com, dave.hansen@intel.com, ying.huang@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Konstantin Khlebnikov Subject: Re: [PATCH v4 3/4] mm/util.c: remove the VM_WARN_ONCE for vm_committed_as underflow check Message-ID: <20200529053713.GH93879@shbuild999.sh.intel.com> References: <1590714370-67182-1-git-send-email-feng.tang@intel.com> <1590714370-67182-4-git-send-email-feng.tang@intel.com> <20200529024928.GA4566@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200529024928.GA4566@lca.pw> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2020 at 10:49:28PM -0400, Qian Cai wrote: > On Fri, May 29, 2020 at 09:06:09AM +0800, Feng Tang wrote: > > As is explained by Michal Hocko: > > > > : Looking at the history, this has been added by 82f71ae4a2b8 > > : ("mm: catch memory commitment underflow") to have a safety check > > : for issues which have been fixed. There doesn't seem to be any bug > > : reports mentioning this splat since then so it is likely just > > : spending cycles for a hot path (yes many people run with DEBUG_VM) > > : without a strong reason. > > Hmm, it looks like the warning is still useful to catch issues in, > > https://lore.kernel.org/linux-mm/20140624201606.18273.44270.stgit@zurg > https://lore.kernel.org/linux-mm/54BB9A32.7080703@oracle.com/ > > After read the whole discussion in that thread, I actually disagree with > Michal. In order to get ride of this existing warning, it is rather > someone needs a strong reason that could prove the performance hit is > noticeable with some data. One problem with current check is percpu_counter_read(&vm_committed_as) is not accurate, and percpu_counter_sum() is way too heavy. Thanks, Feng