All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -V9 00/15] hugetlb: Add HugeTLB controller to control HugeTLB allocation
@ 2012-06-13 10:27 ` Aneesh Kumar K.V
  0 siblings, 0 replies; 122+ messages in thread
From: Aneesh Kumar K.V @ 2012-06-13 10:27 UTC (permalink / raw)
  To: linux-mm, kamezawa.hiroyu, dhillf, rientjes, mhocko, akpm, hannes
  Cc: linux-kernel, cgroups

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



^ permalink raw reply	[flat|nested] 122+ messages in thread

end of thread, other threads:[~2012-06-24 16:45 UTC | newest]

Thread overview: 122+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 10:27 [PATCH -V9 00/15] hugetlb: Add HugeTLB controller to control HugeTLB allocation Aneesh Kumar K.V
2012-06-13 10:27 ` Aneesh Kumar K.V
2012-06-13 10:27 ` [PATCH -V9 01/15] hugetlb: rename max_hstate to hugetlb_max_hstate Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-13 10:27 ` [PATCH -V9 02/15] hugetlb: don't use ERR_PTR with VM_FAULT* values Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-13 10:27 ` [PATCH -V9 03/15] hugetlb: add an inline helper for finding hstate index Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-13 10:27 ` [PATCH -V9 04/15] hugetlb: use mmu_gather instead of a temporary linked list for accumulating pages Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-13 14:59   ` Michal Hocko
2012-06-13 14:59     ` Michal Hocko
2012-06-13 14:59     ` Michal Hocko
2012-06-13 15:03     ` Michal Hocko
2012-06-13 15:03       ` Michal Hocko
2012-06-13 15:03       ` Michal Hocko
2012-06-13 16:43       ` Aneesh Kumar K.V
2012-06-13 16:43         ` Aneesh Kumar K.V
2012-06-14  7:14         ` Michal Hocko
2012-06-14  7:14           ` Michal Hocko
2012-06-14  7:14           ` Michal Hocko
2012-06-13 16:37     ` Aneesh Kumar K.V
2012-06-13 16:37       ` Aneesh Kumar K.V
2012-06-13 16:37       ` Aneesh Kumar K.V
2012-06-14  7:16       ` Michal Hocko
2012-06-14  7:16         ` Michal Hocko
2012-06-14  7:16         ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 05/15] hugetlb: avoid taking i_mmap_mutex in unmap_single_vma() for hugetlb Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  3:09   ` Kamezawa Hiroyuki
2012-06-14  3:09     ` Kamezawa Hiroyuki
2012-06-14  3:09     ` Kamezawa Hiroyuki
2012-06-14  7:20   ` Michal Hocko
2012-06-14  7:20     ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 06/15] hugetlb: simplify migrate_huge_page() Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  7:28   ` Michal Hocko
2012-06-14  7:28     ` Michal Hocko
2012-06-14  7:28     ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 07/15] hugetlb: add a list for tracking in-use HugeTLB pages Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  7:33   ` Michal Hocko
2012-06-14  7:33     ` Michal Hocko
2012-06-14  7:33     ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 08/15] hugetlb: Make some static variables global Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  3:11   ` Kamezawa Hiroyuki
2012-06-14  3:11     ` Kamezawa Hiroyuki
2012-06-14  7:38   ` Michal Hocko
2012-06-14  7:38     ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 09/15] mm/hugetlb: Add new HugeTLB cgroup Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  8:24   ` Michal Hocko
2012-06-14  8:24     ` Michal Hocko
2012-06-14  8:54   ` Li Zefan
2012-06-14  8:54     ` Li Zefan
2012-06-15  6:20     ` Aneesh Kumar K.V
2012-06-15  6:20       ` Aneesh Kumar K.V
2012-06-15  6:20       ` Aneesh Kumar K.V
2012-06-13 10:27 ` [PATCH -V9 10/15] hugetlb/cgroup: Add the cgroup pointer to page lru Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-13 11:32   ` Aneesh Kumar K.V
2012-06-13 11:32     ` Aneesh Kumar K.V
2012-06-13 11:32     ` Aneesh Kumar K.V
2012-06-13 11:34   ` [PATCH -V9 [updated] " Aneesh Kumar K.V
2012-06-13 11:34     ` Aneesh Kumar K.V
2012-06-14  4:04     ` Kamezawa Hiroyuki
2012-06-14  4:04       ` Kamezawa Hiroyuki
2012-06-14  4:04       ` Kamezawa Hiroyuki
2012-06-14  8:44     ` Michal Hocko
2012-06-14  8:44       ` Michal Hocko
2012-06-14  8:44       ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 11/15] hugetlb/cgroup: Add charge/uncharge routines for hugetlb cgroup Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  4:07   ` Kamezawa Hiroyuki
2012-06-14  4:07     ` Kamezawa Hiroyuki
2012-06-14  4:07     ` Kamezawa Hiroyuki
2012-06-14  8:58   ` Li Zefan
2012-06-14  8:58     ` Li Zefan
2012-06-22 22:11     ` Andrew Morton
2012-06-22 22:11       ` Andrew Morton
2012-06-24 16:44       ` Aneesh Kumar K.V
2012-06-24 16:44         ` Aneesh Kumar K.V
2012-06-14  9:25   ` Michal Hocko
2012-06-14  9:25     ` Michal Hocko
2012-06-15 10:06     ` Aneesh Kumar K.V
2012-06-15 10:06       ` Aneesh Kumar K.V
2012-06-15 10:06       ` Aneesh Kumar K.V
2012-06-15 10:08       ` [PATCH 1/2] hugetlb: Move all the in use pages to active list Aneesh Kumar K.V
2012-06-15 10:08         ` [PATCH 2/2] hugetlb/cgroup: Assign the page hugetlb cgroup when we move the page " Aneesh Kumar K.V
2012-06-16  6:24           ` Kamezawa Hiroyuki
2012-06-13 10:27 ` [PATCH -V9 12/15] hugetlb/cgroup: Add support for cgroup removal Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  4:09   ` Kamezawa Hiroyuki
2012-06-14  4:09     ` Kamezawa Hiroyuki
2012-06-14  4:09     ` Kamezawa Hiroyuki
2012-06-14  9:31   ` Michal Hocko
2012-06-14  9:31     ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 13/15] hugetlb/cgroup: add hugetlb cgroup control files Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  4:10   ` Kamezawa Hiroyuki
2012-06-14  4:10     ` Kamezawa Hiroyuki
2012-06-14  9:36   ` Michal Hocko
2012-06-14  9:36     ` Michal Hocko
2012-06-13 10:27 ` [PATCH -V9 14/15] hugetlb/cgroup: migrate hugetlb cgroup info from oldpage to new page during migration Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14  4:13   ` Kamezawa Hiroyuki
2012-06-14  4:13     ` Kamezawa Hiroyuki
2012-06-14  4:13     ` Kamezawa Hiroyuki
2012-06-14 10:04   ` Michal Hocko
2012-06-14 10:04     ` Michal Hocko
2012-06-14 10:04     ` Michal Hocko
2012-06-15 10:50     ` Aneesh Kumar K.V
2012-06-15 10:50       ` Aneesh Kumar K.V
2012-06-15 10:50       ` Aneesh Kumar K.V
2012-06-13 10:27 ` [PATCH -V9 15/15] hugetlb/cgroup: add HugeTLB controller documentation Aneesh Kumar K.V
2012-06-13 10:27   ` Aneesh Kumar K.V
2012-06-14 10:07   ` Michal Hocko
2012-06-14 10:07     ` Michal Hocko
2012-06-14 10:07     ` Michal Hocko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.