From: torvalds@klaava.Helsinki.FI (Linus Torvalds) Subject: Re: virtual memory tester Date: 29 Jun 1993 16:19:00 +0300
In article <1993Jun29.104940.15504@cv.ruu.nl> koen@cv.ruu.nl (Koen Vincken) writes:
>
>The following program should check how much virtual memory there is.
>For one reason or another the program fails (probably) on the 'if'
>statement (it continues looping).
>
>Anybody got a clue ?
Yes. brk() on pl10 and all earlier kernels will always succeed, so
malloc() never returns NULL being somewhat optimistic about linux'
ability to move pages around.. Try the same program under pl10 with the
latest ALPHA-diffs, and it should actually work as you expect. The
newest kernel and ALPHA-diffs can be found on nic.funet.fi in the
directory pub/OS/Linux/PEOPLE/Linus.
Linus