* Swappage death on an Alphastation, DEC UNIX 3.2
@ 1995-07-09 4:00 Peter Mardahl
1995-07-09 4:00 ` Brian Saunders
1995-07-12 4:00 ` Dave Cherkus
0 siblings, 2 replies; 7+ messages in thread
From: Peter Mardahl @ 1995-07-09 4:00 UTC (permalink / raw)
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?
Regards,
PeterM
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Swappage death on an Alphastation, DEC UNIX 3.2
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-12 4:00 ` Dave Cherkus
1 sibling, 1 reply; 7+ messages in thread
From: Brian Saunders @ 1995-07-09 4:00 UTC (permalink / raw)
In article <3tno39$jil@agate.berkeley.edu>,
peterm@landau.EECS.Berkeley.EDU (Peter Mardahl) wrote:
[swap horror story concerning RAM-intensive jobs deleted]
> Can anyone give some advice?
I'd hate to say this, but "me too". We see the same darned thing happen.
Our workaround is for people to watch the total memory usage, and not run
a large job if another large job is running.
I'm sure there are ways of tuning this so it doesn't happen as badly, but
I'm at a loss to suggest what they are. I've scanned the Bookreader
documentation, but nothing leaps out at me. It seems you could tell the
system not to swap so much, but I'm not sure how you'd go about it.
--
Brian Saunders saunders@castor.che.wisc.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Swappage death on an Alphastation, DEC UNIX 3.2
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
0 siblings, 2 replies; 7+ messages in thread
From: Mark Charette @ 1995-07-10 4:00 UTC (permalink / raw)
Brian Saunders (saunders@castor.che.wisc.edu) wrote:
: In article <3tno39$jil@agate.berkeley.edu>,
: peterm@landau.EECS.Berkeley.EDU (Peter Mardahl) wrote:
: [swap horror story concerning RAM-intensive jobs deleted]
: > Can anyone give some advice?
: I'd hate to say this, but "me too". We see the same darned thing happen.
: Our workaround is for people to watch the total memory usage, and not run
: a large job if another large job is running.
If you want to live dangerously ....
You can turn on lazy swap evaluation by renaming (or otherwise keeping
the system from seeing the name) /sbin/swapdefault . This file is a link
to your swap device. Lazy evaluation causes no backing store to be allocated
immediately for dynamic memory allocation (malloc) - it attempts to map the
storage when required. Renaming the file (you must also reboot after the
renaming) may help you in this case. It may also cause "mysterious" failures
in codes since malloc will always succeed.
Again, a dangerous method, but one which can sometimes boost performance
enough to make it worthwhile.
--
Mark Charette charette@mika.com
MIKA Systems, Inc
17197 N. Laurel Park Dr Suite 115
Livonia, MI 48152
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Swappage death on an Alphastation, DEC UNIX 3.2
1995-07-10 4:00 ` Mark Charette
@ 1995-07-10 4:00 ` Brian Saunders
1995-07-12 4:00 ` Les Walker
1 sibling, 0 replies; 7+ messages in thread
From: Brian Saunders @ 1995-07-10 4:00 UTC (permalink / raw)
In article <3trg7h$85c@eccdb1.pms.ford.com>, charette@ultoe.det.dec.com
(Mark Charette) wrote:
>If you want to live dangerously ....
>You can turn on lazy swap evaluation by renaming (or otherwise keeping
>the system from seeing the name) /sbin/swapdefault . This file is a link
>to your swap device. Lazy evaluation causes no backing store to be allocated
>immediately for dynamic memory allocation (malloc) - it attempts to map the
>storage when required. Renaming the file (you must also reboot after the
>renaming) may help you in this case. It may also cause "mysterious" failures
>in codes since malloc will always succeed.
>Again, a dangerous method, but one which can sometimes boost performance
>enough to make it worthwhile.
We've been running in lazy mode for a year now. We have a small user
base, and they are usually sophisticated enough that they won't submit
more than the total swap space. Occasionally, this fails, but the only
disaster we've ever had from this is that it killed the X server, which
was restarted with ease. Usually, the offending job dies.
Not too many people in our group write applications that use a lot of
dynamic memory allocation, so usually we are pretty safe for this option.
I'm sure that we'd see more trouble if we had more people that did this.
I think these questions were more pointed towards minimizing swapping
after this measure has been taken - in particular with two large jobs that
total more than the physical memory.
--
Brian Saunders saunders@castor.che.wisc.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Swappage death on an Alphastation, DEC UNIX 3.2
1995-07-10 4:00 ` Mark Charette
1995-07-10 4:00 ` Brian Saunders
@ 1995-07-12 4:00 ` Les Walker
1 sibling, 0 replies; 7+ messages in thread
From: Les Walker @ 1995-07-12 4:00 UTC (permalink / raw)
In article <3trg7h$85c@eccdb1.pms.ford.com>, charette@ultoe.det.dec.com
says...
>
>Brian Saunders (saunders@castor.che.wisc.edu) wrote:
>: In article <3tno39$jil@agate.berkeley.edu>,
>: peterm@landau.EECS.Berkeley.EDU (Peter Mardahl) wrote:
>
>: [swap horror story concerning RAM-intensive jobs deleted]
>
>: > Can anyone give some advice?
>
>: I'd hate to say this, but "me too". We see the same darned thing happen.
>: Our workaround is for people to watch the total memory usage, and not run
>: a large job if another large job is running.
And me as well.
>If you want to live dangerously ....
>You can turn on lazy swap evaluation by renaming (or otherwise keeping
>the system from seeing the name) /sbin/swapdefault . This file is a link
We gave up on the default mode a long time ago. We run several huge processes
on alphas with 128 meg of memory. We keep track of swap space using vmstat
and ultimately the kernel warning messages. Whenever we are getting low on
swap space we start killing off nonessential processes. OSF is singularly
unforgiving about who it kills off if you let overcommitment go too far. One
time everything stayed up but inetd!
I'd like to hear from anyone who has been able to tune thier system well
enough to use immediate mode with large processes running.
-- Les Walker walker@latrade.com
Lattice Trading http://world.std.com/~lattice
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Swappage death on an Alphastation, DEC UNIX 3.2
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-12 4:00 ` Dave Cherkus
1995-07-13 4:00 ` Jonathan B. Craig
1 sibling, 1 reply; 7+ messages in thread
From: Dave Cherkus @ 1995-07-12 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Swappage death on an Alphastation, DEC UNIX 3.2
1995-07-12 4:00 ` Dave Cherkus
@ 1995-07-13 4:00 ` Jonathan B. Craig
0 siblings, 0 replies; 7+ messages in thread
From: Jonathan B. Craig @ 1995-07-13 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1995-07-13 4:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox