Subject: Re: [vserver] Question about rss limit and out-of-memory kill service
From: "Belinda Lawson" <briffee@gmail.com>
Date: Mon, 28 Jan 2008 16:04:44 -0800
Mon, 28 Jan 2008 16:04:44 -0800
On Jan 28, 2008 1:14 PM, Herbert Poetzl <herbert@13thfloor.at> wrote:

> On Mon, Jan 28, 2008 at 12:58:30PM -0800, Belinda Lawson wrote:
>
> Does anyone know if the vserver decides which processes get killed off
> once
> > the rss hard limit is reached?  And if so, what criteria does it use?
>
> the same decision process is used as on the host
> (actually it is the host's OOM killer reaping the
> processes), but you can provide a bias for each
> guest (in recent kernels) and being over the soft
> limit will increase the chances too


From reading the documentation, I got the impression that nothing would be
killed until the hard limit was reached.  Is that incorrect then?   Is there
a chance that the OOM killer will become active if I am between the soft and
hard limits?

Thanks again,
-Belinda


On Jan 28, 2008 1:14 PM, Herbert Poetzl <herbert@13thfloor.at> wrote:
On Mon, Jan 28, 2008 at 12:58:30PM -0800, Belinda Lawson wrote:
> Does anyone know if the vserver decides which processes get killed off once
> the rss hard limit is reached?  And if so, what criteria does it use?

the same decision process is used as on the host
(actually it is the host's OOM killer reaping the
processes), but you can provide a bias for each
guest (in recent kernels) and being over the soft
limit will increase the chances too

From reading the documentation, I got the impression that nothing would be killed until the hard limit was reached.  Is that incorrect then?   Is there a chance that the OOM killer will become active if I am between the soft and hard limits?

Thanks again,
-Belinda