Hi All,
My counting skills seem to have gone awry today and I wonder if someone can point out my simple error?
The minimal application below is supposed to create an array with a total size of around 5GB (46000001 x 13 x 8) and set an integer. I compile it for linux x86_64 as a console app using Xojo 2016 release 4
dim ps(46000000,12) as integer
print "trying"
ps(15129213,1)=2
print "success"
when I try to run this on ether of my CentOS7 servers with either 120GB or 400GB free memory, I get segmentation
faults. Am I badly underestimating the size of the array here or is there another problem? Thanks for your thoughts!
first server:
[aplatts@ 1]$ free -g
total used free shared buff/cache available
Mem: 125 1 124 0 0 124
Swap: 3 0 3
[aplatts@ 1]$ ./test
trying
Segmentation fault (core dumped)
[aplatts@ 1]$
Second server:
[aplatts@ ~]$ chmod u+x test
[aplatts@ ~]$ free -g
total used free shared buff/cache available
Mem: 1511 1022 444 0 43 470
Swap: 3 0 3
[aplatts@ ~]$ ./test
trying
Segmentation fault (core dumped)
[aplatts@ ~]$