Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5060643imm; Tue, 7 Aug 2018 11:57:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe0y8xAurLbw9Z8/GZ5NvIf3Ljx0VBxsCGN1QnmewnB9D9af3IZIVftHDpMN0WDqNjSBgkY X-Received: by 2002:a62:2459:: with SMTP id r86-v6mr22994930pfj.31.1533668260300; Tue, 07 Aug 2018 11:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533668260; cv=none; d=google.com; s=arc-20160816; b=UuYt/AvrojqeKYy8I/rrInTu98VqqhYNKNNRlhwC0T+FSMF/qp6FP2yXznTqy0/f7I QSQBexL66bQO1x0Ku88yjmzX2ABAnWxmTMWf/IQ60VI9sVPFwxtAx+FodDLzS706qnzn ftWhI09edxp29cbVGzY+xA/BJYh/AdBZJzt5XuAy09E98boP560+aSxscMAmWzpMVMby zOaKf+U7q0CifGfPagFlnnmD+WSeILXbFtWuFA3PUzyaHHCmLpRaAUt7TgXd31o5oD/l RQhOYj7r0kna3H1OnWeXxeM0NSEFvrOKWuv1tL4MgHPbQ6blWQ5QdkDeESuamYiRHtJM h1Rg== 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=QfKl/bgHlm83BZJ1sAv0SmilVlGdx7xbIP86Rv59nVk=; b=HIUNmH/u4G7qJoZQTgwn1HYn2fNH0ehOnz8tSdypHOJUs+lUBXnwQg4kXsqLL9H00z O13bLq4M3mBffE/DOvha2aP+yUv/22wrOAQHu3B0xZUT5ok+w1LieDAaThVHChj5Hfiu nPiL1g+V56shT8GKaVs2HsIrrpFXviV1GxkS+JeW1Uu3GncT/PXXsbzelUBJxxgwg6bk FdPZXBt20puQIT3NbgZcdSTMzy2PatP/LcNZJjj2J9cUlBzGvXFmdehDal369VUwC+jA xUn0BOw3Ncg24Zx+iawoRd0AYvQPyaKTetBSqAhe+75oTPNRzo+Mc2/UPMJ6RXj5hcAp mgng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UKVd6GFz; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8-v6si1571999ple.189.2018.08.07.11.57.25; Tue, 07 Aug 2018 11:57:40 -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=UKVd6GFz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389913AbeHGVH2 (ORCPT + 99 others); Tue, 7 Aug 2018 17:07:28 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:34692 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbeHGVH2 (ORCPT ); Tue, 7 Aug 2018 17:07:28 -0400 Received: by mail-yw1-f67.google.com with SMTP id j68-v6so5328678ywg.1; Tue, 07 Aug 2018 11:51: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=QfKl/bgHlm83BZJ1sAv0SmilVlGdx7xbIP86Rv59nVk=; b=UKVd6GFze1oAOHs1o/WfXHGTCVqqgd2iM07lXiwtVFRtVvQ0hXvzzn+kSgK604YaGa fG1wAMSYslHyFLp1k8KvIvI6H8ul6Wzaxusn1m4lWSq6byd428HfyGdBvB4Br/Y3YU18 8FPubj+6rxIv5phrddLnhS8dGnyFcOVBOq62e+DzEQhD+6Q9JHGYEh/Fggt/qPp565Nv u16dcuHUabBboY/Q0fbYjvRLXYzs3rvf4Y7vZi0VeIE54yf1wR5WtEpyrgNsV223i26Y K/CAxzQCp0q5mQlP0ReVEl3Nhkup1PkgTgCJrBaIlWdksUu8cIIupqXnl0DxjFQyvqG9 ROMA== 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=QfKl/bgHlm83BZJ1sAv0SmilVlGdx7xbIP86Rv59nVk=; b=ZvExprzsVIgU2wq9NeeuAYBtWikTFFuYCS8+aGHh/rXHB105TC0Di3LYh0XyZ1WbDI IuNs0IfzhgxgGy6VG/2cihPJuz5tykwLgvE/V2mfkwFB3TLdhcKcxH7ts47cRox8o+uG LW0GGf70YRjhQvGAFy8v7lmBC9gl/KhOBiTjqE1UzIokoRvb65Uy53hxeUZ4TYnVIZtJ xpVSGsU5Xbr8nIfcpAEYB/y1Xg6X9l3UuVV1o1t6RhpzljczHfClHn6XK2kC4iLPmkxY gO+/sqGZDgxO/VYQ20waGKdXqtfkbo7A32n1UHsl4JQgyWTtQZ16eoBN3eWIMRTTGRwd Mv9w== X-Gm-Message-State: AOUpUlFofhwMQL1OX+MNn4Pe7IH0wbqnT10wN674ojbwkSFJnp5kdiyz mqb8Cw6bljyudQ/9uBqeGQY= X-Received: by 2002:a81:25d6:: with SMTP id l205-v6mr10687118ywl.242.1533667905111; Tue, 07 Aug 2018 11:51:45 -0700 (PDT) Received: from localhost ([2620:10d:c091:200::2:2c4b]) by smtp.gmail.com with ESMTPSA id g16-v6sm1240401ywe.11.2018.08.07.11.51.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 11:51:44 -0700 (PDT) Date: Tue, 7 Aug 2018 11:51:41 -0700 From: Tejun Heo To: Dennis Zhou Cc: Andrew Morton , Johannes Weiner , Christoph Lameter , Roman Gushchin , Vlastimil Babka , kernel-team@fb.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Linux API Subject: Re: [PATCH v2] proc: add percpu populated pages count to meminfo Message-ID: <20180807185141.GC3978217@devbig004.ftw2.facebook.com> References: <20180807184723.74919-1-dennisszhou@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180807184723.74919-1-dennisszhou@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Dennis. On Tue, Aug 07, 2018 at 11:47:23AM -0700, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > Currently, percpu memory only exposes allocation and utilization > information via debugfs. This more or less is only really useful for > understanding the fragmentation and allocation information at a > per-chunk level with a few global counters. This is also gated behind a > config. BPF and cgroup, for example, have seen an increase use causing > increased use of percpu memory. Let's make it easier for someone to > identify how much memory is being used. > > This patch adds the "Percpu" stat to meminfo to more easily look up how > much percpu memory is in use. This number includes the cost for all > allocated backing pages and not just isnight at the a unit, per chunk > level. Metadata is excluded. I think excluding metadata is fair because > the backing memory scales with the numbere of cpus and can quickly > outweigh the metadata. It also makes this calculation light. > > Signed-off-by: Dennis Zhou Acked-by: Tejun Heo Andrew, if this looks good, can you please route this? Thanks. -- tejun