From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e372f2df5d66845c X-Google-Attributes: gidfee84,public From: edo@cis.ohio-state.edu (Eric Osborne) Subject: Re: swap space warning Date: 1995/05/03 Message-ID: <3o78o2INNjjn@umble.cis.ohio-state.edu>#1/1 X-Deja-AN: 101876998 references: <3nrief$366@tenebris.rutgers.edu: organization: The Ohio State University, Department of Computer and Information Science newsgroups: comp.unix.osf.osf1 You may want to look at the settings of some kernal parameters. Ubcmaxpercent and ubcborrowpercent are a couple of good ones - they control the size of the unified buffer cache. There's also a parameter called ubcminpercent, I think. I believe that you'll also find one called bufcache, which controls the initial size of the buffer cache. Since you have 1GB of ram, the defaults for these things are setting your buffer cache at 100MB at system startup, and it grows from there. It can consume all of memory on a disk intensive system, and result in paging. The assumption that you need 2X memory for swap is an interesting piece of lore - what you really need is enough swap to avoid running out of VM. You will use less real memory if you have the system set to "lazy" evaluation (remove /sbin/swapdefault). If carefully tuned, the system need NEVER swap if you have enough ram. If you do swap, and you run out of swap space in "lazy" mode, things can get ugly. For what it's worth, I worked for some months on a multiprocessor 7000 series machine with 8GB of memory and only a couple of hundred megs of swap space - once tuned, the machine NEVER swapped with the application load we had. The performance was awesome. By the way, check out the sysconfig and sysconfigdb commands - you don't have to rebuild the kernel to set this stuff. That's a really nice feature of Digital UNIX. Oh, before I forget, the AdvFS maintains its own, separate buffer cache. Check the settings on that, too, if you are using AdvFS. Hope that helps. Eric Osborne