On Mon, Jul 14, 2008 at 10:17:00PM +0100, Mel Gorman wrote:
> When HUGETLB_SHARE=1, read-only text segments are copied to a file on
> a hugetlbfs mount and shared between multiple processes. However with
> kernel 2.6.27 and later, the expectation is that pages will be reserved for
> MAP_PRIVATE mappings as well as MAP_SHARED. This will render HUGETLB_SHARE
> ineffective as huge pages will be reserved that already exist in the page
> cache. This patch disables reservations for read-only mappings when sharing
> is enabled on the assumption mprotect() will never be called for remapped
> read-only segments.
Sorry, I don't 100% follow what the problem is here. Are you saying
the pages get over-reserved, once for the SHARED mapping and once for
the PRIVATE? If that's the case, isn't that a kernel bug?
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel