Nathan,
I applied this patch to the latest git tree. The value looks to be
correct. Not exactly the same output as ps -leaf, but close.
ps -leaf output:
0 S user 8519 7590 0 76 0 - 2545 wait Aug21 pts/58 00:00:00
/bin/bash
pminfo -F proc.psinfo.wchan_s output:
inst [8519 or "008519 /bin/bash"] value "do_wait"
Is proc.psinfo.wchan also broken for newer kernels?
Is there a list somewhere that indicates which metrics do and don't work
for various operating systems and kernels?
Greg
-----Original Message-----
From: Nathan Scott [mailto:nscott@xxxxxxxxxx]
Sent: Thursday, September 04, 2008 12:05 AM
To: Siekas, Greg
Cc: pcp@xxxxxxxxxxx
Subject: Re: proc.psinfo.wchan_s broken?
On Wed, 2008-09-03 at 08:51 -0700, Siekas, Greg wrote:
> I've noticed that for some reason proc.psinfo.wchan_s is broken? This
> used to decode the wait channel name.
>
> Under SLES10SP1 (2.6 kernel) ia64:
> ...
> The namelist is readable? Any other suggestions for things to look
at?
Try this patch, it works for me (Debian 2.6.18 kernel, x86_64).
Patch is against my git tree, may need some tweaks to apply cleanly
to the last SGI release. It'll apply cleanly to the source tarballs
below http://oss.sgi.com/~nathans/pcp/ also if you want to avoid any
messing about with patches.
cheers.
--
Nathan
|