lkml.org 
[lkml]   [1997]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Memory overcommitting (was Re: http://www.redhat.com/redhat/)

On 20 Feb 1997, Andi Kleen wrote:

> Since 2.0.x Linux catches memory overcommits. See this code in mm/mmap.c:
Hmm, I've got a tiny static a.out program that tries to malloc as much as
it can; the only difference this seems to make is I can malloc a total
of only 2GB rather than 3GB. It still arrives in chunks of 32Mb or so.

It is a little odd though, it fails as soon as brk passes 2GB perhaps
there's a signed vs unsigned bug there somewhere. (V 2.0.29 btw)

> * stupid algorithm to decide if we have enough memory: while
Ah, I see ... :-)

--
Rob. (Robert de Bath <robert@mayday.cix.co.uk>)


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