pcp
[Top] [All Lists]

Re: Performance Co-Pilot patch for Compaq's Tru64

To: Phillip Ezolt <ezolt@xxxxxxxxxxxxxxxx>
Subject: Re: Performance Co-Pilot patch for Compaq's Tru64
From: Mark Goodwin <markgw@xxxxxxx>
Date: Fri, 31 Aug 2001 10:24:07 +1000 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <Pine.OSF.4.33.0108291328400.25488-100000@xxxxxxxxxxxxxxxx>
Sender: owner-pcp@xxxxxxxxxxx
On Wed, 29 Aug 2001, Phillip Ezolt wrote:

> One question for you, I am trying to implement the osf code as close
> as possible to the Linux code.
> 
> I'm trying to keep as many metrics as possible the same.
> 
> What should I do with NEW metrics?  Is it ok to add them, or is there some
> reason not to?

You should use the same PMNS name for metrics that have the
same semantics and interpretation as existing metrics on other
platforms (currently IRIX and linux). Note there are much more
metrics on IRIX than on Linux, so you should also be checking the
IRIX name space as well as linux. 

For new metrics, you should add them into your PMNS in the most suitable
place. That's the only rule that makes sense, and is _far_ better than
restricting the PMNS to be just the set of metrics that are common
on all platforms (which is the SNMP mib-II model).

> 
> For example, in the network driver, Tru64 can provide the following 
> information
> for Multi-casts:
>  ...
> doesn't say ANYTHING about:
> 
> network.interface.out.mcast.packets
> network.interface.out.mcast.bytes
> 
> Should I just add it, or is there some standard that we should agree on?
> 

In this case Linux doesn't have network.interface.out.mcast.packets
(it's not reported in /proc/net/dev for some reason). IRIX does,
but only packet counts are available:

snort 4% pminfo -d -t network.interface.{in,out,total}.mcasts

network.interface.in.mcasts [packets received via broad/multicast on network 
interface [MIB-II]]
    Data Type: 32-bit unsigned int  InDom: 1.6 0x400006
    Semantics: counter  Units: count

network.interface.out.mcasts [packets sent via broad/multicast on network 
interface [MIB-II]]
    Data Type: 32-bit unsigned int  InDom: 1.6 0x400006
    Semantics: counter  Units: count

network.interface.total.mcasts [total packets sent and received via 
broad/multicast on network interface [MIB-II]]
    Data Type: 32-bit unsigned int  InDom: 1.6 0x400006
    Semantics: counter  Units: count


As it turns out, techpubs.sgi.com is an IRIX box on the public internet
and has PCP installed. So for your reference you can query it's PMNS
using pminfo, e.g. 
# pminfo -mdt -h techpubs.sgi.com network.interface.out.mcasts

network.interface.out.mcasts PMID: 1.25.13 [packets sent via broad/multicast on 
network interface [MIB-II]]
    Data Type: 32-bit unsigned int  InDom: 1.6 0x400006
    Semantics: counter  Units: count

thanks
-- Mark


<Prev in Thread] Current Thread [Next in Thread>