Subject: ulimit -m vs the real limit on process size?
To: None <port-i386@netbsd.org>
From: Douglas Troeger <dtroeger@ix.netcom.com>
List: port-i386
Date: 06/21/2002 21:17:43
I am running 1.5.2, with a generic kernel, on a machine with 256Meg of
ram. Under bash, ulimit -m returns 250316 (kbytes).
Nonetheless, my scheme processes are being killed by out-of-memory
errors at 128M, even though top reports that the system has memory
to spare.
In fact, the following program
--------------------------
#include <stdio.h>
int main()
{
while (1) { malloc(4096); }
}
--------------------------
allocates 128M (according to top), and no more.
I would be most grateful if someone could explain this to me! Can
the effective upper limit on process size be increased?
Thanks much,
D. Troeger