Skip to content

Memory controller introduction

Balbir Singh lkml 1 version In review

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

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Memory controller resource countersinclude/linux/res_counter.h init/Kconfig kernel/Makefile +1 more+228 -00 replies
2/7Memory controller containers setupinclude/linux/container_subsys.h include/linux/memcontrol.h init/Kconfig +2 more+175 -00 replies
3/7Memory controller accounting setupinclude/linux/memcontrol.h include/linux/mm_types.h include/linux/sched.h +2 more+91 -60 replies
4/7Memory controller memory accountingfs/exec.c include/linux/memcontrol.h include/linux/page-flags.h +8 more+218 -182 replies
5/7Memory controller task migrationmm/memcontrol.c+35 -00 replies
6/7Memory controller add per container LRU and reclaiminclude/linux/memcontrol.h include/linux/res_counter.h include/linux/swap.h +3 more+230 -260 replies
7/7Memory controller OOM handlinginclude/linux/memcontrol.h mm/memcontrol.c mm/oom_kill.c+40 -40 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/7] Memory controller introduction

Resending with the patch numbering fixed and linux-mm copied

This patchset implements another version of the memory controller. These patches have been through a big churn, the first set of patches were posted last year and earlier this year at

	http://lkml.org/lkml/2007/2/19/10

Ever since, the RSS controller has been through four revisions, the latest one being

	http://lwn.net/Articles/236817/

This patchset draws from the patches listed above and from some of the contents of the patches posted by Vaidyanathan for page cache control.

	http://lkml.org/lkml/2007/6/20/92

Pavel, Vaidy could you look at the patches and add your signed off by where relevant?

At OLS, the resource management BOF, it was discussed that we need to manage RSS and unmapped page cache together. This patchset is a step towards that

TODO's

1. Add memory controller water mark support. Reclaim on high water mark
2. Add support for shrinking on limit change
3. Add per zone per container LRU lists
4. Make page_referenced() container aware
5. Figure out a better CLUI for the controller

In case you have been using/testing the RSS controller, you'll find that this controller works slower than the RSS controller. The reason being that both swap cache and page cache is accounted for, so pages do go out to swap upon reclaim (they cannot live in the swap cache).

I've test compiled the framework without the controller enabled, tested the code on UML and minimally on a power box.

Any test output, feedback, comments, suggestions are welcome!

series

res_counters_infra.patch
mem-control-setup.patch
mem-control-accounting-setup.patch
mem-control-accounting.patch
mem-control-task-migration.patch
mem-control-lru-and-reclaim.patch
mem-control-out-of-memory.patch

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