I have a pair of Dell Poweredge 2250's each with 4 gig of ram, running
7.1 with the 2.4.9-31enterprise kernel. I had thought this would allow
me to have programs that used more than 2 gig, but it seems that I
can't. Does anything else have to be done to allow me to run programs
with between 2 and 3 gig of memory?
[gsh@leo ~]$ cat mem.c
#include <stdio.h>
#include <malloc.h>
main(){
int i;
long long j;
float *x;
char c;
for(i=5;i<=32;i++){
j=1<<i;
printf("%d %d %lld %d\n",i,i*i,(j)*sizeof(float),sizeof(float));
fflush(stdout);
x=calloc(j,sizeof(float));
if (!x) {
printf("calloc failed\n");
c=getc(stdin);
}
x[j-1]=1.0;
free(x);
}
}
[gsh@leo ~]$ ./mem
5 25 128 4
6 36 256 4
7 49 512 4
8 64 1024 4
9 81 2048 4
10 100 4096 4
11 121 8192 4
12 144 16384 4
13 169 32768 4
14 196 65536 4
15 225 131072 4
16 256 262144 4
17 289 524288 4
18 324 1048576 4
19 361 2097152 4
20 400 4194304 4
21 441 8388608 4
22 484 16777216 4
23 529 33554432 4
24 576 67108864 4
25 625 134217728 4
26 676 268435456 4
27 729 536870912 4
28 784 1073741824 4
29 841 2147483648 4
calloc failed
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list