Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* why my swap space run low?
@ 1996-06-26  4:00 Wong Pui Ming
  1996-06-27  4:00 ` Han Pilmeyer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wong Pui Ming @ 1996-06-26  4:00 UTC (permalink / raw)



lately our osf1 (ver 3.0) always got the message 
swap space is low. But in fact there are not too many processses
running. I did the swapon -s to see, and got the following
Could some spot what's going on for me please ?

Swap partition /dev/rz0b (default swap):
    Allocated space:        25088 pages (196MB)
    In-use space:            4224 pages ( 16%)
    Free space:             20864 pages ( 83%)

Swap partition /dev/rz2b:
    Allocated space:        25088 pages (196MB)
    In-use space:            4074 pages ( 16%)
    Free space:             21014 pages ( 83%)


Total swap allocation:
    Allocated space:        50176 pages (392MB)
    Reserved space:         44173 pages ( 88%)
    In-use space:            8298 pages ( 16%)
    Available space:         6003 pages ( 11%)

--
        __
   / \_/  )             __   Pui Ming WONG (E-mail: pm@hkbu.edu.hk) 
  /      ( -------------  }  System Support Programmer
 (  =l=ll===============__}  Computing & Telecomm. Services Centre
  \   _  (                   Hong Kong Baptist University 
   \_/ \__)                  224 Warerloo Road, Hong Kong (Tel:23397425)



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

* Re: why my swap space run low?
  1996-06-26  4:00 why my swap space run low? Wong Pui Ming
@ 1996-06-27  4:00 ` Han Pilmeyer
  1996-06-27  4:00 ` Bill Reid
  1996-06-28  4:00 ` Patrick O'Rourke USG
  2 siblings, 0 replies; 4+ messages in thread
From: Han Pilmeyer @ 1996-06-27  4:00 UTC (permalink / raw)


>>>>> "Wong" == Wong Pui Ming <s11976@net2.hkbu.edu.hk> writes:

Wong> lately our osf1 (ver 3.0) always got the message 
Wong> swap space is low. But in fact there are not too many processses
Wong> running. I did the swapon -s to see, and got the following
Wong> Could some spot what's going on for me please ?

The information you supplied is not nearly enough to tell what's going
on. The minimum information required to get a vague idea would be the
output of a 'ps axu' command in combination with the output you
already provided ('swapon -s').

In the meantime you can see if /sbin/swapdefault points to one of
your swap devices. If it does, then remove (or rename) this symbolic
link. This will switch the system from immediate to deferred mode
swapping after the next reboot 

Cheers.
-- 
Han Pilmeyer, han@uto.dec.com, Phone: +31 30 2832671, FAX: +31 30 2832686
Digital Equipment B.V., Europalaan 44, 3526 KS Utrecht, The Netherlands
|         Answers are the easy part, questions raise the doubt   -JB          |
All opinions are those of the author, not of Digital Equipment!



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

* Re: why my swap space run low?
  1996-06-26  4:00 why my swap space run low? Wong Pui Ming
  1996-06-27  4:00 ` Han Pilmeyer
@ 1996-06-27  4:00 ` Bill Reid
  1996-06-28  4:00 ` Patrick O'Rourke USG
  2 siblings, 0 replies; 4+ messages in thread
From: Bill Reid @ 1996-06-27  4:00 UTC (permalink / raw)


Wong Pui Ming wrote:
> 
> lately our osf1 (ver 3.0) always got the message
> swap space is low. But in fact there are not too many processses
> running. I did the swapon -s to see, and got the following
> Could some spot what's going on for me please ?
> 
> Swap partition /dev/rz0b (default swap):
>     Allocated space:        25088 pages (196MB)
>     In-use space:            4224 pages ( 16%)
>     Free space:             20864 pages ( 83%)
> 
> Swap partition /dev/rz2b:
>     Allocated space:        25088 pages (196MB)
>     In-use space:            4074 pages ( 16%)
>     Free space:             21014 pages ( 83%)
> 
> Total swap allocation:
>     Allocated space:        50176 pages (392MB)
>     Reserved space:         44173 pages ( 88%)
>     In-use space:            8298 pages ( 16%)
>     Available space:         6003 pages ( 11%)


Check and see what type of swapping you are doing.  Read the man page on
swapon.  If you have a soft link named /sbin/swapdefault then the system
reserves space every time modifiable virtual address space is created. 

Try doing a ps auwx |more.  Look under the columns VSZ and RSS.  The VSZ
is the amount of virtual address space created when the process starts.
The RSS is the real memory being used.  If you look at your processes
you may find some like terminals or xdm sessions which ask for VSZ of
3-6M but are only using a few K.  If you have many of these processes
the system is reserving space incase it is needed but not letting any
other process use that space.  If this is the case you may want to
switch to the deferred method of swapping.  

You will need to mv /sbin/swapdefault or delete it and then reboot your
system.  What will happen is that the system will no longer reserve swap
space but will just take what it needs.  The drawback to this method is
if the system is busy and needs swap space that it can not get it will
start to kill processes to free up space.

We are currently running two systems this way and have had little
problems.  Hope this helps.


Bill Reid
Advanced Software SE
EDS Wilmington Assembly



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

* Re: why my swap space run low?
  1996-06-26  4:00 why my swap space run low? Wong Pui Ming
  1996-06-27  4:00 ` Han Pilmeyer
  1996-06-27  4:00 ` Bill Reid
@ 1996-06-28  4:00 ` Patrick O'Rourke USG
  2 siblings, 0 replies; 4+ messages in thread
From: Patrick O'Rourke USG @ 1996-06-28  4:00 UTC (permalink / raw)


Wong Pui Ming wrote:
> 
> lately our osf1 (ver 3.0) always got the message
> swap space is low. But in fact there are not too many processses
> running. I did the swapon -s to see, and got the following
> Could some spot what's going on for me please ?

It appears as if your system is running in 'eager' swap mode.  This
means that for every page of virtual memory allocated, there must
be a corresponding page of swap space to back it up (in the event
the system may need to page it out).  Did you run 'swapon -s' at the
time you were getting the low swap space messages?  Was there an
application attempting to allocate a large region of virtual memory?

As an alternative to adding more swap space, you can run in 'lazy' swap
mode by renaming the symbolic link '/sbin/swapdefault' and then reboot.
In lazy swap mode the system does not reserve swap space until it actually
needs it (i.e. at page out time).  One caveat about running in lazy swap mode
is if you do exhaust your swap space while swapping out a process, that process
will be killed.

Pat

-- 
Patrick O'Rourke                                                 (603) 881-0124
orourke@zk3.dec.com                                            Office: ZK3/3S05



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

end of thread, other threads:[~1996-06-28  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-26  4:00 why my swap space run low? Wong Pui Ming
1996-06-27  4:00 ` Han Pilmeyer
1996-06-27  4:00 ` Bill Reid
1996-06-28  4:00 ` Patrick O'Rourke USG

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