Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4997118imm; Tue, 7 Aug 2018 10:48:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpce7j9hQEJRtiCHX0D1XSsdJWiNs8IcK9ORLPH0EoBYQxSXikRTgGeFQFh7k+OEQFkw5Hgs X-Received: by 2002:a63:64c2:: with SMTP id y185-v6mr19541017pgb.126.1533664104596; Tue, 07 Aug 2018 10:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533664104; cv=none; d=google.com; s=arc-20160816; b=eNLycqcUv5aEzVUzqrGdPAh1j83o0PdOrxWpGXIFXcAujn5OyTPCup/iqQ1e100NFq 4j4Y3A8bigKcm9xktck7MVS9RUaJm0GF3uZOMpix2M+WVZyu78KMaRXtlt++B10ihgsT dHxgyhuW5pDMUmaJctYwusv2+9d9a8c+42L8rIjnAnJSSy7ycHCdjTc3xf0NUwXUKqAB MiAz5gmQ5mZo3/0bo2U9m8e9gkEJGiQOGvuWCjijFWcpDcFGRwt36MV7+L1XCnj2b3Sa L28qY8WHsnFf4+37gMItFVLWi0grQZPcsH3MVppoj2VjOyIRmvxioYADaq854piyW8PS pI4Q== 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=omh/FBGfKcI3MCpCt8OQ+G9I+ExbAszO/V2A0FzoeCY=; b=LvG7ihBzTc9gXZQIl1ynpzPRrT6bRtLtCb1sBd7lLuYPlKAwCIvTz7gOSHb/GTG/1j tOJXLcyF40P7Mez70dDwg7KTVqz4SFucTh1p+2F12likHldvxWbg/7kzb9ATD+6z4Spr rfLEXvyHMAErw3ulE1s8OtjJ3h+YuClfDEMPGEzQVXgnXwsbG+VEfU4V6mGe5DDRZd3r YvVxIx+C2HeE2700Eh5l9lcy7yxB1kjTqrT+Dilw493X2YkZGQvNh30EHlbJmwyyWhXo lprsNFoWQouV6mAAPVe1y7qQymBDkk17FJZgNkf+XexDEgK9y7bzhNE0QLm0OUtLJseM SfvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kQtwB26y; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19-v6si1969500pgm.605.2018.08.07.10.48.09; Tue, 07 Aug 2018 10:48:24 -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=pass header.i=@gmail.com header.s=20161025 header.b=kQtwB26y; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389918AbeHGRhB (ORCPT + 99 others); Tue, 7 Aug 2018 13:37:01 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40311 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388677AbeHGRhB (ORCPT ); Tue, 7 Aug 2018 13:37:01 -0400 Received: by mail-pg1-f194.google.com with SMTP id x5-v6so8004883pgp.7 for ; Tue, 07 Aug 2018 08:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=omh/FBGfKcI3MCpCt8OQ+G9I+ExbAszO/V2A0FzoeCY=; b=kQtwB26yBVUuj1rbR2prhskg4ClKzPA03pAPvvruZAt33raeVrED+PL8QEbOOdVU0H TukRykzFpXA0MPzAOAZU7bSpusAaes7KCJ/RBKQmLLl8EtmVCn4ZyKbTXepNRA1Yfdy+ 1wtsGKfnm3rk+KhY68xILQwqz6mDhtgE+J+288aBW/x5pTJD69BxzKNCwlMskoOSRAtV Uptj3fPEWuliAChxGFB22a+x3ZIxIEq54yHR7lVkX/cv9wDno0vxIVlEdTPkv7feN6iD yn4JZSALOFIwUxlDZG3Y6BaT8OJKg46Wp3gUaeTKay0sZHoVVt3OGSVvw1nFeOIbslqV F6Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=omh/FBGfKcI3MCpCt8OQ+G9I+ExbAszO/V2A0FzoeCY=; b=Mzo19Svco78nztR3bmoXgkX4TrY1fy7wDop5NBhaMVu7sVPPl181MsC2P7H5CqkUue gJbdCuYd/oQnM/fmjJrWLlBMdwVhPkXa0xn6piuORdt6bgdYpubHXqEM55f4g39f02jV gzUHv2jY9jKHCFcUgAer09XzHfHK+jscn8wDVyQZzd4SpE8HbMNFJk9qLWtLMLeAtyu0 R72YULTNvSueUcBAnDi+I8UGoEY18PgKGf5GHYx64uJKnPtdhUZU70bmBt/57vngrGTC sD+E5GwXj7epBzPUkU+XjWZb10ge0rLNVC89pmrmJHmDQNDQwtyJ7FgMX9FVpJiXAC/b 9EwA== X-Gm-Message-State: AOUpUlGObfQ73J8Xhihp/bcSEsF2qSDWSCjDVfRcLoFZOxgx/KPo8hYL BJfdVlQgt4Rv1c2+Al5C0tU= X-Received: by 2002:a62:b0c:: with SMTP id t12-v6mr22310769pfi.36.1533655332294; Tue, 07 Aug 2018 08:22:12 -0700 (PDT) Received: from dennisz-mbp.dhcp.thefacebook.com ([2620:10d:c090:180::1:e25]) by smtp.gmail.com with ESMTPSA id s16-v6sm93491pfd.0.2018.08.07.08.22.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 08:22:11 -0700 (PDT) Date: Tue, 7 Aug 2018 08:22:08 -0700 From: Dennis Zhou To: Tejun Heo Cc: Christopher Lameter , Andrew Morton , Johannes Weiner , Roman Gushchin , kernel-team@fb.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] proc: add percpu populated pages count to meminfo Message-ID: <20180807152207.GC59704@dennisz-mbp.dhcp.thefacebook.com> References: <20180807005607.53950-1-dennisszhou@gmail.com> <0100016514bb069d-a6532c9a-b1ca-4eba-8644-c5b3935e3bd8-000000@email.amazonses.com> <20180807151146.GB3978217@devbig004.ftw2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180807151146.GB3978217@devbig004.ftw2.facebook.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tejun, On Tue, Aug 07, 2018 at 08:11:46AM -0700, Tejun Heo wrote: > Hello, > > On Tue, Aug 07, 2018 at 02:12:06PM +0000, Christopher Lameter wrote: > > > @@ -121,6 +122,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v) > > > (unsigned long)VMALLOC_TOTAL >> 10); > > > show_val_kb(m, "VmallocUsed: ", 0ul); > > > show_val_kb(m, "VmallocChunk: ", 0ul); > > > + show_val_kb(m, "PercpuPopulated:", pcpu_nr_populated_pages()); > > > > Populated? Can we avoid this for simplicities sake: "Percpu"? > > > > We do not count pages that are not present elsewhere either and those > > counters do not have "populated" in them. > > Yeah, let's do "Percpu". > Sounds good, I've dropped populated. Thanks, Dennis