Skip to content

RFC hugetlbfs: Add cgroup resource controller for hugetlbfs

Aneesh Kumar K.V linux-mm lkml 1 version In review

Get series with b4
b4 am 1328909806-15236-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. v1 RFC Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6hugetlb: Add a new hugetlb cgroupfs/hugetlbfs/Makefile fs/hugetlbfs/hugetlb_cgroup.c include/linux/cgroup_subsys.h +4 more+312 -30 replies
2/6hugetlbfs: Add usage and max usage files to hugetlb cgroupfs/hugetlbfs/hugetlb_cgroup.c include/linux/hugetlb.h include/linux/hugetlb_cgroup.h +1 more+36 -00 replies
3/6hugetlbfs: Add new region handling functions.fs/hugetlbfs/hugetlb_cgroup.c+127 -00 replies
4/6hugetlbfs: Add controller support for shared mappingfs/hugetlbfs/hugetlb_cgroup.c fs/hugetlbfs/inode.c include/linux/hugetlb_cgroup.h +1 more+214 -260 replies
5/6hugetlbfs: Add controller support for private mappingfs/hugetlbfs/hugetlb_cgroup.c include/linux/hugetlb.h include/linux/hugetlb_cgroup.h +1 more+123 -122 replies
6/6hugetlbfs: Switch to new region APIsfs/hugetlbfs/Makefile fs/hugetlbfs/hugetlb_cgroup.c fs/hugetlbfs/region.c +2 more+222 -2970 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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>