Re: Memory overcommitting (was Re: http://www.redhat.com/redhat/)

Robert de Bath (robert@mayday.compulink.co.uk)
Sun, 23 Feb 1997 11:47:55 +0000 (GMT)


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