From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bc629884c9a218b9 X-Google-Attributes: gidfee84,public From: tl@ae.chalmers.se (Torbj|rn Lindgren) Subject: Re: tuning/monitoring advfs and the Universal Buffer Cache Date: 1995/05/22 Message-ID: <3pp5q9$r4n@nyheter.chalmers.se>#1/1 X-Deja-AN: 103022653 references: organization: Dept. of Applied Electronics, Chalmers Univ. of Technology newsgroups: comp.unix.osf.osf1 In article , John Stoffel wrote: >If you get the program vmubc from gatekeeper.dec.com and the latest >version I have is 1.33. I have version 1.34, and it was current when I check about a week ago. >Alan> What is the effect of raising UBCMINPERCENT? > >This tells the system to always give a certain percentage of the >system's memory and swap space to be used for UFS, CDFS and MFS IO >buffers. But not for Advfs IO, which isn't really explained well. The UBC is definitely used by AdvFS! Both the System Administration book and the System Tuning book claims that AdvFS uses the UBC. >So if your system is primarly a compute server, then you probably >don't want to raise the UBCMINPERCENT too high. But if you are a file >server, you probably do want to raise this number higher. It's only a minimum number, so it's not that necessary to do anything at all with that number, normally a dedicated fileserver will always use *far* more memory to the UBC than the minimum allowed (unless you specify it to 60%+). >Another parameter to twiddle is 'AdvfsCacheMaxPercent' which is set by >default to 7%, and which I've bumped to 30% on my NFS server. This >seems to help, but in general it hasn't helped as much as I would >like. We're even running a PrestoServe board and it's not helping >either. Isn't AdvfsCacheMaxPercent supposed to only handle meta-data? No documentation seems to mention this at all? The default value of 7% does seem to correlate good with the amount of memory used exclusively by AdvFS (printed when the first AdvFS filesystem is mounted). But as said in *lots* of place, AdvFS also uses the UBC, so I assumes that is buffering for the log or something like that. >If you don't have any UFS filesystems, you can drop the VFS bufcache >parameter from 3% down to 0 if you like, since you aren't using any of >those buffers. Yes, the System Tuning manual certainly seems to say that. But then I followed their advice and checked bio_stats using dbx... I wonder where all those lookups come from since that machine only have AdvFS filesystem. The only possibility is NFS or CDFS, neither which are used by default (it NFS exports it's AdvFS filesystem, but that shouldn't count). On the other hand the number of lookup were on the low side to be AdvFS lookups, I would have expected at least ten times that number since the machine has been up 24 days. I had a miss-ratio off ~0.5% and they recommended that you should increase bufcache if it was 3% or higher. >My personal problem is that filesystem metadata isn't being cached as >well as I would like. NFS traffic on our system falls into three big >areas, getattr @ 35%, lookup @ 33% and read @ 9%. So what I want to >minimize is the lookup and getattr times on my system. You could try raising the name cache size, it *might* help (name-cache-size/name-cache-hash-size and maybe look at namei-cache-valid-time). maxusers might potential help too. You could also check the buffercache using dbx: dbx -k /vmunix } print bio_stats } q