Re: Can a process use up more than 910MB?

From: Peter Tufvesson (tuwe@flakey.df.lth.se)
Date: Thu Jan 06 2000 - 10:13:09 EST


Hi all,

I have now tried the program below on 2.2.12, 2.2.13, 2.3.36 (High memory
support: Off, 4GB and 64GB) with the same result:

My program can only allocate 910MB !!!

What can be done about this? I need at least 2GB of virtual memory per
process. I thought Linux could handle this?

Thanks.

-----------------------------------

#include <string.h>
#include <stdlib.h>

main() {
  int i;
  void *x;
  x = (void *)4;
  for(i=0;x!=NULL;i++) {
    x = malloc(1024);
    if(x!=NULL) {
      memset(x,1024,6);
      if(i%1000)==0) {
        printf("malloc %d\n",i/1000);
      }
    }
  }
  sleep(20);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:06 EST