Messages in this thread | | | Date | Thu, 6 Jan 2000 16:13:09 +0100 (CET) | From | Peter Tufvesson <> | Subject | Re: Can a process use up more than 910MB? |
| |
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/
| |