Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shodha.enet.dec.com!alan From: alan@shodha.enet.dec.com ( Alan's Home for Wayward Notes File.) Newsgroups: comp.unix.ultrix Subject: Re: Malloc Problems with DECstation 5000/200 Summary: Maxtsiz, maxdsiz, maxssiz and swapfrag. Keywords: Malloc, RISC, Ultrix 4.1 Message-ID: <2927@shodha.enet.dec.com> Date: 16 Apr 91 16:09:24 GMT References: <3853@ssc-bee.ssc-vax.UUCP} Distribution: usa Organization: Digital Equipment Corp. - Colorado Springs, CO. Lines: 42 In article <3853@ssc-bee.ssc-vax.UUCP}, ian@ssc-vax.UUCP (Ian R. Searle) writes: } Has anybody out there been having malloc problems on a DECstation } 5000/200? We have 32 Meg of RAM, and 150+ swap, output from } pstat -s below: } } 157688k swap configured } 21948k reserved virtual address space } 20236k used (4640k text, 0k smem) } 137452k free, 1224k wasted, 0k missing } avail: 4291*32k 140*1k } } We are having troubles getting a single process to malloc more than } 60 Mbytes, we can get the same program running in separate windows } to malloc over 120 Mbytes, but a single instance of the program } cannot seem to grab more than about 60 Mbytes. The simple test } program listed below can grab 32 Mbytes, 60-70 Mbytes when linked } with "gcc -o test test.o -lmalloc". BTW when we run this program } there is plenty of free swap according to pstat -s. What is the value of maxdsiz in the configuration? If left to default the data space of a process on a DECstation is limited to 64 MB. You can also check it by using the csh(1) limit built-in. See the "Guide to System Configuration File Maintainence" for rules on changing the value. } } } [ Program deleted. ] } } Can anybody point out what in the world I'm doing wrong (no this is } NOT a trick question). It's almost certainly a limit problem. } } Thanks in advance, Ian Searle You're welcome. -- Alan Rollow alan@nabeth.cxn.dec.com