From: dtmoore <sponk@my-deja.com>
Subject: More questions on swap space reservation
Date: 1999/05/26 [thread overview]
Message-ID: <7ihcme$4c8$1@nnrp1.deja.com> (raw)
Ok ... from eariler posts I know that there are two swap space
reservation modes:
lazy -- reserve space only as needed ... can be risky
aggressive -- reserve max. amt. of swap space at start of process and
keep it reserved until process terminates
Now, I have a FORTRAN77 program which contains lots of fairly
large statically allocated arrays. When I run it under the agressive
swap mode it eats up about a third of my swap space (101 MB), but its
resident memory size is only ~6MB. My question is: Why are the
resident size and swap size so different? As I understood it, the
aggressive mode reserved enough space so that the entire memory image of
a process could be swapped out. Well, in this case, the memory image
appears to be 6.4 MB, yet it reserves about 16 times that in swap space.
What exactly is it that I am confused about here? If I understand that,
maybe I can modify the program so that it isn't such a swap hog.
All comments/suggestions are appreciated.
--
Dave Moore -- Chemistry Dept. -- UNC Chapel Hill
Ford: "... eddys in the space-time continuum ..."
Arthur: "So this is his sofa then, is it?"
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
next reply other threads:[~1999-05-26 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-26 4:00 dtmoore [this message]
1999-05-26 4:00 ` More questions on swap space reservation Serguei Patchkovskii
1999-05-27 4:00 ` dtmoore
1999-05-27 4:00 ` Serguei Patchkovskii
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