Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: saunders@castor.che.wisc.edu (Brian Saunders)
Subject: Re: Swappage death on an Alphastation, DEC UNIX 3.2
Date: 1995/07/10	[thread overview]
Message-ID: <saunders-1007952257430001@caspar.che.wisc.edu> (raw)
In-Reply-To: 3trg7h$85c@eccdb1.pms.ford.com

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



  reply	other threads:[~1995-07-10  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 [this message]
1995-07-12  4:00     ` Les Walker
1995-07-12  4:00 ` Dave Cherkus
1995-07-13  4:00   ` Jonathan B. Craig
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