From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4290c63da83666fe,start X-Google-Attributes: gid1164f8,public From: Bill Crutchfield Subject: can't get enough stack memory Date: 1996/06/03 Message-ID: <31B3482C.794B@mothra.lbl.gov>#1/1 X-Deja-AN: 158279446 content-type: text/plain; charset=us-ascii organization: CCSE/NERSC mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 2.01 (X11; I; OSF1 V3.2 alpha) On Dec Unix 3.2C, we have the following problem: we can't get all the stackspace that we are supposed to get. To be precise: the following program will coredump with a segmentation violation program cat real x(12*1024*1024/4) x(1) = 1. write(6,*)x(1) stop end This program, if compiled with f77 -automatic will die when running. If I omit '-automatic' (which then causes x to be allocated in bss), then it runs fine. If I reduce the size of the array to 11 megabytes, it runs fine. We have lots of RAM, so that's not our problem. Our system has been configured with sysconfig to have a maximum stackspace of 32 meg. Here is what limits reports: % limit cputime unlimited filesize unlimited datasize 131072 kbytes stacksize 32768 kbytes coredumpsize unlimited memoryuse 250088 kbytes descriptors 4096 files addressspace 1048576 kbytes % limit -h cputime unlimited filesize unlimited datasize 1048576 kbytes stacksize 32768 kbytes coredumpsize unlimited memoryuse 250088 kbytes descriptors 4096 files addressspace 1048576 kbytes Does anyone have an explanation/fix for this? What else needs to be tuned? -- W. Y. Crutchfield WYcrutchfield@lbl.gov Center for Computational Sciences and Engineering PHONE 510-486-5263 Lawrence Berkeley National Laboratory FAX 510-486-6900