Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 14 Nov 2002 15:07:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 14 Nov 2002 15:07:30 -0500 Received: from fmr03.intel.com ([143.183.121.5]:28883 "EHLO hermes.sc.intel.com") by vger.kernel.org with ESMTP id ; Thu, 14 Nov 2002 15:07:29 -0500 Message-ID: <3DD40374.9050001@unix-os.sc.intel.com> Date: Thu, 14 Nov 2002 12:11:32 -0800 From: Rohit Seth User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Benjamin LaHaise , rohit.seth@intel.com CC: dada1 , Christoph Hellwig , Rik van Riel , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [patch] remove hugetlb syscalls References: <08a601c28bbb$2f6182a0$760010ac@edumazet> <20021114141310.A25747@infradead.org> <002b01c28bf0$751a3960$760010ac@edumazet> <20021114103147.A17468@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 904 Lines: 33 Benjamin LaHaise wrote: >On Thu, Nov 14, 2002 at 04:13:56PM +0100, dada1 wrote: > > >>Thanks Christoph >> >>If I asked, this is because I tried the obvious and it doesnt work. >> >> > >It's a file. You need to use MAP_SHARED. > > This is not the problem with MAP_SHARED. It is the lack of (arch specific) hugepage aligned function support in the kernel. You can use the mmap on hugetlbfs using only MAP_FIXED with properly aligned addresses (but then this also is only a hint to kernel). With addr == NULL in mmap, the function is bound to fail almost all the times. Thanks Ben for letting me know the problem with previous post. > > - 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/