Re: [patch] remove hugetlb syscalls

Rohit Seth
2002-11-14T20:07:30Z

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.

>
>