Re: [PATCH] strict VM overcommit

Alan Cox (alan@lxorguk.ukuu.org.uk)
21 Jul 2002 14:32:29 +0100


On Sun, 2002-07-21 at 10:10, Szakacsits Szabolcs wrote:
>
> On Fri, 19 Jul 2002, Alan Cox wrote:
> > > How is assured that it's impossible to OOM when the amount of memory
> > > shrinks?
> > > IOW:
> > > - allocate very much memory
> > > - "swapoff -a"
> >
> > Make swapoff -a return -ENOMEM
> >
> > I've not done this on the basis that this is root specific stupidity and
> > generally shouldnt be protected against
>
> Recommended reading: MIT's Magazin of Innovation Technology Review,
> August 2002 issue, cover story: Why Software Is So Bad?
>
> Next you might read: "... prominent, leading Linux kernel developer
> publically labels users stupid instead of handling a special case

I would suggest you do something quite different. Go and read what K&R
had to say about the design of Unix. One of the design goals of Unix is
that the system does not think it knows better than the administrator.
That is one of the reasons unix works well and is so flexible.

Alan

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