]> Git Repo - linux.git/commit
memcg: oom kill disable and oom status
authorKAMEZAWA Hiroyuki <[email protected]>
Wed, 26 May 2010 21:42:37 +0000 (14:42 -0700)
committerLinus Torvalds <[email protected]>
Thu, 27 May 2010 16:12:43 +0000 (09:12 -0700)
commit3c11ecf448eff8f12922c498b8274ce98587eb74
tree0a28aeef7759ead93ff58fd7db2fe61797523f7e
parent9490ff275606da012d5b373342a49610ad61cb81
memcg: oom kill disable and oom status

This adds a feature to disable oom-killer for memcg, if disabled, of
course, tasks under memcg will stop.

But now, we have oom-notifier for memcg.  And the world around memcg is
not under out-of-memory.  memcg's out-of-memory just shows memcg hits
limit.  Then, administrator or management daemon can recover the situation
by

- kill some process
- enlarge limit, add more swap.
- migrate some tasks
- remove file cache on tmps (difficult ?)

Unlike oom-killer, you can take enough information before killing tasks.
(by gcore, or, ps etc.)

[[email protected]: coding-style fixes]
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Daisuke Nishimura <[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]>
Documentation/cgroups/memory.txt
mm/memcontrol.c
This page took 0.053131 seconds and 4 git commands to generate.