pcp
[Top] [All Lists]

Re: [pcp] pmchart save view has null for metrics

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] pmchart save view has null for metrics
From: Jeff Hanson <jhanson@xxxxxxx>
Date: Sun, 26 May 2013 19:27:29 -0400
Cc: Dave Wright <daw@xxxxxxx>, PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <51A297A5.4080806@xxxxxxx>
References: <201305261839.r4QIdfIR37110119@xxxxxxxxxxxxxxxxxxxxx> <201542566.12368030.1369609497969.JavaMail.root@xxxxxxxxxx> <51A297A5.4080806@xxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130513 Thunderbird/17.0.6
On 05/26/2013 07:15 PM, Jeff Hanson wrote:
> On 05/26/2013 07:04 PM, Nathan Scott wrote:
>> Hi Dave,
>>
>> ----- Original Message -----
>>> Nathan,
>>>
>>> It is happening on my RHEL6 system as well. Worked find in pcp-gui 1.5.5
>>>
>>
>> Ah good stuff, I have RHEL6 here so we should be able to get to the
>> bottom of this...
> 
> So on 9 May I could reproduce what Dave showed exactly.  I can today (26 May)
> no longer reproduce the bug.  Possibly this is my use of 1.5.8 - 
> pcp-gui-1.5.8-2.el6.x86_64
> as an rpm.  I'll downgrade to sgi's version.
> 

And now again I can reproduce.  Nathan - pmchart, open view (I chose overview),
open a tab, select the tab, open view (I chose mem and added one metric), click 
back
to the first tab, save.   Here is what I get -

#kmchart
version 1

chart title "CPU Utilization [%h]" style utilization
        plot legend "User" color #2d2de2 metric User
        plot legend "Sys" color #e71717 metric Sys
        plot legend "Nice" color #c2f3c2 metric Nice
        plot legend "Intr" color #cdcd00 metric Intr
        plot legend "Wait" color #00cdcd metric Wait
        plot legend "Steal" color #fba2f5 metric Steal
        plot legend "Idle" color #16d816 metric Idle
chart title "Average Load [%h]" style plot antialiasing off
        plot legend "1 min" color #ffff00 metric kernel.all.load instance "1 
minute"
        plot legend "# cpus" color #0000ff metric # cpus
chart title "IOPS over all Disks [%h]" style stacking
        plot legend "Reads" color #ffff00 metric Reads
        plot legend "Writes" color #ee82ee metric Writes
chart title "Network Interface Bytes [%h]" style stacking
        plot legend "in eth0" color #ffff00 metric network.interface.in.bytes 
instance "eth0"
        plot legend "in br0" color #0000ff metric network.interface.in.bytes 
instance "br0"
        plot legend "out eth0" color #ff0000 metric network.interface.out.bytes 
instance "eth0"
        plot legend "out br0" color #008000 metric network.interface.out.bytes 
instance "br0"
chart title "Real Memory Usage [%h]" style stacking
        plot color #9cffab metric (null)
        plot color #fe68ad metric (null)
        plot color #ffae2c metric (null)
        plot color #00ff00 metric (null)

If I save the mem chart itself I get

#kmchart
version 1

chart title "Real Memory Usage [%h]" style stacking
        plot color #9cffab metric (null)
        plot color #fe68ad metric (null)
        plot color #ffae2c metric (null)
        plot color #00ff00 metric (null)

>>
>>>>> ...
>>>>> Do a tab of overview and another of load average and save fiew.
>>>>> Neither one is readable by pmchart completely.
>>
>> When you say "do a tab" do you mean interactively create a second tab
>> after filling the initial empty pmchart window with an Overview, and
>> then open the Load Average view in the second tab (this is what I've
>> tried so far)?  Do you then go back to the first tab and navigate the
>> menu "File" -> "Save View" and the resulting view file will be broken?
>> (is it just the Memory metrics in the Overview charts that are saved
>> incorrectly, as per your original mail, or all of them?)
>>
>> The code at fault is in the pcp-gui git tree, src/chart/view.cpp - at
>> the end of that file (saveView and the saveChart above it).  Line 1261
>> in particular must be seeing null for the metric name somehow... not
>> sure how though at this stage.
>>
>> cheers.
>>
>> --
>> Nathan
>>
>> _______________________________________________
>> pcp mailing list
>> pcp@xxxxxxxxxxx
>> http://oss.sgi.com/mailman/listinfo/pcp
>>
> 
> 


-- 
-----------------------------------------------------------------------
Jeff Hanson - jhanson@xxxxxxx - Field Technical Analyst

You can choose a ready guide in some celestial voice.
If you choose not to decide, you still have made a choice.
You can choose from phantom fears and kindness that can kill;
I will choose a path that's clear
I will choose freewill. - Lee/Lifeson/Peart

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