Re: OOM?

From: Rik van Riel (riel@conectiva.com.br)
Date: Mon Jun 26 2000 - 15:55:19 EST


On Mon, 26 Jun 2000, Alan Cox wrote:

> > Alan, this is a workaround but not a good solution. And neither are
> > ulimits. The fact that running OOM crashes the kernel is the longest
>
> It doesnt crash the kernel unless init dies
>
> > Isn't anyone interested in fixing it?
>
> Try Rik van Riel's process for death selection stuff

*nod*

I have an idea on how to integrate this _cleanly_.

If, at the end of do_try_to_free_pages(), we:

1) failed to free all the pages we wanted
   (ie. count isn't 0)

AND

2) we have no swap space left

THEN

call the OOM killer and kill the "worst" process.

regards,

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:09 EST