MAP_NORESERVE for hugetlb mappings V1
Get series with b4
b4 am exportbomb.1210191800@pinkyVersions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | record MAP_NORESERVE status on vmas and fix small page mprotect reservationsinclude/ mm/ mm/ | +6 | 0 replies | |
| 2/3 | hugetlb-move-reservation-region-support-earliermm/ | +121 | 0 replies | |
| 3/3 | hugetlb-allow-huge-page-mappings-to-be-created-without-reservationsmm/ | +55 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] MAP_NORESERVE for hugetlb mappings V1
With Mel's hugetlb private reservation support patches applied, strict overcommit semantics are applied to both shared and private huge page mappings. This can be a problem if an application relied on unlimited overcommit semantics for private mappings. An example of this would be an application which maps a huge area with the intention of using it very sparsely. These application would benefit from being able to opt-out of the strict overcommit. It should be noted that prior to hugetlb supporting demand faulting all mappings were fully populated and so applications of this type should be rare.
This patch stack implements the MAP_NORESERVE mmap() flag for huge page mappings. This flag has the same meaning as for small page mappings, suppressing reservations for that mapping.
The stack is made up of three patches:
record-MAP_NORESERVE-status-on-vmas-and-fix-small-page-mprotect-reservations --
currently when we mprotect a private MAP_NORESERVE mapping read-write we have no choice but to create a reservation for it. Fix that by introducing a VM_NORESERVE vma flag and checking it before allocating reserve.
hugetlb-move-reservation-region-support-earlier -- simply moves the
reservation region support so it can be used earlier.
hugetlb-allow-huge-page-mappings-to-be-created-without-reservations --
use the new VM_NORESERVE flag to control the application of hugetlb reservations to new mappings.
All against 2.6.25-mm1 with Mel's private reservation patches:
Subject: Guarantee faults for processes that call mmap(MAP_PRIVATE)
on hugetlbfs v2
Thanks to Mel Gorman for reviewing a number of early versions of these patches.
-apw
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>