Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2639956ybg; Thu, 24 Oct 2019 12:52:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3G+mCa8SMnrsDiiUh45SVETIXr2A/h89tQIzQtA8i5o05DASqXE8E6ODr2JONr6KoqtID X-Received: by 2002:a17:906:4813:: with SMTP id w19mr24774231ejq.258.1571946741769; Thu, 24 Oct 2019 12:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571946741; cv=none; d=google.com; s=arc-20160816; b=lizlyZnJWNGeu8Niup3qLrS4L/Udnud4KhY8m78d0aHqF/8wLZKQbg34l+VWlPyxvw JocOevE0ois4MiC0/KZ45nk7S2WyUnjSY5NutuVfUW8WzZOdrqXgiqhziNhF9QE6NdgI Wh7esRkC7m1wny7hSeyMadm5b2Qd438fNg+kwZDW38v2eXOIPvk0QKzpx5pgbNBjoe6w 6jN9faXdqPUYunK7ruMIy8ViVwYx0mg5cGR6y8rdAn1+7XLrqLiRzfaEZVgUNqFBJgbd dAKr1HBm5d8lDzzwywdjL9jeh3NWaTBS61/sfAHq4A1CDysQvyGgGlZ4b+KgI63LXZxz I0Pg== 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; bh=/VpPUMvwtD1FcOSPNXkFK0NkT0yCwTBSVtaNCxHcjhU=; b=SmlPl75SN+xGt+vbMogW4a/lztu2wqmx9AiJly4yivbA6GqL6FkUu8Esi/DYMmFNo/ 2dcZ7gfXW4HfAm94YFVrzSK3tjWortqXaS7Cc1XQjDTZ5B+bfUqsT/ynV6ZbfdqGbj2H OX8sPPGgAgEMVLAIAz9eHEF4PdEdEbnYB//4oeq/4YzKZQLCWYtiXexxIFyc7ff/rXbQ TT6KGwBeBwKhTZCbLprifLAiibYy1ReSdvV8nW9VYMGr3K7qaZzgbLfCMaSqBFfZ0/+D MZPccUVhWtAtSsbnf4BpsuWn78Jj1w8BCgmJ5JoJtB+PoEDFGuDX0BVtom82OkzBbWn+ cLkA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si16584408edq.60.2019.10.24.12.51.49; Thu, 24 Oct 2019 12:52:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437271AbfJXDdR (ORCPT + 99 others); Wed, 23 Oct 2019 23:33:17 -0400 Received: from mga12.intel.com ([192.55.52.136]:31425 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392870AbfJXDdR (ORCPT ); Wed, 23 Oct 2019 23:33:17 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 20:33:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,223,1569308400"; d="scan'208";a="188457716" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.113]) by orsmga007.jf.intel.com with ESMTP; 23 Oct 2019 20:33:13 -0700 Date: Thu, 24 Oct 2019 11:33:13 +0800 From: Feng Tang To: Waiman Long Cc: Qian Cai , Andrew Morton , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Johannes Weiner , Michal Hocko , Roman Gushchin , Vlastimil Babka , Konstantin Khlebnikov , Jann Horn , Song Liu , Greg Kroah-Hartman , Rafael Aquini Subject: Re: [PATCH] mm/vmstat: Reduce zone lock hold time when reading /proc/pagetypeinfo Message-ID: <20191024033313.GA42124@shbuild999.sh.intel.com> References: <20191022162156.17316-1-longman@redhat.com> <20191022145902.d9c4a719c0b32175e06e4eee@linux-foundation.org> <2236495a-ead0-e08e-3fb6-f3ab906b75b6@redhat.com> <1571842093.5937.84.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Oct 23, 2019 at 11:01:04PM +0800, Waiman Long wrote: > On 10/23/19 10:48 AM, Qian Cai wrote: > >>> this still isn't a bulletproof fix. Maybe just terminate the list > >>> walk if freecount reaches 1024. Would anyone really care? > >>> > >>> Sigh. I wonder if anyone really uses this thing for anything > >>> important. Can we just remove it all? > >>> > >> Removing it will be a breakage of kernel API. > > Who cares about breaking this part of the API that essentially nobody will use > > this file? > > > There are certainly tools that use /proc/pagetypeinfo and this is how > the problem is found. I am not against removing it, but we have to be > careful and deprecate it in way that minimize user impact. We have been using the /proc/pagetypeinfo for debugging, mainly for client platforms like phones/tablets. We met problems like very slow system response or OOM things, and many of them could be related with memory pressure or fragmentation issues, where monitoring /proc/pagetypeinfo will be very useful for debugging. So I think Michal's idea to change it to 0400 is a good idea. Thanks, Feng > Cheers, > Longman > >