From: tl@ae.chalmers.se (Torbj|rn Lindgren)
Subject: Re: tuning/monitoring advfs and the Universal Buffer Cache
Date: 1995/05/22 [thread overview]
Message-ID: <3pp5q9$r4n@nyheter.chalmers.se> (raw)
In-Reply-To: JOHN.95May17181754@avante.WPI.EDU
In article <JOHN.95May17181754@avante.WPI.EDU>,
John Stoffel <john@avante.WPI.EDU> 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
next prev parent reply other threads:[~1995-05-22 4:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-16 4:00 tuning/monitoring advfs and the Universal Buffer Cache Alan Harder
1995-05-16 4:00 ` oberman
1995-05-17 4:00 ` John Stoffel
1995-05-18 4:00 ` cherkus
1995-05-19 4:00 ` g0daeniken
1995-05-19 4:00 ` John Stoffel
1995-05-20 4:00 ` Saul Tannenbaum
1995-06-01 4:00 ` Saul Tannenbaum
1995-05-22 4:00 ` Torbj|rn Lindgren [this message]
1995-05-23 4:00 ` John Stoffel
1995-05-23 4:00 ` John Stoffel
1995-05-24 4:00 ` John Kohl
1995-05-18 4:00 ` g0daeniken
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox