Linux Container Development
 help / color / mirror / Atom feed
From: "Arkadiusz Miśkiewicz" <arekm-evZBlRFTdvA@public.gmane.org>
To: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: cgroup memory limit problems
Date: Thu, 10 Nov 2011 00:01:18 +0100	[thread overview]
Message-ID: <201111100001.18446.arekm@maven.pl> (raw)
In-Reply-To: <4EBB026D.8090701-GANU6spQydw@public.gmane.org>

On Wednesday 09 of November 2011, Daniel Lezcano wrote:
> On 11/09/2011 09:57 PM, Arkadiusz Miśkiewicz wrote:
> > 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.
> 
> Did you try to disable the oom with the "memory.oom_control" file by
> setting it to "1" ?

No, will try.

> 
> If the cgroup runs out of memory they should be stopped until you give
> more memory or kill some tasks.

I hope these tasks will be allowed to be killed when oom will be disabled. 
Right now it's often impossible to kill these.

Anyway I would preffer httpd processed to be automaticly killed without manual 
intervention. 

> Hope that helps
>   -- Daniel


-- 
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

  parent reply	other threads:[~2011-11-09 23:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201111100001.18446.arekm@maven.pl \
    --to=arekm-evzblrftdva@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=daniel.lezcano-GANU6spQydw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox