All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -V4 00/10] memcg: Add memcg extension to control HugeTLB allocation
@ 2012-03-16 17:39 ` Aneesh Kumar K.V
  0 siblings, 0 replies; 130+ messages in thread
From: Aneesh Kumar K.V @ 2012-03-16 17:39 UTC (permalink / raw)
  To: linux-mm, mgorman, kamezawa.hiroyu, dhillf, aarcange, mhocko,
	akpm, hannes
  Cc: linux-kernel, cgroups

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.

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.

Changes from v3:
 * Address review feedback.
 * bug fix 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] 130+ messages in thread

end of thread, other threads:[~2012-03-30 10:55 UTC | newest]

Thread overview: 130+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-16 17:39 [PATCH -V4 00/10] memcg: Add memcg extension to control HugeTLB allocation Aneesh Kumar K.V
2012-03-16 17:39 ` Aneesh Kumar K.V
2012-03-16 17:39 ` [PATCH -V4 01/10] hugetlb: rename max_hstate to hugetlb_max_hstate Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  2:07   ` KAMEZAWA Hiroyuki
2012-03-19  2:07     ` KAMEZAWA Hiroyuki
2012-03-28  9:18   ` Michal Hocko
2012-03-28  9:18     ` Michal Hocko
2012-03-28  9:18     ` Michal Hocko
2012-03-16 17:39 ` [PATCH -V4 02/10] hugetlbfs: don't use ERR_PTR with VM_FAULT* values Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  2:11   ` KAMEZAWA Hiroyuki
2012-03-19  2:11     ` KAMEZAWA Hiroyuki
2012-03-19  2:11     ` KAMEZAWA Hiroyuki
2012-03-19  6:37     ` Aneesh Kumar K.V
2012-03-19  6:37       ` Aneesh Kumar K.V
2012-03-28  9:25   ` Michal Hocko
2012-03-28  9:25     ` Michal Hocko
2012-03-28 11:35     ` Aneesh Kumar K.V
2012-03-28 11:35       ` Aneesh Kumar K.V
2012-03-28 11:35       ` Aneesh Kumar K.V
2012-03-16 17:39 ` [PATCH -V4 03/10] hugetlbfs: Add an inline helper for finding hstate index Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  2:15   ` KAMEZAWA Hiroyuki
2012-03-19  2:15     ` KAMEZAWA Hiroyuki
2012-03-28  9:41   ` Michal Hocko
2012-03-28  9:41     ` Michal Hocko
2012-03-16 17:39 ` [PATCH -V4 04/10] memcg: Add HugeTLB extension Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  2:38   ` KAMEZAWA Hiroyuki
2012-03-19  2:38     ` KAMEZAWA Hiroyuki
2012-03-19  2:38     ` KAMEZAWA Hiroyuki
2012-03-19  6:52     ` Aneesh Kumar K.V
2012-03-19  6:52       ` Aneesh Kumar K.V
2012-03-19  6:52       ` Aneesh Kumar K.V
2012-03-19  7:00       ` KAMEZAWA Hiroyuki
2012-03-19  7:00         ` KAMEZAWA Hiroyuki
2012-03-19  7:00         ` KAMEZAWA Hiroyuki
2012-03-19 11:39         ` Glauber Costa
2012-03-19 12:07           ` KAMEZAWA Hiroyuki
2012-03-19 12:07             ` KAMEZAWA Hiroyuki
2012-03-21  4:48           ` Aneesh Kumar K.V
2012-03-21  4:48             ` Aneesh Kumar K.V
2012-03-21  4:48             ` Aneesh Kumar K.V
2012-03-21  5:22             ` KAMEZAWA Hiroyuki
2012-03-21  5:22               ` KAMEZAWA Hiroyuki
2012-03-21  5:22               ` KAMEZAWA Hiroyuki
2012-03-28 11:33   ` Michal Hocko
2012-03-28 11:33     ` Michal Hocko
2012-03-28 11:33     ` Michal Hocko
2012-03-28 13:40     ` Aneesh Kumar K.V
2012-03-28 13:40       ` Aneesh Kumar K.V
2012-03-28 15:44       ` Michal Hocko
2012-03-28 15:44         ` Michal Hocko
2012-03-28 13:40   ` Michal Hocko
2012-03-28 13:40     ` Michal Hocko
2012-03-28 17:37     ` Aneesh Kumar K.V
2012-03-28 17:37       ` Aneesh Kumar K.V
2012-03-28 17:37       ` Aneesh Kumar K.V
2012-03-29  0:18       ` KAMEZAWA Hiroyuki
2012-03-29  0:18         ` KAMEZAWA Hiroyuki
2012-03-29  0:18         ` KAMEZAWA Hiroyuki
2012-03-29  7:57       ` Michal Hocko
2012-03-29  7:57         ` Michal Hocko
2012-03-29  7:57         ` Michal Hocko
2012-03-16 17:39 ` [PATCH -V4 05/10] hugetlb: add charge/uncharge calls for HugeTLB alloc/free Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  2:41   ` KAMEZAWA Hiroyuki
2012-03-19  2:41     ` KAMEZAWA Hiroyuki
2012-03-19  2:41     ` KAMEZAWA Hiroyuki
2012-03-19  7:01     ` Aneesh Kumar K.V
2012-03-19  7:01       ` Aneesh Kumar K.V
2012-03-28 13:17   ` Michal Hocko
2012-03-28 13:17     ` Michal Hocko
2012-03-28 13:17     ` Michal Hocko
2012-03-28 17:39     ` Aneesh Kumar K.V
2012-03-28 17:39       ` Aneesh Kumar K.V
2012-03-28 17:39       ` Aneesh Kumar K.V
2012-03-29  8:10       ` Michal Hocko
2012-03-29  8:10         ` Michal Hocko
2012-03-30 10:40         ` Aneesh Kumar K.V
2012-03-30 10:40           ` Aneesh Kumar K.V
2012-03-30 10:46           ` Michal Hocko
2012-03-30 10:46             ` Michal Hocko
2012-03-30 10:46             ` Michal Hocko
2012-03-16 17:39 ` [PATCH -V4 06/10] memcg: track resource index in cftype private Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  2:43   ` KAMEZAWA Hiroyuki
2012-03-19  2:43     ` KAMEZAWA Hiroyuki
2012-03-19  2:43     ` KAMEZAWA Hiroyuki
2012-03-16 17:39 ` [PATCH -V4 07/10] hugetlbfs: Add memcg control files for hugetlbfs Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  2:56   ` KAMEZAWA Hiroyuki
2012-03-19  2:56     ` KAMEZAWA Hiroyuki
2012-03-19  7:14     ` Aneesh Kumar K.V
2012-03-19  7:14       ` Aneesh Kumar K.V
2012-03-19  7:14       ` Aneesh Kumar K.V
2012-03-19  7:34       ` KAMEZAWA Hiroyuki
2012-03-19  7:34         ` KAMEZAWA Hiroyuki
2012-03-19  7:34         ` KAMEZAWA Hiroyuki
2012-03-20  9:22         ` Aneesh Kumar K.V
2012-03-20  9:22           ` Aneesh Kumar K.V
2012-03-16 17:39 ` [PATCH -V4 08/10] hugetlbfs: Add a list for tracking in-use HugeTLB pages Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  3:00   ` KAMEZAWA Hiroyuki
2012-03-19  3:00     ` KAMEZAWA Hiroyuki
2012-03-19  3:00     ` KAMEZAWA Hiroyuki
2012-03-19  8:59     ` Aneesh Kumar K.V
2012-03-19  8:59       ` Aneesh Kumar K.V
2012-03-28 13:58   ` Michal Hocko
2012-03-28 13:58     ` Michal Hocko
2012-03-28 17:38     ` Aneesh Kumar K.V
2012-03-28 17:38       ` Aneesh Kumar K.V
2012-03-29  8:11       ` Michal Hocko
2012-03-29  8:11         ` Michal Hocko
2012-03-16 17:39 ` [PATCH -V4 09/10] memcg: move HugeTLB resource count to parent cgroup on memcg removal Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-19  3:04   ` KAMEZAWA Hiroyuki
2012-03-19  3:04     ` KAMEZAWA Hiroyuki
2012-03-19  3:04     ` KAMEZAWA Hiroyuki
2012-03-19  9:00     ` Aneesh Kumar K.V
2012-03-19  9:00       ` Aneesh Kumar K.V
2012-03-28 14:07   ` Michal Hocko
2012-03-28 14:07     ` Michal Hocko
2012-03-28 14:07     ` Michal Hocko
2012-03-16 17:39 ` [PATCH -V4 10/10] memcg: Add memory controller documentation for hugetlb management Aneesh Kumar K.V
2012-03-16 17:39   ` Aneesh Kumar K.V
2012-03-28 14:36   ` Michal Hocko
2012-03-28 14:36     ` Michal Hocko
2012-03-28 14:36     ` 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.