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.
[akpm@linux-foundation.org: build fix]
[akpm@linux-foundation.org: const fix]
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-04-02 19:04:55 -07:00
..
2009-03-26 18:14:15 +01:00
2009-04-02 19:04:50 -07:00
2009-03-10 20:33:19 -04:00
2009-03-11 13:49:46 +00:00
2009-03-18 19:45:11 -07:00
2009-03-26 22:45:23 -07:00
2009-03-26 18:14:14 +01:00
2009-03-26 16:11:41 -07:00
2009-04-02 19:04:51 -07:00
2009-03-05 14:39:32 -05:00
2009-03-28 15:54:48 -04:00
2009-03-26 15:23:24 -07:00
2009-03-24 16:38:23 -07:00
2009-04-01 09:47:12 -07:00
2009-03-26 18:14:14 +01:00
2009-03-26 11:20:23 -07:00
2009-03-26 18:14:15 +01:00
2009-03-26 18:14:15 +01:00
2009-04-01 08:59:23 -07:00
2009-04-01 08:59:23 -07:00
2009-03-24 12:35:17 +01:00
2009-04-01 08:59:14 -07:00
2009-03-28 13:30:43 -07:00
2009-04-01 08:59:14 -07:00
2009-03-17 14:55:55 -04:00
2009-04-02 19:04:55 -07:00
2009-03-27 14:51:13 +01:00
2009-03-26 18:14:15 +01:00
2009-03-26 18:14:14 +01:00
2009-03-27 14:43:57 -04:00
2009-03-26 18:14:23 +01:00
2009-03-12 21:33:03 +00:00
2009-03-24 16:38:26 -07:00
2009-03-09 15:07:33 -04:00
2009-03-30 22:05:16 +10:30
2009-03-04 15:05:33 +08:00
2009-03-26 18:14:14 +01:00
2009-03-21 13:31:23 -07:00
2009-03-27 14:43:59 -04:00
2009-03-24 16:38:26 -07:00
2009-03-26 18:14:15 +01:00
2009-03-26 18:14:15 +01:00
2009-03-18 11:53:48 +01:00
2009-03-08 10:23:05 -07:00
2009-03-17 15:45:07 -07:00
2009-03-30 21:46:44 +02:00
2009-03-24 16:38:27 -07:00
2009-04-01 08:59:20 -07:00
2009-03-16 08:32:27 -06:00
2009-04-02 19:04:52 -07:00
2009-04-01 08:59:29 -07:00
2009-03-24 20:56:50 +01:00
2009-03-28 17:30:00 -07:00
2009-04-01 08:59:17 -07:00
2009-04-01 08:59:22 -07:00
2009-03-20 01:33:32 -07:00
2009-03-24 12:35:17 +01:00
2009-03-05 16:10:59 +01:00
2009-04-01 08:59:14 -07:00
2009-03-28 21:34:44 +01:00
2009-03-30 12:43:28 -03:00
2009-03-28 21:34:45 +01:00
2009-03-31 20:15:33 +02:00
2009-04-02 19:04:53 -07:00
2009-03-27 20:13:02 -04:00
2009-03-26 18:14:15 +01:00
2009-03-28 13:30:43 -07:00
2009-03-27 00:46:44 -07:00
2009-03-26 18:14:14 +01:00
2009-03-24 00:35:43 +01:00
2009-03-30 13:41:00 -07:00
2009-03-30 21:46:54 +02:00
2009-03-02 09:43:32 +01:00
2009-03-26 18:14:15 +01:00
2009-03-31 01:14:44 +04:00
2009-03-30 21:46:54 +02:00
2009-03-27 17:28:43 +01:00
2009-03-13 14:32:29 +01:00
2009-03-30 12:43:22 -03:00
2009-03-26 18:14:15 +01:00
2009-03-25 23:35:46 -04:00
2009-03-26 18:14:17 +01:00
2009-04-02 19:04:49 -07:00
2009-04-01 08:59:18 -07:00
2009-03-24 16:38:26 -07:00
2009-03-24 11:03:11 +02:00
2009-03-24 11:02:55 +02:00
2009-03-24 11:03:15 +02:00
2009-03-24 22:52:39 -04:00
2009-04-01 08:59:17 -07:00
2009-03-12 12:58:05 -05:00
2009-03-26 18:14:15 +01:00
2009-04-02 19:04:50 -07:00
2009-03-13 15:57:40 -05:00
2009-04-02 19:04:48 -07:00
2009-04-02 19:04:48 -07:00
2009-04-01 08:59:11 -07:00
2009-03-24 16:38:24 -07:00
2009-03-26 10:56:35 -07:00
2009-03-26 18:14:14 +01:00
2009-03-20 10:48:14 -07:00
2009-03-27 14:44:00 -04:00
2009-03-04 00:03:08 -08:00
2009-03-13 12:09:29 -07:00
2009-03-15 19:59:13 -07:00
2009-03-28 13:30:43 -07:00
2009-03-24 16:37:55 -07:00
2009-03-28 23:55:58 -07:00
2009-03-11 14:10:28 -04:00
2009-04-01 13:28:15 -04:00
2009-04-01 13:28:15 -04:00
2009-03-10 20:33:18 -04:00
2009-03-27 20:13:04 -04:00
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:14 -07:00
2009-04-02 19:04:49 -07:00
2009-04-01 08:59:13 -07:00
2009-04-01 09:47:12 -07:00
2009-03-26 16:02:30 -07:00
2009-03-20 10:47:57 -07:00
2009-04-01 09:47:12 -07:00
2009-03-20 10:47:49 -07:00
2009-03-10 16:27:48 +09:00
2009-03-26 18:14:15 +01:00
2009-03-13 15:41:19 -07:00
2009-03-24 16:38:26 -07:00
2009-03-24 16:38:26 -07:00
2009-04-01 08:59:13 -07:00
2009-03-13 16:09:12 -07:00
2009-03-26 18:14:14 +01:00
2009-03-31 01:14:44 +04:00
2009-03-26 02:18:35 +01:00
2009-03-26 02:18:37 +01:00
2009-03-30 14:28:58 -07:00
2009-03-30 12:16:38 -07:00
2009-03-30 12:16:39 -07:00
2009-03-30 12:33:01 -07:00
2009-03-30 12:16:39 -07:00
2009-04-02 19:04:51 -07:00
2009-04-01 08:59:24 -07:00
2009-03-19 23:49:41 -07:00
2009-04-02 19:04:51 -07:00
2009-03-28 15:01:37 +11:00
2009-03-26 18:14:15 +01:00
2009-03-30 22:05:11 +10:30
2009-03-07 18:41:38 -08:00
2009-03-29 01:40:34 -07:00
2009-03-24 10:25:21 +02:00
2009-03-26 16:11:41 -07:00
2009-04-01 08:59:13 -07:00
2009-03-26 18:14:14 +01:00
2009-04-01 08:59:16 -07:00
2009-04-01 08:59:15 -07:00
2009-03-15 20:09:55 -07:00
2009-03-26 18:14:14 +01:00
2009-03-30 17:17:35 -07:00
2009-03-26 18:14:14 +01:00
2009-04-01 08:59:10 -07:00
2009-03-26 18:14:21 +01:00
2009-03-02 11:06:49 +01:00
2009-03-24 16:38:24 -07:00
2009-03-24 16:20:34 -07:00
2009-03-24 16:20:36 -07:00
2009-03-26 18:14:14 +01:00
2009-03-30 12:43:40 -03:00
2009-03-30 12:43:15 -03:00
2009-04-01 08:59:20 -07:00
2009-04-02 19:04:50 -07:00
2009-04-01 08:59:13 -07:00
2009-03-26 18:14:14 +01:00