linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [discuss][memcg] oom-kill extension
@ 2008-10-29  2:38 KAMEZAWA Hiroyuki
  2008-10-29  4:08 ` Balbir Singh
  2008-10-29  5:35 ` Paul Menage
  0 siblings, 2 replies; 9+ messages in thread
From: KAMEZAWA Hiroyuki @ 2008-10-29  2:38 UTC (permalink / raw)
  To: linux-mm; +Cc: balbir, menage

Under memory resource controller(memcg), oom-killer can be invoked when it
reaches limit and no memory can be reclaimed.

In general, not under memcg, oom-kill(or panic) is an only chance to recover
the system because there is no available memory. But when oom occurs under
memcg, it just reaches limit and it seems we can do something else.

Does anyone have plan to enhance oom-kill ?

What I can think of now is
  - add an notifier to user-land.
    - receiver of notify should work in another cgroup.
    - automatically extend the limit as emergency
    - trigger fail-over process.
    - automatically create a precise report of OOM.
      - record snapshot of 'ps -elf' and so on of memcg which triggers oom.

  - freeze processes under cgroup.
    - maybe freezer cgroup should be mounted at the same time.
    - can we add memcg-oom-freezing-point in somewhere we can sleep ?
  
Is there a chance to add oom_notifier to memcg ? (netlink ?)

But the real problem is that what we can do in the kernel is limited
and we need proper userland, anyway ;)


Thanks,
-Kame

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-10-29  6:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-29  2:38 [discuss][memcg] oom-kill extension KAMEZAWA Hiroyuki
2008-10-29  4:08 ` Balbir Singh
2008-10-29  5:00   ` KAMEZAWA Hiroyuki
2008-10-29  5:13     ` David Rientjes
2008-10-29  5:28       ` KAMEZAWA Hiroyuki
2008-10-29  6:55       ` KOSAKI Motohiro
2008-10-29  5:35 ` Paul Menage
2008-10-29  5:45   ` KAMEZAWA Hiroyuki
2008-10-29  5:49     ` Paul Menage

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox