* How to change swap allocation policy?
@ 1994-10-27 20:36 Paul Southworth
1994-10-28 18:58 ` Leclercq Philippe
0 siblings, 1 reply; 2+ messages in thread
From: Paul Southworth @ 1994-10-27 20:36 UTC (permalink / raw)
I seem to recall seeing this question here before, but don't recall the
answer. Anyway, OSF/1 2.0 on an Alpha 3000-300LX; seems to reserve
mountainous quantities of swap pages even though it doesn't use them,
and frequently reserves so much that you get those irritating as all hell
messages about "below 10%". Is there a way to make it more conservative
in its page reservation? We end up running out of swap with 10-15 users
reading their mail and running a few xterms on a machine with 64Mb RAM
and 128Mb swap. That seems unreasonable to me, even comparing it to
a 32-bit machine with half the RAM.
--
Paul Southworth
CICNet Systems Support
pauls@cic.net
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to change swap allocation policy?
1994-10-27 20:36 How to change swap allocation policy? Paul Southworth
@ 1994-10-28 18:58 ` Leclercq Philippe
0 siblings, 0 replies; 2+ messages in thread
From: Leclercq Philippe @ 1994-10-28 18:58 UTC (permalink / raw)
In article <38p313$kru@spruce.cic.net>, pauls@locust.cic.net (Paul Southworth) writes:
|>
|>I seem to recall seeing this question here before, but don't recall the
|>answer. Anyway, OSF/1 2.0 on an Alpha 3000-300LX; seems to reserve
|>mountainous quantities of swap pages even though it doesn't use them,
|>and frequently reserves so much that you get those irritating as all hell
|>messages about "below 10%". Is there a way to make it more conservative
|>in its page reservation? We end up running out of swap with 10-15 users
|>reading their mail and running a few xterms on a machine with 64Mb RAM
|>and 128Mb swap. That seems unreasonable to me, even comparing it to
|>a 32-bit machine with half the RAM.
|>
|>--
|>Paul Southworth
|>CICNet Systems Support
|>pauls@cic.net
|>
There are 2 swapping policies in DEC OSF/1 : eager swap and lazy swap.
The default is eager swap : for every task, the system reserves a swap
slot for the writeable pages. This ensures that, when a task is started,
there is a guarantee that it can be entirely swapped out if needed.
Lazy swap policy does not reserve anything in advance, so if you have enough
RAM you will not see swap space usage. The drawback is that, when you
*need* the swap space and there is none left, your application crashes.
The behavior is regulated by the presence or the absence of the file
/sbin/swapdefault. If it is present and is a symbolic link to the
primary swap partition special file, then eager swap is active.
If it is not there, then you have lazy swap.
So, in your case, remove (or better rename) /sbin/swapdefault and
reboot your machine.
-Philippe
Digital Brussels
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-28 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-27 20:36 How to change swap allocation policy? Paul Southworth
1994-10-28 18:58 ` Leclercq Philippe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox