From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,651e3e98c7f5f278 X-Google-Attributes: gid1164f8,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: Compiler options to limit swap space Date: 1999/05/18 Message-ID: <7hs2u0$7qs@ds2.acs.ucalgary.ca>#1/1 X-Deja-AN: 479489155 References: <7hrtkj$a9c$1@nnrp1.deja.com> Organization: The University of Calgary Newsgroups: comp.sys.dec sponk@my-dejanews.com wrote: : I have some FORTRAN code that seems to be : particularly greedy about reserving my swap space : .. but then doesn't use the reserved space hardly : at all. This means that I can only run a couple : processes at a time, which is extrememly annoying. Basically, you have a choice of two options: 1. Switch to the lazy swap allocation mode. Simply remove /sbin/swapdefault, and reboot. The danger here is that if you run out of swap in the lazy mode, you can count on a spectacular system crash. 2. Go over your Fortran code, and replace large statically dimentioned arrays with dynamically allocated arrays using as much space as needed. Depending on the internal sofistication of the program you use, this may be either extremely simple or a royal pain in the neck. YMMV. 2a. Sorry, there is no magic compiler switch which can do this for you. May be if Compaq implements the rumoured DWIM instruction... /Serge.P -- home page: http://www.cobalt.chem.ucalgary.ca/ps/