lkml.org 
[lkml]   [2000]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.2.15pre12
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [from the cache]
©2003-2011 Jasper Spaans