Skip to content

Memory controller introduction (v7)

Balbir Singh containers linux-mm lkml 1 version In review

Get series with b4
b4 am 20070824151948.16582.34424.sendpatchset@balbir-laptop

Versions newest first

  1. v1 Latest10 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Memory controller resource counters (v7)include/linux/res_counter.h init/Kconfig kernel/Makefile +1 more+230 -00 replies
2/10Memory controller containers setup (v7)include/linux/container_subsys.h include/linux/memcontrol.h init/Kconfig +2 more+162 -00 replies
3/10Memory controller accounting setup (v7)include/linux/memcontrol.h include/linux/mm_types.h include/linux/sched.h +2 more+104 -70 replies
4/10Memory controller memory accounting (v7)include/linux/memcontrol.h mm/filemap.c mm/memcontrol.c +6 more+293 -270 replies
5/10Memory controller task migration (v7)mm/memcontrol.c+35 -04 replies
6/10Memory controller add per container LRU and reclaim (v7)include/linux/memcontrol.h include/linux/res_counter.h include/linux/swap.h +3 more+275 -260 replies
7/10Memory controller OOM handling (v7)include/linux/memcontrol.h mm/memcontrol.c mm/oom_kill.c+40 -40 replies
8/10Memory controller add switch to control what type of pages to limit (v7)include/linux/memcontrol.h mm/filemap.c mm/memcontrol.c +1 more+103 -20 replies
9/10Memory controller make page_referenced() container aware (v7)include/linux/memcontrol.h include/linux/rmap.h mm/memcontrol.c +2 more+40 -100 replies
10/10Memory controller add documentationDocumentation/controllers/memory.txt+259 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [-mm PATCH 0/10] Memory controller introduction (v7)

Hi, Andrew,

Here's version 7 of the memory controller (against 2.6.23-rc2-mm2). I was told "7" is a lucky number, so I am hopeful this version of the patchset will get merged ;)

The salient features of the patches are

a. Provides *zero overhead* for non memory controller users
b. Enable control of both RSS (mapped) and Page Cache (unmapped) pages c. The infrastructure allows easy addition of other types of memory to control d. Provides a double LRU: global memory pressure causes reclaim from the
global LRU; a container on hitting a limit, reclaims from the per container LRU

The documentation accompanying this patch has more details on the design and usage.

Changelog since version 6

1. Port to 2.6.23-rc3-mm1
2. Add new documentation

Tested the patches (with config disabled) and kernbench, lmbench on an x86_64 box.

For more detailed test results, comments on usage and detailed changelog please see version 6 of the patches

	http://lwn.net/Articles/246140/

series

mem-control-res-counters-infrastructure
mem-control-setup
mem-control-accounting-setup
mem-control-accounting
mem-control-task-migration
mem-control-lru-and-reclaim
mem-control-out-of-memory
mem-control-choose-rss-vs-rss-and-pagecache
mem-control-per-container-page-referenced
mem-control-documentation

Signature · 4 lines
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL