memcg: Add memcg extension to control HugeTLB allocation
Get series with b4
b4 am 1331622432-24683-1-git-send-email-aneesh.kumar@linux.vnet.ibm.comVersions newest first
- v1 Latest8 patches 22 repliesIn review
Changes from V2 from the cover letter
* Changed the implementation to limit the HugeTLB usage during page fault time. This simplifies the extension and keep it closer to memcg design. This also allows to support cgroup removal with less complexity. Only caveat is the application should ensure its HugeTLB usage doesn't cross the cgroup limit.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | hugetlb: rename max_hstate to hugetlb_max_hstatemm/ | +7 | 1 reply | |
| 2/8 | memcg: Add HugeTLB extensioninclude/ include/ init/ +2 more | +190 | 5 replies | |
| 3/8 | hugetlb: add charge/uncharge calls for HugeTLB alloc/freemm/ mm/ | +25 | 6 replies | |
| 4/8 | memcg: track resource index in cftype privatemm/ | +21 | 2 replies | |
| 5/8 | hugetlbfs: Add memcg control files for hugetlbfsinclude/ mm/ mm/ | +93 | 4 replies | |
| 6/8 | hugetlbfs: Add a list for tracking in-use HugeTLB pagesinclude/ mm/ | +19 | 0 replies | |
| 7/8 | memcg: move HugeTLB resource count to parent cgroup on memcg removalinclude/ include/ mm/ +1 more | +98 | 2 replies | |
| 8/8 | memcg: Add memory controller documentation for hugetlb managementDocumentation/ | +29 | 0 replies |
Reviews trailers per patch
2 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Hillf Danton |
|---|---|
| 1/8 | A-b |
| 2/8 | |
| 3/8 | A-b |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH -V3 0/8] memcg: Add memcg extension to control HugeTLB allocation
Hi,
This patchset implements a memory controller extension to control HugeTLB allocations. The extension allows to limit the HugeTLB usage per control group and enforces the controller limit during page fault. Since HugeTLB doesn't support page reclaim, enforcing the limit at page fault time implies that, the application will get SIGBUS signal if it tries to access HugeTLB pages beyond its limit. This requires the application to know beforehand how much HugeTLB pages it would require for its use.
Changes from V2:
* Changed the implementation to limit the HugeTLB usage during page fault time. This simplifies the extension and keep it closer to memcg design. This also allows to support cgroup removal with less complexity. Only caveat is the application should ensure its HugeTLB usage doesn't cross the cgroup limit.
Changes from V1:
* Changed the implementation as a memcg extension. We still use the same logic to track the cgroup and range.
Changes from RFC post:
* Added support for HugeTLB cgroup hierarchy
* Added support for task migration
* Added documentation patch
* Other bug fixes
-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>