Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* More questions on swap space reservation
@ 1999-05-26  4:00 dtmoore
  1999-05-26  4:00 ` Serguei Patchkovskii
  0 siblings, 1 reply; 4+ messages in thread
From: dtmoore @ 1999-05-26  4:00 UTC (permalink / 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.---



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-05-27  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-26  4:00 More questions on swap space reservation dtmoore
1999-05-26  4:00 ` Serguei Patchkovskii
1999-05-27  4:00   ` dtmoore
1999-05-27  4:00     ` Serguei Patchkovskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox