Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Greg Sylvain <GSylvain@Mindspring.com>
Subject: Re: Q: How to get NFSv3 stats from kernel on DU 4.0 OSF1 ???
Date: 1999/03/19	[thread overview]
Message-ID: <36F26664.969878FA@Mindspring.com> (raw)
In-Reply-To: 7cs9t9$9s7$1@nntpd.lkg.dec.com


Hello again,

Someone wrote:

> Greg Sylvain <gsylvain@mindspring.com> writes:
>
> >I'm trying to port a performance monitoring tool to DU 4.0B that
> >monitors NFSv3 performance (among other things), and I can't figure out
> >how to get the NFSv3 stats/counts from the kernel akin to nfsstat(1).
>
> >I've run a trace(1) of nfsstat, and it only tells me that, apparently,
> >nfsstat makes about 5 msgsnd(2) calls to get this information from the
> >kernel  (I assume that this is straight from Mach 2.5 basis ?)
>
> No, nfsstat and all the kernel code is Sun derived.  I suspect the msgsnd
> calls are from nlist(3) calls that talk to /sbin/kloadsrv to convert
> symbol names to kernel addresses which are then read from /dev/kmem.
>

As an aside, come some one clarify the use (interaction) of nlist and
kloadsrv ?

Because, when I've trace'd nfsstat, there are no calls to nlist, but there is
a stat(2) of kloadsrv. Looking through the man pages, this is a symbol name
server - so to speak - for the currently running system.  But there appears
to be no direct communication to this daemon.  Is all communication to this
daemon done through nlist ?  Does knlist call kloadsrv as well ?

Just curious.

>
> The structures involved are not in header files, we may be moving access
> to a table(2) someday.  For now, look at kernel names rcstat, clstat,
> rsstat, svstat, tcstat and don't tell anyone I posted this.  :-)
>
> Or - parse the output from nfsstat(1).
>

This would be preferable, but I can't afford the overhead of fork/exec at
each collection interval.


Thanks again,
greg





      reply	other threads:[~1999-03-19  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-18  5:00 Q: How to get NFSv3 stats from kernel on DU 4.0 OSF1 ??? Greg Sylvain
1999-03-19  5:00 ` Eric Werme - replace nospam with werme
1999-03-19  5:00   ` Greg Sylvain [this message]
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