aboutsummaryrefslogtreecommitdiff
path: root/morecore.c
AgeCommit message (Collapse)Author
2006-09-13morecore: Fixup HUGETLB_MORECORE semanticsdev-20060913-1aglitke
Currently, morecore is enabled, if HUGETLB_MORECORE is set at all in the environment, even if its value is "no". That is counterintuitive, as none of the other environment variables work that way. Make HUGETLB_MORECORE act like HUGETLB_ELFMAP. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
2006-09-07morecore: add commentsdev-20060911-1aglitke
I found the dearth of comments in morecore.c to be quite troublesome while debugging a related kernel bug. I hope these are accurate. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
2006-06-19cleanup: Remove trailing whitespaceaglitke
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
2006-06-16compile: Fix trivial unused variable warningaglitke
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
2006-06-06Revert mlock() reservation in hugetlbfs_morecoreaglitke
Use of mlock is disabled because it results in bad numa behavior since the malloc'd memory is allocated node-local to the cpu calling morecore() and not to the cpu(s) that are actually using the memory. Signed-off-by: Adam Litke <agl@us.ibm.com>
2006-03-30Use mlock to reserve newly allocated hugepages in hugetlb_morecore.aglitke
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.
2006-03-22Use strtoul (not strtol) when converting MORECORE_HEAPBASE to a numberaglitke
2006-01-09Added copyright notices and LGPL invocation.1.0-pre1David Gibson
2005-11-23Set up to compile and test both 32 and 64 bit.David Gibson
2005-11-22Various updates.David Gibson
2005-11-22Vaguely working morecore.David Gibson
2005-11-21More tests, plus morecore work.David Gibson
2005-11-21hugetlbfs_test_addr().David Gibson
2005-11-18First cut.David Gibson