Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Jonathan B. Craig" <jcraig@i2k.net>
Subject: Re: Swappage death on an Alphastation, DEC UNIX 3.2
Date: 1995/07/13	[thread overview]
Message-ID: <DBMv90.4Gq@onramp.i2k.com> (raw)
In-Reply-To: 3tv894$3nr@synergy.Destek.Net

cherkus@unimaster.com (Dave Cherkus) wrote:
>Peter Mardahl (peterm@landau.EECS.Berkeley.EDU) wrote:
>
>: Hello all,
>
>:   Maybe you can help me avoid a truly horrendous condition which
>: sometimes occurs on our Alphastations.  These guys have 64M of
>: RAM, 192M of swap, and are running DEC UNIX 3.2.
>
>:   Sometimes, when we have several large processes (RAM intensive)
>: going, it goes into swappage death mode.  Basically the system
>: entirely halts and the hard disk is really beaten on, until the
>: person on the console kills a few things.
>
>:   This is really understandable if all the large processes are running,
>: but several of them should be inactive and should quietly swap out.
>: They don't.
>
>:   vmstat and swapon -s both claim that the machine has plenty of
>: swap space left.
>
>:   The workstations aren't nearly so nice if the big inactive jobs
>: don't get swapped out.
>
>:   Can anyone give some advice?
>
>
>First, the amount of swap space is not related to performance.  Either
>there is enough to cover the needs of the working set of the system or
>there is not.   If there is not enough, either malloc()/sbrk() will
>fail (eager mode), or processes will get killed to make more space
>(lazy mode).  The number of pages in the free list, as reported by
>'vmstat 5' is a real indicator of overcommitment of memory.
>
>Second, you might want to read the man page for 'swapon' to see if you
>want to run in 'lazy mode'.  
>
>Third, there is a performance tuning guide in the doc set.  This
>can tell you about a number of knobs to play with in /etc/sysconfigtab.
>One set posted to the alpha-osf-managers mailing list was:
>
>vm:
>        ubc-minpercent = 5
>        ubc-borrowpercent = 25
>        ubc-maxpercent = 100
>        vm-ubcseqpercent = 10
>        vm-ubcseqstartpercent = 40
>        vm-ubcpagesteal = 32
>        vm-ubcdirtypercent = 10
>        vm-page-free-min = 20
>        vm-page-free-target = 128
>        vm-page-free-optimal = 96
>        vm-page-free-reserved = 10
>
>--
>Dave Cherkus ----- UniMaster, Inc. ----- Contract Software Development
>Specialties: UNIX TCP/IP X OSF/1 AlphaAXP AIX RS/6000 Performance ISDN
>Email: cherkus@UniMaster.COM  Tel: (603) 888-8308  Fax: (603) 888-4598
>Live Free or Die - New Hampshire has 3 seasons: ice, mud and black fly 

The key here is to force swapping to happen earlier on the system.  Using 
the vm-page-* variables to force the system to begin swapping earlier 
will actually help you.  This is because a larger "FREE" pool will be 
created for the active startup/complete applications.  Additionally, you 
may benifit from  increasing the TIME SLICE for any given process.  This 
will slow down the interactive applications but allow larger processes to 
receive more cpu time when swapped in.

In general, I have found that 64Mb of memory is just a tip and not 
necessarily enough from keeping you from the table outside the kitchen 
door.  I your huge memory hogs can't be slimmed down you may need to bite 
the bullet and cough up another 64Mb gratuity.




      reply	other threads:[~1995-07-13  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-09  4:00 Swappage death on an Alphastation, DEC UNIX 3.2 Peter Mardahl
1995-07-09  4:00 ` Brian Saunders
1995-07-10  4:00   ` Mark Charette
1995-07-10  4:00     ` Brian Saunders
1995-07-12  4:00     ` Les Walker
1995-07-12  4:00 ` Dave Cherkus
1995-07-13  4:00   ` Jonathan B. Craig [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