From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii)
Subject: Re: Compiler options to limit swap space
Date: 1999/05/18 [thread overview]
Message-ID: <7hs2u0$7qs@ds2.acs.ucalgary.ca> (raw)
In-Reply-To: 7hrtkj$a9c$1@nnrp1.deja.com
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/
next prev parent reply other threads:[~1999-05-18 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-18 4:00 Compiler options to limit swap space sponk
1999-05-18 4:00 ` Serguei Patchkovskii [this message]
1999-05-20 4:00 ` dtmoore
1999-05-20 4:00 ` Serguei Patchkovskii
1999-05-21 4:00 ` Jeffrey J. Potoff
1999-05-18 4:00 ` sponk
-- strict thread matches above, loose matches on Subject: below --
1999-05-18 4:00 sponk
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox