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: charette@ultoe.det.dec.com (Mark Charette) Subject: Re: Swappage death on an Alphastation, DEC UNIX 3.2 Date: 1995/07/10 Message-ID: <3trg7h$85c@eccdb1.pms.ford.com>#1/1 X-Deja-AN: 105998780 references: <3tno39$jil@agate.berkeley.edu> organization: ECC at Ford Motor Company, Dearborn Michigan newsgroups: comp.sys.dec 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