Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!bionet!synoptics!unix!hplabs!hpfcso!mike From: mike@hpfcso.HP.COM (Mike McNelly) Newsgroups: comp.sys.hp Subject: Re: f77 and 2 MB data segment limit Message-ID: <7370240@hpfcso.HP.COM> Date: 22 Oct 90 23:19:35 GMT References: Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 30 > I am doing calculations in HP 9000/835 and in those calculations > I need a lot memory (sometimes more than 30 MB). I am having > problems with fortran (f77). If I compile program, which have bigger > data segment than 2 MB, normally and run it, I get segmentation > fault in fortran's initialization code. Everything works right if > I use -K option with f77 so that variables are allocated statically. > Problem with -K option is that executables are at least as big as > data segment and therefore they take a lot of disk space and they > start very slowly. > > Without -K option variables are allocated dynamically from the stack. > I am quite sure that stack size limit is more than 2 MB, so that the > problem shouldn't be stack size limit. I would like to know what is > causing this 2 MB limit and how I can make big programs work without > -K option or statical variable allocation. > -- > Jari Toivanen (toivanen@jyu.fi) Memories are lost in time > University of Jyvaskyla, Finland like tears in rain. I suspect that you are exceeding a default kernel parameter that is unrelated to FORTRAN per se. Check with your system administrator to see what maxssize is set to. On series 300 it is set to 2 MB by default but your system administrator can reconfigure it for much larger values. I'm not sufficiently familiar with the Series 800 to tell you how exactly but the procedure is documented in the Series 800 System Administration manuals for sure. maxssize is max user stack size. Mike McNelly mike@fc.hp.com