RFC hugetlbfs: Add cgroup resource controller for hugetlbfs
Get series with b4
b4 am 1328909806-15236-1-git-send-email-aneesh.kumar@linux.vnet.ibm.comVersions newest first
- v1 RFC Latest6 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | hugetlb: Add a new hugetlb cgroupfs/ fs/ include/ +4 more | +312 | 0 replies | |
| 2/6 | hugetlbfs: Add usage and max usage files to hugetlb cgroupfs/ include/ include/ +1 more | +36 | 0 replies | |
| 3/6 | hugetlbfs: Add new region handling functions.fs/ | +127 | 0 replies | |
| 4/6 | hugetlbfs: Add controller support for shared mappingfs/ fs/ include/ +1 more | +214 | 0 replies | |
| 5/6 | hugetlbfs: Add controller support for private mappingfs/ include/ include/ +1 more | +123 | 2 replies | |
| 6/6 | hugetlbfs: Switch to new region APIsfs/ fs/ fs/ +2 more | +222 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/6] hugetlbfs: Add cgroup resource controller for hugetlbfs
Hi,
This patchset implements a cgroup resource controller for HugeTLB pages. It is similar to the existing hugetlb quota support in that the limit is enforced at mmap(2) time and not at fault time. HugeTLB quota limit the number of huge pages that can be allocated per superblock.
For shared mapping we track the region mapped by a task along with the hugetlb cgroup in inode region list. We keep the hugetlb cgroup charged even after the task that did mmap(2) exit. The uncharge happens during file truncate. For Private mapping we charge and uncharge from the current task cgroup.
The current patchset doesn't support cgroup hierarchy. We also don't allow task migration across cgroup.
-aneesh
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>