Fusengammu
Registered
Hi, I want to run this program:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
double y[100000000]; # that's a double array of size 10^8
y[0] = 1;
y[99999999] = 1;
printf("%f %f\n", y[0], y[size - 1]);
}
I have a dual 2.5GHz G5 w/ 2.5G of RAM. I've tried changing the shared memory size :
kern.sysv.shmmax: 536870912
kern.sysv.shmmin: 1
kern.sysv.shmmni: 4096
kern.sysv.shmseg: 4096
kern.sysv.shmall: 131072
kern.sysv.semmni: 87381
kern.sysv.semmns: 87381
kern.sysv.semmnu: 87381
kern.sysv.semmsl: 87381
kern.sysv.semume: 10
and I've tried setting ulimit -s to a large #, but it won't go above 65536.
Incidentally, the above program runs fine on a dual Opteron HP box running RedHat w/ 2G of RAM.
This is totally confusing me, help!
Thanks All!
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
double y[100000000]; # that's a double array of size 10^8
y[0] = 1;
y[99999999] = 1;
printf("%f %f\n", y[0], y[size - 1]);
}
I have a dual 2.5GHz G5 w/ 2.5G of RAM. I've tried changing the shared memory size :
kern.sysv.shmmax: 536870912
kern.sysv.shmmin: 1
kern.sysv.shmmni: 4096
kern.sysv.shmseg: 4096
kern.sysv.shmall: 131072
kern.sysv.semmni: 87381
kern.sysv.semmns: 87381
kern.sysv.semmnu: 87381
kern.sysv.semmsl: 87381
kern.sysv.semume: 10
and I've tried setting ulimit -s to a large #, but it won't go above 65536.
Incidentally, the above program runs fine on a dual Opteron HP box running RedHat w/ 2G of RAM.
This is totally confusing me, help!
Thanks All!