From: art@sdg.dra.com (Art Zemon)
Subject: Re: swap methods?
Date: 19 Jul 94 13:53:32 CDT [thread overview]
Message-ID: <1994Jul19.135332.797@sdg.dra.com> (raw)
In-Reply-To: 3077iq$f6v@newsroom.gsfc.nasa.gov
When OSF/1 is in "eager" swap mode, it allocates on-disk swap space before
satisfying each request for virtual memory. In other words, if your program
requests 64 KB of virtual memory, OSF/1 will find space on disk to which it
can swap that VM. The disk space may never be used, but it is there if
you ever need it.
When OSF/1 is in "lazy" swap mode, it allocates VM without bothering to
allocate on-disk swap space. In the event that OSF/1 needs to page or
swap, it then tries to find the disk space required.
The advantage to lazy mode is that you can keep filling up physical memory
even if you don't have enough swap space. I.e., you could have 256 MB of
memory but only 128 MB of swap space. This would give you (very roughly)
384 MB of useable virtual memory.
The danger in using lazy mode is that OSF/1 may need to abruptly kill
a running process if the operating system desperately needs physical
memory and there is no swap space available.
The advantage to eager mode is that processes never get killed due to
lack of swap space. If they request VM and get it, then they are safe.
The worst that can happen is that they request VM and the operating system
denies the request.
The disadvantage to eager mode is that you need lots of swap space,
typically 2-3 times the amount of physical memory. Any less and you
may run out of swap space before you run out of physical memory.
Cheers,
-- Art Z.
next prev parent reply other threads:[~1994-07-19 18:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-15 22:17 command line args for restore John Miller
1994-07-15 23:54 ` swap methods? Gilbert M. Smith Jr.
1994-07-19 18:53 ` Art Zemon [this message]
1994-07-21 12:59 ` Starlink Manager
1994-07-22 15:12 ` Art Zemon
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