The following two patches enable shmget() to be overridden to add the
SHM_HUGETLB flag. The first patch scopes local functions specifically
so that shmget() can be unversioned. The second patch adds the version
of shmget() to override glibc with. 

Changelog since V5
o In the documentation, spell out the instructions instead of referncing
  morecore
o Improved debug messages in the override library
o Use IPC_PRIVATE instead of a magic number in the test case
o Use line information during map and unmap in the test case
o Use just one pool size for tests in the test case
o Test unaligned shmget sizes in the test case

Changelog since V4
o Do not use versioned shmget. As a result, this should work with any
  version of glibc where as previous versions of this patch were tied
  to GLIBC_2_0 or in a separate library

Changelog since V3
o Do not hardcode the path to libc (Thanks to Adam Litke)
o Take reserved pages into account when resizing pool
o Add GLIBC_2.3 to version.lds for shmget overriding

Changelog since V2
o Link libdl to libhugetlbfs

Changelog since V1
o Move shmget() from a separate library into libhugetlbfs.so
o Separate out linked and unlinked testcases

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

-------------------------------------------------------------------------
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
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to