Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: john@avante.WPI.EDU (John Stoffel)
Subject: Re: tuning/monitoring advfs and the Universal Buffer Cache
Date: 1995/05/23	[thread overview]
Message-ID: <JOHN.95May23112153@avante.WPI.EDU> (raw)
In-Reply-To: JOHN.95May17181754@avante.WPI.EDU

>>>>> "TL" == Torbj|rn Lindgren <tl@ae.chalmers.se> writes:
In article <3pp5q9$r4n@nyheter.chalmers.se> tl@ae.chalmers.se (Torbj|rn Lindgren) writes:


TL> In article <JOHN.95May17181754@avante.WPI.EDU>,
TL> John Stoffel <john@avante.WPI.EDU> wrote:

Alan> What is the effect of raising UBCMINPERCENT?
 
John> This tells the system to always give a certain percentage of the
John> system's memory and swap space to be used for UFS, CDFS and MFS
John> IO buffers.  But not for Advfs IO, which isn't really explained
John> well.

TL> The UBC is definitely used by AdvFS! Both the System
TL> Administration book and the System Tuning book claims that AdvFS
TL> uses the UBC.

I stand corrected.  I was really thinking about the buffer cache
parameter which isn't used by Advfs.  

John> So if your system is primarly a compute server, then you
John> probably don't want to raise the UBCMINPERCENT too high.  But if
John> you are a file server, you probably do want to raise this number
John> higher.

TL> It's only a minimum number, so it's not that necessary to do
TL> anything at all with that number, normally a dedicated fileserver
TL> will always use *far* more memory to the UBC than the minimum
TL> allowed (unless you specify it to 60%+).

True, you don't need to set it higher, but if you are running a mixed
system doing both IO and compute work, with IO the priority, setting
UBCMINPERCENT higher will make sure you always have enough buffers for
the IO.

John> Another parameter to twiddle is 'AdvfsCacheMaxPercent' which is
John> set by default to 7%, and which I've bumped to 30% on my NFS
John> server.  This seems to help, but in general it hasn't helped as
John> much as I would like.  We're even running a PrestoServe board
John> and it's not helping either.

TL> Isn't AdvfsCacheMaxPercent supposed to only handle meta-data? No
TL> documentation seems to mention this at all?

As far as I know, this parameter affects _all_ Advfs IO.  Since Advfs
is still a young filesystem, it hasn't gotten all the tuning that UFS
has gotten.  

Also, if you look at how log based filesystems work, they just try to
write blocks contiguously to the disk, without regards to where other
related blocks are.  This speeds up write performance.  They also try
to keep multiple "logs" or sets of logs around at the same time, so
that when a log gets too fragmented, it can then be re-written in a
more efficient layout on another part of the disk.  I read a paper on
the design of the Advfs, you should be able to find it on
ftp.gatekeeper.dec.com somewhere.  

I was at DECUS a few weeks ago and bent a few ears on Advfs tuning,
since Advfs is such a win over UFS just because of the lack of fsck.
Even if Advfs doesn't offer an improved performance over UFS, not
having to wait 50 minutes for all the filesystems to fsck is worth the
move. 

TL> The default value of 7% does seem to correlate good with the
TL> amount of memory used exclusively by AdvFS (printed when the first
TL> AdvFS filesystem is mounted). But as said in *lots* of place,
TL> AdvFS also uses the UBC, so I assumes that is buffering for the
TL> log or something like that.

No, the VFS uses the UBC, with the VFS layered on top of the various
filesystems.  In general, the ST&PM Manual isn't very clear on how the
various parts work with each other.  

[ stuff deleted ]

John> My personal problem is that filesystem metadata isn't being
John> cached as well as I would like.  NFS traffic on our system falls
John> into three big areas, getattr @ 35%, lookup @ 33% and read @ 9%.
John> So what I want to minimize is the lookup and getattr times on my
John> system.

TL> You could try raising the name cache size, it *might* help
TL> (name-cache-size/name-cache-hash-size and maybe look at
TL> namei-cache-valid-time). maxusers might potential help too.

I've been told that raising the namei-cache-valid-time will help, but
I haven't tried that yet.  Mostly because the students are mostly gone
for the summer and the system is quiet.  

John

         John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
 Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
			Kill your television






  parent reply	other threads:[~1995-05-23  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   ` John Stoffel
1995-05-19  4:00   ` g0daeniken
1995-05-20  4:00   ` Saul Tannenbaum
1995-06-01  4:00     ` Saul Tannenbaum
1995-05-22  4:00   ` Torbj|rn Lindgren
1995-05-23  4:00   ` John Stoffel [this message]
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