On Wed, 17 May 2000, Troy Dawson wrote:
> Howdy Again,
> Sorry for the long delay. Right after I wrote we got a pile of work
> dumped on us so our PCP workings got put on the back burner. Actually
> they are still on the back burner but I figured I'd give you what we had
> to see if it's something you'd want.
> Credit for writting the code in fermi.c goes to Ray Pasetes. I just
> did the little things in the rest of the fermi directory to get it to
> install, remove and play nicely.
> The reason we didn't send it sooner (even though it's on the back
> burner) is that we found that this works really nice with just one cpu,
> but a dual (or more) cpu needs to have separate instances for each CPU.
> Currently we don't have the time to do this, and the side by side
> display we get works well enough for us.
> Anyway, this zipped tar ball is of our fermi directory from out of our
> /var/pcp/pmdas directory. untar (tar xvfz), run the Install, and it
> should work.
> Troy
>
Ok thanks, I unpacked your code, ran Install and now have all the
CPU info metrics (fermi.*). Since this is directly from /proc/cpuinfo
and as you mentioned, needs to be enhanced for multiple CPUs, I think
I'll merge it with the proc/stat code in the linux PMDA (which already
has a CPU instance domain) and rename the metrics to hinv.cpuinfo.*
rather then fermi.*. Please let me know if this is not OK with you!
BTW, for anyone else thinking of writing a PMDA, you don't have
to always start a new subtree in the name space - you can add metrics
anywhere you like.
thanks
-- Mark
ps: I like your error handling ;-) [printf ("Ahhhhhhhhhh NUTS!\n")]
For others, here is a listing of the new metrics from the Fermi guys :
[markgw@sandpit fermi]# pminfo -fmdt fermi
fermi.cpuclock PMID: 199.0.0 [Speed of the cpu in MHz]
Data Type: string InDom: PM_INDOM_NULL 0xffffffff
Semantics: instant Units: none
value " 531.983842 "
fermi.cputype PMID: 199.0.1 [What architecture is the cpu]
Data Type: string InDom: PM_INDOM_NULL 0xffffffff
Semantics: instant Units: none
value " Pentium III (Katmai) "
fermi.cpustep PMID: 199.0.2 [The step size of the cpu]
Data Type: string InDom: PM_INDOM_NULL 0xffffffff
Semantics: instant Units: none
value " 3 "
fermi.cpuvendor PMID: 199.0.3 [The Vendor that made the cpu]
Data Type: string InDom: PM_INDOM_NULL 0xffffffff
Semantics: instant Units: none
value " GenuineIntel "
fermi.cpucache PMID: 199.0.4 [The size of the cache on the cpu]
Data Type: string InDom: PM_INDOM_NULL 0xffffffff
Semantics: instant Units: none
value " 512 KB "
|