On Wed, 17 Apr 2002, Sadanand Kota wrote:
> I am collecting metrics of two linux systems through my program
> using pcp API. But I am getting the metrics for only one machine i.e
> always pmfetch returns the metrics of home node even if the context of
> remote machine is set through pmUseContext. Neither pmUseContext nor
> pmWhichContext gave any error while they were called.
>
> Another strange thing is that, the same program works properly when run
> on a different machine i.e it gets the metrics of both home(new) machine
> and remote machine.
>
> Any idea for solution?
>
Sadanand,
Is this reproducible? Could you post your code, or is it proprietary?
Please re-run your program again on the two different machines, but with
extern int pmDebug;
pmDebug = 18;
This will enable debug messages for pmFetch calls and for pcp context
manipulation. You should be able to compare the debug listings to
see what's different.
To see all available pmDebug settings, run pmdbg -l
thanks
-- Mark
|