* Low on swapspace
@ 2000-02-07 5:00 Marcus Johansson
2000-02-08 5:00 ` Bob Harris
2000-02-08 5:00 ` Jan Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Marcus Johansson @ 2000-02-07 5:00 UTC (permalink / raw)
Hi!
I have a Compaq Unix 5.0 server who is constantly complaining about lack
of swapspace. There is absolutely nothing running on it, and i've
configured it pretty much default, no strange things at all.
I know this isn't much information, but I don't know what to include..
Except for this:
# bash-2.03# swapon -s
Swap partition /dev/disk/dsk0b (default swap):
Allocated space: 16384 pages (128MB)
In-use space: 83 pages ( 0%)
Free space: 16301 pages ( 99%)
Total swap allocation:
Allocated space: 16384 pages (128.00MB)
Reserved space: 12677 pages ( 77%)
In-use space: 83 pages ( 0%)
Available space: 3707 pages ( 22%)
What is reserved space?
/Marcus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Low on swapspace
2000-02-07 5:00 Low on swapspace Marcus Johansson
2000-02-08 5:00 ` Bob Harris
@ 2000-02-08 5:00 ` Jan Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Jan Wysocki @ 2000-02-08 5:00 UTC (permalink / raw)
Marcus Johansson wrote:
>
> Hi!
>
> I have a Compaq Unix 5.0 server who is constantly complaining about lack
> of swapspace. There is absolutely nothing running on it, and i've
> configured it pretty much default, no strange things at all.
>
> I know this isn't much information, but I don't know what to include..
> Except for this:
>
> # bash-2.03# swapon -s
> Swap partition /dev/disk/dsk0b (default swap):
> Allocated space: 16384 pages (128MB)
> In-use space: 83 pages ( 0%)
> Free space: 16301 pages ( 99%)
>
> Total swap allocation:
> Allocated space: 16384 pages (128.00MB)
> Reserved space: 12677 pages ( 77%)
> In-use space: 83 pages ( 0%)
> Available space: 3707 pages ( 22%)
>
> What is reserved space?
As it suggests, processes have reserved this address space, but are not
currently using it.
They're jus hedging their bets. If you can't increase your swap space,
you might
care to try using 'lazy swap' instead. If the link '/sbin/swapdefault'
exists, rename it
and reboot your machine. With 'lazy swap' processes don't allocate swap
space until they
need to use it. The downside of lazy swap is that it's possible that
you may run out of swap
space at some critical moment. With 'immediate swap' allocation,
processes will fail to start
the moment all swap space has been reserved.
--
Jan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Low on swapspace
2000-02-07 5:00 Low on swapspace Marcus Johansson
@ 2000-02-08 5:00 ` Bob Harris
2000-02-08 5:00 ` Jan Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Bob Harris @ 2000-02-08 5:00 UTC (permalink / raw)
To: Marcus Johansson
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <389EDF65.C71E1B0@viewlocity.com>, Marcus Johansson
<mjohansson@viewlocity.com> wrote:
>Hi!
>
>I have a Compaq Unix 5.0 server who is constantly complaining about lack
>of swapspace. There is absolutely nothing running on it, and i've
>configured it pretty much default, no strange things at all.
>
>I know this isn't much information, but I don't know what to include..
>Except for this:
>
># bash-2.03# swapon -s
> Reserved space: 12677 pages ( 77%)
>
>What is reserved space?
Since you have a V5.0 system, you want to use
/usr/bin/X11/dxkerneltuner utility and change the 'vm' parameter
'vm_swap_eager' to zero. The vm_swap_eager parameter is kept in the
/etc/sysconfigtab file. On V4.0 and earlier versions, specifying eager
vs lazy was done by having a symbolic link named /sbin/swapdefault
which pointed to your swap device if you wanted eager swapping. In
V5.0 this has been replaced with the sysconfigtab 'vm_swap_eager'
parameter.
The next time you reboot your system, processes will only allocate
space in swap file when they are actually swapped.
Currently in eager mode, the applications reserver as much space in the
swap area as they have virtual memory, even if they are never swapped.
If you have lots of memory and do not swap very often, then turning off
eager swap mode can allow you to get away with having much less swap
space.
However, if you do end up needing to swap processes, then if you do not
have sufficent swap space for all the virtual memory of all the
processes that need to be swapped, then the system will be forced to
actually kill processes that need to swap but can not get the swap
space to be swapped into. That is the trade-off you have to make when
deciding on using eager vs lazy swap modes.
Personally on my workstation, I use lazy swap mode, but I also have a
reasonable amount of swap space and I keep some spare disk partitions
hanging around just in case I need to add some swap space. It happens
from time to time, like when I decided to play with the 'xv' utility on
a huge picture image, or start too many compiles and links at the same
time, or Netscape has yet another memory leak and eats up too much
memory and increases swapping on other processes, etc...
But for the most part, lazy swap mode (vm_swap_eager=0) is not a
problem for me. Your mileage may vary.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-08 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-07 5:00 Low on swapspace Marcus Johansson
2000-02-08 5:00 ` Bob Harris
2000-02-08 5:00 ` Jan Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox