Re: Linux 2.2.15pre12

From: Jim Nance (jnance@nortelnetworks.com)
Date: Mon Mar 06 2000 - 09:47:22 EST


On Mon, Mar 06, 2000 at 02:18:57PM +0000, Paul Jakma wrote:

> as i understand it, currently linux grants all malloc's (unless
> OOM or limits apply) and only really allocates the pages when an app
> tries to access them. If we allocated memory straight away then we could
> avoid OOM, by telling errant app's ENOMEM a lot earlier? couldn't we?

Thats not quite true. Linux will fail malloc()s it "knows" it can not grant.
It is possible for it to promise you memory that it can not give you though.
There is a reason for this, but I am not sure I am qualified to elaborate on
them, so Ill let someone else do that.

Jim

-
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 : Tue Mar 07 2000 - 21:00:20 EST