Received: by 10.223.164.202 with SMTP id h10csp581932wrb; Mon, 13 Nov 2017 11:12:32 -0800 (PST) X-Google-Smtp-Source: AGs4zMb96mnYpBQYBtGlVIQAypb1kV8NziJgdebK7KIYHMFGkd29Ht31e1TGNqmvFs0XBJyxTaU7 X-Received: by 10.99.185.28 with SMTP id z28mr7395344pge.212.1510600352488; Mon, 13 Nov 2017 11:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510600352; cv=none; d=google.com; s=arc-20160816; b=V7jAT/2eu3PYJcDT2vJakp3G6qzr+RhRgLbPOtyTDlZJeAnu+5SrDOuJomupjSuvK7 HFJxkgjK4du7BpGPXBkyV982iha+F8gPbcYFY4jMw15nKXZpYORPMi7LoOGf3z0aOuD+ LKJlAsNmHCAIZd2Ilsyv6QcSSIzhr4lCnSeXbIPYh3FoCVfveCJpw+XS6g1dKdPCh0/t cNM3vFkC3siE6R8SLd+ZH1St0VXqurCKQdMA/2Ws94FbFpxolP4L3kvRv3hcz9NPHbAe 5QD6G76WFY22J4lHh4yRLl5NV0Lh/lWDyOkd6YMrL3oHiCV8nDnfjQArQDmUpG9es/yr +Olw== 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=BxyQqpgUVd7VzsVsi43SwK8c75fOoggfe2Em/102ej0=; b=D2uucw4VBieLWR7yfq4/nezarRHgTgNx3s0OfBo8mR5iWqpR+yVrn4DJH8E4zhkVLs r74VJQS7BbsePBPlAso4iMQOmC+P16G0U40FK5gOKg8z7Fi8DX2U1GO4YRhZwhb2q6HG U7Q6zxEl0WOn2Ru32BTeeAeV5bDI8kXCpkDkY8Ci/S1fvGNZ6AoJFAjZMQyVos+p+Bl4 1sst1TwfxGfdgApL7+HXoPeGkzqzMWL2j6tIWQXvHQedug2gI7noltscW1mjU29nlfU2 DMIfyfbUy3LoCLn4a++Orc288skRevhL5S9ClxHmw6YNVQscQHfuCQRVVBvkNv3ePvG6 llPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=lYNV61v3; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si15193394plr.754.2017.11.13.11.12.20; Mon, 13 Nov 2017 11:12:32 -0800 (PST) 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=@cmpxchg.org header.s=x header.b=lYNV61v3; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754293AbdKMTLa (ORCPT + 87 others); Mon, 13 Nov 2017 14:11:30 -0500 Received: from gum.cmpxchg.org ([85.214.110.215]:48592 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752399AbdKMTL2 (ORCPT ); Mon, 13 Nov 2017 14:11:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BxyQqpgUVd7VzsVsi43SwK8c75fOoggfe2Em/102ej0=; b=lYNV61v3PWoNyUKzFucEr6B1JV j7cF9xKXzVvkCAKx6hL7Ae2UYpexi4H5lA/lYI0IpROkQ+Cszxn3WThR3Zde2CtgVTjaw2jmtPa3S D4ZqXuAEhOubLR9Zh514YjnO9kqej5wKMhffFkFLj6bN/YdALaxo/03Ewz+LB0SsXwVc=; Date: Mon, 13 Nov 2017 14:10:56 -0500 From: Johannes Weiner To: Roman Gushchin Cc: Mike Kravetz , Dave Hansen , linux-mm@kvack.org, Andrew Morton , Michal Hocko , "Aneesh Kumar K.V" , Andrea Arcangeli , kernel-team@fb.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: show stats for non-default hugepage sizes in /proc/meminfo Message-ID: <20171113191056.GA28749@cmpxchg.org> References: <20171113160302.14409-1-guro@fb.com> <8aa63aee-cbbb-7516-30cf-15fcf925060b@intel.com> <20171113181105.GA27034@castle> <2579a26d-81d1-732e-ef57-33bb4c293cd6@oracle.com> <20171113184454.GA18531@castle> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171113184454.GA18531@castle> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 13, 2017 at 06:45:01PM +0000, Roman Gushchin wrote: > Or, at least, some total counter, e.g. how much memory is consumed > by hugetlb pages? I'm not a big fan of the verbose breakdown for every huge page size. As others have pointed out such detail exists elswhere. But I do think we should have a summary counter for memory consumed by hugetlb that lets you know how much is missing from MemTotal. This can be large parts of overall memory, and right now /proc/meminfo will give the impression we are leaking those pages. Maybe a simple summary counter for everything set aside by the hugetlb subsystem - default and non-default page sizes, whether they're used or only reserved etc.? Hugetlb 12345 kB From 1583977636630820226@xxx Mon Nov 13 18:46:29 +0000 2017 X-GM-THRID: 1583967529103555463 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread