[lkml]   [2000]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [W:0.160 / U:4.352 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site