Re: [PATCH] Prevent OOM from killing init

From: Mike Galbraith (mikeg@wen-online.de)
Date: Sat Mar 24 2001 - 10:06:57 EST


On Sat, 24 Mar 2001, Jonathan Morton wrote:

> >General thread comment:
> >To those who are griping, and obviously rightfully so, Rik has twice
> >stated on this list that he could use some help with VM auto-balancing.
> >The responses (visible on this list at least) was rather underwhelming.
> >I noted no public exchange of ideas.. nada in fact.
> >
> >Get off your lazy butts and do something about it. Don't work on the
> >oom-killer though.. that's only a symptom. Work on the problem instead.
>
> Since I'm hacking around in this area anyway (warning: kernel newbie
> alert!), I'd be happy to help examine the balancing code from a fresh
> perspective. Where should I be looking?

Everything in mm plus fs/buffer.c at least. (plus includes) A good
place to start is with __alloc_pages().. that will drag you through
a lot of the balancing code. Following entry points (sys_brk, sys_mmap
etc) is highly recommended. Be prepared for dizzy spells if you've
never toured mm-land before :)

        -Mike

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



This archive was generated by hypermail 2b29 : Sat Mar 31 2001 - 21:00:10 EST