android_kernel_motorola_sm6375/Documentation/cgroups
Repository files (latest commit first)
Filename Latest commit message Latest commit date
KAMEZAWA Hiroyuki 0b7f569e45 memcg: fix OOM killer under memcg
This patch tries to fix OOM Killer problems caused by hierarchy.
Now, memcg itself has OOM KILL function (in oom_kill.c) and tries to
kill a task in memcg.

But, when hierarchy is used, it's broken and correct task cannot
be killed. For example, in following cgroup

	/groupA/	hierarchy=1, limit=1G,
		01	nolimit
		02	nolimit
All tasks' memory usage under /groupA, /groupA/01, groupA/02 is limited to
groupA's 1Gbytes but OOM Killer just kills tasks in groupA.

This patch provides makes the bad process be selected from all tasks
under hierarchy. BTW, currently, oom_jiffies is updated against groupA
in above case. oom_jiffies of tree should be updated.

To see how oom_jiffies is used, please check mem_cgroup_oom_called()
callers.

[[email protected]: build fix]
[[email protected]: const fix]
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2009-04-02 19:04:55 -07:00
..
cgroups.txt cgroups: more documentation for remount and release_agent 2009-04-02 19:04:54 -07:00
cpuacct.txt cgroups: consolidate cgroup documents 2009-01-15 16:39:37 -08:00
cpusets.txt cpuset: various documentation fixes and updates 2009-02-20 17:57:49 -08:00
devices.txt cgroups: consolidate cgroup documents 2009-01-15 16:39:37 -08:00
freezer-subsystem.txt
memcg_test.txt memcg: fix OOM killer under memcg 2009-04-02 19:04:55 -07:00
memory.txt cgroups: consolidate cgroup documents 2009-01-15 16:39:37 -08:00
resource_counter.txt cgroups: consolidate cgroup documents 2009-01-15 16:39:37 -08:00