On Wed, 2006-08-16 at 21:23 +0100, Andy Whitcroft wrote:
> Ok, we have all this talk about how it all goes bang and doesn't work... 
> but then there was this commit below, which I'd expect to restore the 
> semantic?  Or did I miss something.
> 
> -apw
> 
> commit 3da5975d7e12aebd8d7614f48d8c0d68c6a03146
>      Use mlock to reserve newly allocated hugepages in hugetlb_morecore.
> 
>      Since MAP_PRIVATE allocations are full overcommit, the mmap call 
> can succeed    even if there aren't enough huge pages to satisfy the 
> mapping.  Thus fallback
>      to normal pages is not currently possible.  Use mlock to 
> instantiate the newly
>      allocated area and if that fails, release it and initiate fallback 
> to normal    pages.

That was reverted because mlock behaves badly on NUMA systems.  It ends
up instantiating all the pages on the node that calls malloc (instead of
the node that touches the area first).

-- 
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to