From: Patrick O'Rourke USG <orourke@zk3.dec.com>
Subject: Re: Swap space problem
Date: 1996/08/30 [thread overview]
Message-ID: <32273504.41C6@zk3.dec.com> (raw)
In-Reply-To: 322489A4.1DF2@sandoz.com
Ekkehard Goerlach wrote:
>
> On one of our machines we still run OSF/1 V2.0. Frequently we have a
> swap space problem on that workstation (a AXP 3000/300), i.e. the
> system issues messages like
> "Unable to allocate swap space". Shutting down all X apps does not
> help. A reboot gives only a limited time to do something before the
> system runs out of swap space again.
>
> Right now it seems to me that this is correlated to whether some
> directories hold a large number (several thousand) files. When these
> files are archived away, the system is quiet again.
>
> Is that observation resonable ? Can I change some system parameters
> to improve things ? Is this unique to V2.0 or might it happen on V3.2,
> too ?
I cannot say based on the information posted whether or not those large
directories
are related to the swap space problem. I suppose it depends on what
applications,
if any, are accessing the directories.
You might want to try running the system in 'lazy' swap mode; the system
is in
'eager' swap mode by default. You can do this by renaming the symbolic
link
/sbin/swapdefault and doing a reboot.
Whenever a process allocates virtual memory (e.g. stack, malloc, shm
segments) the
operating system will reserve a corresponding amount of swap space. Thus
the OS is
guaranteed to have a place to write this memory in the event it must
page it out at
some point in the future. This check is not done in 'lazy' mode and the
OS will
allow you to overcommit swap space (i.e. the total amount of virtual
memory allocated
exceeds the amount of swap space). Normally this is okay since the
system rarely
fills up all of swap space. However if the demand for physical memory
is so high
that swap space does become full, the OS will kill a process to make
physical memory
available. The process selected is somewhat arbitary and may not be the
one you
would have chosen. If this is the case you will need to add another
swap partition
(see the swapon command).
Pat
--
Patrick O'Rourke (603)
881-0124
orourke@zk3.dec.com Office:
ZK3/3S05
prev parent reply other threads:[~1996-08-30 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-28 4:00 Swap space problem Ekkehard Goerlach
1996-08-29 4:00 ` Georg Umgiesser
1996-08-29 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-08-30 4:00 ` Patrick O'Rourke USG [this message]
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