lkml.org 
[lkml]   [2000]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.359 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site