Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756773Ab1CGXZB (ORCPT ); Mon, 7 Mar 2011 18:25:01 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:58810 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755982Ab1CGXZA convert rfc822-to-8bit (ORCPT ); Mon, 7 Mar 2011 18:25:00 -0500 MIME-Version: 1.0 In-Reply-To: <20110307231448.GA2946@spritzera.linux.bs1.fc.nec.co.jp> References: <1299503155-6210-1-git-send-email-pholasek@redhat.com> <1299527214.8493.13263.camel@nimitz> <20110307145149.97e6676e.akpm@linux-foundation.org> <20110307231448.GA2946@spritzera.linux.bs1.fc.nec.co.jp> Date: Mon, 7 Mar 2011 18:24:58 -0500 Message-ID: Subject: Re: [PATCH] hugetlb: /proc/meminfo shows data for all sizes of hugepages From: Eric B Munson To: Naoya Horiguchi Cc: Andrew Morton , Dave Hansen , Petr Holasek , linux-kernel@vger.kernel.org, anton@redhat.com, Andi Kleen , Mel Gorman , Wu Fengguang , linux-mm@kvack.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1410 Lines: 43 2011/3/7 Naoya Horiguchi : >> > >> > Could we do something where we keep the default hpage_size looking like >> > it does now, but append the size explicitly for the new entries? >> > >> > HugePages_Total(1G): ? ? ? 2 >> > HugePages_Free(1G): ? ? ? ?1 >> > HugePages_Rsvd(1G): ? ? ? ?1 >> > HugePages_Surp(1G): ? ? ? ?1 >> > >> >> Let's not change the existing interface, please. >> >> Adding new fields: OK. >> Changing the way in whcih existing fields are calculated: OKish. >> Renaming existing fields: not OK. > > How about lining up multiple values in each field like this? > > ?HugePages_Total: ? ? ? 5 2 > ?HugePages_Free: ? ? ? ?2 1 > ?HugePages_Rsvd: ? ? ? ?3 1 > ?HugePages_Surp: ? ? ? ?1 1 > ?Hugepagesize: ? ? ? 2048 1048576 kB > ?... > > This doesn't change the field names and the impact for user space > is still small? > > Thanks, > Naoya > I don't like this either, Dave's suggestion impacts userspace the least, as code that looks for default huge page size pool info will still find it, but it won't match the sized entries. Your suggestion means that I need to change how libhugetlbfs, for instance, parses meminfo. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/