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: "Jonathan B. Craig" Subject: Re: Swappage death on an Alphastation, DEC UNIX 3.2 Date: 1995/07/13 Message-ID: #1/1 X-Deja-AN: 106176555 x-nntp-posting-host: jcraig.i2k.net sender: news@onramp.i2k.com (System Admin) references: <3tno39$jil@agate.berkeley.edu> <3tv894$3nr@synergy.Destek.Net> content-type: text/plain; charset=us-ascii organization: Gordon Food Service mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 1.1N (Windows; I; 16bit) 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.