Re: User space out of memory approach

Edjard Souza Mota
2005-01-11T10:01:13Z

Hi,

> > > > 1) ranking for the most likely culprits only starts when memory consumption
> > > > gets close to the red zone (for example 98% or something like that).
>
> We do the ranking only in the oom situation, so what's your point ?

The point is that kernel doesn't need to keep watching the memory space
every time a process needs memory. Only when memory is close this red zone.

>
> > > > 2) killing just gets the first candidate from the list and kills it.
> > > > No need to calculate
> > > > at kernel level.
>
> So I need a userspace change in order to solve a kernel problem ?

You could see in another way. Release the kernel from calculating rating
so that better approaches of choosing the culprit can be proposed and
tested withoud mess too much the code.

>
> > > What is the default behaviour when no userspace settings are available -
> > > Nothing ? Are you really expecting that we change every root fs in order
> > > to be able to upgrade the kernel for solving this _kernel_ problem ?
> >
> > No, I certainly don't. But, have seen the application we also posted? It is
> > a test for while, that actually starts a deamon when you boot the kernel
> > and does rate this application, i.e. an application with root rating priority
> > so it will never be killed and never lack space for itself.
> > So, the answer to your 2nd very good point.
>
> You did not answer my question at all. I do not want to update my rootfs
> to solve a problem which exists in the kernel and must be solved in the
> kernel.

If you stick on this thought, then there is more to say, but rather send test
results soon so that you all can evaluate.

br

Edjard

--
"In a world without fences ... who needs Gates?"