From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,cbd8548c84324b9a X-Google-Attributes: gid1164f8,public From: saunders@castor.che.wisc.edu (Brian Saunders) Subject: Re: Swappage death on an Alphastation, DEC UNIX 3.2 Date: 1995/07/10 Message-ID: #1/1 X-Deja-AN: 105998817 references: <3tno39$jil@agate.berkeley.edu> <3trg7h$85c@eccdb1.pms.ford.com> organization: Univ. Wisconsin-Madison, Chem. Engineering newsgroups: comp.sys.dec 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