Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 14 Nov 2002 13:46:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 14 Nov 2002 13:46:22 -0500 Received: from adsl-66-127-195-58.dsl.snfc21.pacbell.net ([66.127.195.58]:9363 "EHLO panda.mostang.com") by vger.kernel.org with ESMTP id ; Thu, 14 Nov 2002 13:46:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15827.61722.800066.756875@panda.mostang.com> Date: Thu, 14 Nov 2002 10:53:14 -0800 To: Alan Cox Cc: David Mosberger-Tang , Linux Kernel Mailing List Subject: Re: [patch] remove hugetlb syscalls In-Reply-To: <1037298675.16000.47.camel@irongate.swansea.linux.org.uk> References: <08a601c28bbb$2f6182a0$760010ac@edumazet> <20021114141310.A25747@infradead.org> <1037298675.16000.47.camel@irongate.swansea.linux.org.uk> X-Mailer: VM 7.03 under Emacs 21.2.1 Reply-To: David.Mosberger@acm.org X-URL: http://www.mostang.com/~davidm/ From: davidm@mostang.com (David Mosberger-Tang) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1145 Lines: 24 >>>>> On 14 Nov 2002 18:31:15 +0000, Alan Cox said: Alan> On Thu, 2002-11-14 at 17:51, David Mosberger-Tang wrote: >> One potential downside of this is that programmers might expect >> mremap(), mprotect() etc. to work on the returned memory at the >> granularity of base-pages. I'm not sure though whether that was >> part of the reason Linus wanted separate syscalls. Alan> The extra syscalls dont change anything. mremap/mprotect still Alan> fails in the same way after you use them But that's excactly the point. The hugepage interface returns a different kind of virtual memory. There are tons of programs out there using mmap(). If such a program gets fed a path to the hugepagefs, it might end up with huge pages without knowing anything about huge pages. For the most part, that might work fine, but it could lead to subtle failures. --david - 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/