On Fri, 10 Oct 2003, Tay Teck Wee wrote:

> > How large is the process shortly before it dies?
> 
> 900M

And how large processes does your sustem support?

Try this small C test program:

// begin test.c
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
  int size = 0;
  char *ptr;

  while ((ptr = malloc(1024)) != NULL) {
     size += 1;
     *ptr = 1;
     if (!(size & 0x3FF))
       printf("allocated memory: %d MB\n", size / 1024);
  }
  printf("Max allocated memory: %d KB (%d MB)\n", size, size / 1024);
}
// end test.c


cc test.c
./a.out


Regards
Henrik

Reply via email to