hugetlb: Add HugeTLB controller to control HugeTLB allocation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 30 repliesIn review
Changes from V8 from the cover letter
* Address review feedback
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | hugetlb: rename max_hstate to hugetlb_max_hstatemm/ | +7 | 0 replies | |
| 2/15 | hugetlb: don't use ERR_PTR with VM_FAULT* valuesmm/ | +13 | 0 replies | |
| 3/15 | hugetlb: add an inline helper for finding hstate indexinclude/ mm/ | +17 | 0 replies | |
| 4/15 | hugetlb: use mmu_gather instead of a temporary linked list for accumulating pagesfs/ include/ mm/ +1 more | +59 | 6 replies | |
| 5/15 | hugetlb: avoid taking i_mmap_mutex in unmap_single_vma() for hugetlbmm/ | +1 | 2 replies | |
| 6/15 | hugetlb: simplify migrate_huge_page()include/ mm/ mm/ | +25 | 1 reply | |
| 7/15 | hugetlb: add a list for tracking in-use HugeTLB pagesinclude/ mm/ | +8 | 1 reply | |
| 8/15 | hugetlb: Make some static variables globalinclude/ mm/ | +7 | 2 replies | |
| 9/15 | mm/hugetlb: Add new HugeTLB cgroupinclude/ include/ init/ +2 more | +181 | 3 replies | |
| 10/15 | hugetlb/cgroup: Add the cgroup pointer to page lruinclude/ mm/ | +41 | 4 replies | |
| 11/15 | hugetlb/cgroup: Add charge/uncharge routines for hugetlb cgroupinclude/ mm/ mm/ | +133 | 9 replies | |
| 12/15 | hugetlb/cgroup: Add support for cgroup removalmm/ | +68 | 2 replies | |
| 13/15 | hugetlb/cgroup: add hugetlb cgroup control filesinclude/ include/ mm/ +1 more | +148 | 2 replies | |
| 14/15 | hugetlb/cgroup: migrate hugetlb cgroup info from oldpage to new page during migrationinclude/ mm/ mm/ | +33 | 3 replies | |
| 15/15 | hugetlb/cgroup: add HugeTLB controller documentationDocumentation/ | +45 | 1 reply |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | David Rientjes | KAMEZAWA Hiroyuki | Hillf Danton | Michal Hocko | KOSAKI Motohiro |
|---|---|---|---|---|---|
| 1/15 | A-b | R-b | A-b | A-b | |
| 2/15 | R-b | A-b | A-b | ||
| 3/15 | A-b | R-b | A-b | ||
| 4/15 | R-b | R-b | |||
| 5/15 | A-b | ||||
| 6/15 | R-b | R-b | |||
| 7/15 | R-b | R-b | |||
| 8/15 | A-b | R-b | |||
| 9/15 | R-b | R-b | |||
| 10/15 | A-b | R-b | |||
| 11/15 | A-b R-b | R-b | |||
| 12/15 | A-b | R-b | |||
| 13/15 | A-b | R-b | |||
| 14/15 | A-b | R-b | |||
| 15/15 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH -V9 00/15] hugetlb: Add HugeTLB controller to control HugeTLB allocation
Hi,
This patchset implements a cgroup resource controller for HugeTLB pages. The controller 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.
The goal is to control how many HugeTLB pages a group of task can allocate. It can be looked at as an extension of the existing quota interface which limits the number of HugeTLB pages per hugetlbfs superblock. HPC job scheduler requires jobs to specify their resource requirements in the job file. Once their requirements can be met, job schedulers like (SLURM) will schedule the job. We need to make sure that the jobs won't consume more resources than requested. If they do we should either error out or kill the application.
Patches are on top of v3.5-rc2
Changes from V8:
* Address review feedback
Changes from V7:
* Remove dependency on page_cgroup.
* Use page[2].lru.next to store HugeTLB cgroup information.
Changes from V6:
* Implement the controller as a seperate HugeTLB cgroup.
* Folded fixup patches in -mm to the original patches
Changes from V5:
* Address review feedback.
Changes from V4:
* Add support for charge/uncharge during page migration
* Drop the usage of page->lru in unmap_hugepage_range.
Changes from v3:
* Address review feedback.
* Fix a bug in cgroup removal related parent charging with use_hierarchy set
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>