Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754417Ab2JVQmo (ORCPT ); Mon, 22 Oct 2012 12:42:44 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:58941 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751079Ab2JVQmn (ORCPT ); Mon, 22 Oct 2012 12:42:43 -0400 MIME-Version: 1.0 Reply-To: mtk.manpages@gmail.com In-Reply-To: <20121022162929.GN2095@tassilo.jf.intel.com> References: <1350665289-7288-1-git-send-email-andi@firstfloor.org> <20121022132733.GQ16230@one.firstfloor.org> <20121022133534.GR16230@one.firstfloor.org> <20121022153633.GK2095@tassilo.jf.intel.com> <20121022161151.GS16230@one.firstfloor.org> <20121022162929.GN2095@tassilo.jf.intel.com> From: "Michael Kerrisk (man-pages)" Date: Mon, 22 Oct 2012 18:42:22 +0200 Message-ID: Subject: Re: [PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v6 To: Andi Kleen Cc: Andi Kleen , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hillf Danton Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1511 Lines: 32 On Mon, Oct 22, 2012 at 6:29 PM, Andi Kleen wrote: >> Since PowerPC already allows 16GB page sizes, doesn't there need to be >> allowance for the possibility of future expansion? Choosing a larger >> minimum size (like 2^16) would allow that. Does the minimum size need >> to be 16k? (Surely, if you want a HUGEPAGE, you want a bigger page >> than that? I am not sure.) > > Some architectures have configurable huge page sizes, so it depends on > the user. I thought 16K is reasonable. Can make it larger too. > > But I personally consider even 16GB pages somewhat too big. I do not know the answer course ;-). Just thought that it was worth emphasizing that some system already allows the upper limit you propose. It seems inevitable that some other system will allow something even bigger. Anyway, I got distracted from my earlier more important point. This proposed change will chew up most (all?) of the remaining bit-space in 'flags'. This seems like a mistake from a future extensibility point of view... It sounds a lot like you'll force someone else to write and deploy mmap3()... -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- 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/