From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by kanga.kvack.org (Postfix) with ESMTP id 727716B0038 for ; Mon, 13 Nov 2017 11:11:08 -0500 (EST) Received: by mail-wr0-f197.google.com with SMTP id v88so9400935wrb.22 for ; Mon, 13 Nov 2017 08:11:08 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id q17si1150823edg.39.2017.11.13.08.11.03 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 13 Nov 2017 08:11:03 -0800 (PST) Date: Mon, 13 Nov 2017 17:11:02 +0100 From: Michal Hocko Subject: Re: [PATCH] mm: show stats for non-default hugepage sizes in /proc/meminfo Message-ID: <20171113161102.rieyg55drdqkri6e@dhcp22.suse.cz> References: <20171113160302.14409-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171113160302.14409-1-guro@fb.com> Sender: owner-linux-mm@kvack.org List-ID: To: Roman Gushchin Cc: linux-mm@kvack.org, Andrew Morton , Johannes Weiner , Mike Kravetz , "Aneesh Kumar K.V" , Andrea Arcangeli , kernel-team@fb.com, linux-kernel@vger.kernel.org On Mon 13-11-17 16:03:02, Roman Gushchin wrote: > Currently we display some hugepage statistics (total, free, etc) > in /proc/meminfo, but only for default hugepage size (e.g. 2Mb). > > If hugepages of different sizes are used (like 2Mb and 1Gb on x86-64), > /proc/meminfo output can be confusing, as non-default sized hugepages > are not reflected at all, and there are no signs that they are > existing and consuming system memory. Yes this sucks but we do have per numa node per h-state stats in sysfs already /sys/devices/system/node/node*/hugepages I know it is another source of the information but is there any reason you cannot use it? -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org