From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with ESMTP id 24E94900149 for ; Wed, 5 Oct 2011 04:54:39 -0400 (EDT) Received: by bkbzs2 with SMTP id zs2so2285628bkb.14 for ; Wed, 05 Oct 2011 01:54:36 -0700 (PDT) Subject: Re: [RFCv3][PATCH 4/4] show page size in /proc/$pid/numa_maps From: Eric Dumazet In-Reply-To: References: <20111001000856.DD623081@kernel> <20111001000900.BD9248B8@kernel> <1317798564.3099.12.camel@edumazet-laptop> Content-Type: text/plain; charset="UTF-8" Date: Wed, 05 Oct 2011 10:54:51 +0200 Message-ID: <1317804891.2473.26.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Dave Hansen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, James.Bottomley@hansenpartnership.com, hpa@zytor.com Le mercredi 05 octobre 2011 A 00:23 -0700, David Rientjes a A(C)crit : > Why on earth do we want to convert a byte value into a string so a script > can convert it the other way around? Do you have a hard time parsing > 4096, 2097152, and 1073741824 to be 4K, 2M, and 1G respectively? Yes I do. I dont have in my head all possible 2^X values, but K, M, G, T : thats ok (less neurons needed) You focus on current x86_64 hardware. Some arches have lot of different choices. (powerpc has 64K, 16M, 16GB pages) In 10 years, you'll have pagesize=549755813888, or maybe pagesize=8589934592 I pretty much prefer pagesize=512GB and pagesize=8TB This is consistent with usual conventions and practice. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org