Linux Container Development
 help / color / mirror / Atom feed
* cgroup memory limit problems
@ 2011-11-09 20:57 Arkadiusz Miśkiewicz
       [not found] ` <201111092157.06819.arekm-evZBlRFTdvA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Arkadiusz Miśkiewicz @ 2011-11-09 20:57 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA


Hi,

I have a machine with 6GB of ram and a cgroup for apache processes limited to 
                memory.limit_in_bytes = "5100M";
                memory.soft_limit_in_bytes = "5000M";

Unfortunately when apache processes ate all ram assigned to their cgroup load 
on whole machine jumps the roof.

cgroup aware OOM kicks in, kills one process and that doesn't help.

If I'm fast enough I notice and then apache processes require tons of kill -9 
(I'm doing "killall -9 apache" in a while (true) loop for 20-30s) to get 
killed (and that not always succeeds - sometimes I'm unable to kill these and 
I'm just doing sysrq u, s, b after few minutes.. if I'm lucky. Sometimes I 
cannot do any command).

This all happens on 2.6.38.8 kernel.
http://ixion.pld-linux.org/~arekm/cgroup-eaten-memory-failure-1.txt
for kernel log. It ends with reboot of the machine.

Now the question is - is this is how cgroup memory limit supposed to work? If 
yes then it's hardly usable but maybe there are some patches for this?

Would newer kernels be better ? (cannot test immediately since newer kernels 
kill ipmi connectivity on that machine). I would expect apache processes to be 
killed without taking down entire machine.

ps. found similar history at http://serverfault.com/questions/211509/how-to-
stop-apache-from-crashing-my-entire-server from year ago
-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers

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

end of thread, other threads:[~2011-11-18  9:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 20:57 cgroup memory limit problems Arkadiusz Miśkiewicz
     [not found] ` <201111092157.06819.arekm-evZBlRFTdvA@public.gmane.org>
2011-11-09 22:45   ` Daniel Lezcano
     [not found]     ` <4EBB026D.8090701-GANU6spQydw@public.gmane.org>
2011-11-09 23:01       ` Arkadiusz Miśkiewicz
2011-11-09 22:51   ` Balbir Singh
     [not found]     ` <CAKTCnzmHk1U6fP+jrw2Rq3dLwU30gyocRBp2QpQVHAbU=x5uSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-09 22:53       ` Balbir Singh
2011-11-09 22:58       ` Arkadiusz Miśkiewicz
     [not found]         ` <201111092358.58079.arekm-evZBlRFTdvA@public.gmane.org>
2011-11-10  0:10           ` KAMEZAWA Hiroyuki
     [not found]             ` <20111110091012.0ce7d719.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2011-11-18  9:13               ` Michal Hocko

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