From rdelval1@binghamton.edu Wed Apr 1 16:30:22 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id C3D9A7F62
for ; Wed, 1 Apr 2015 16:30:22 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay3.corp.sgi.com (Postfix) with ESMTP id 67697AC002
for ; Wed, 1 Apr 2015 14:30:19 -0700 (PDT)
X-ASG-Debug-ID: 1427923816-04bdf036252dc9b0001-S8gJnT
Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by cuda.sgi.com with ESMTP id LyZrRHBp5IR8hEKc (version=TLSv1 cipher=RC4-SHA bits=128 verify=NO) for ; Wed, 01 Apr 2015 14:30:17 -0700 (PDT)
X-Barracuda-Envelope-From: rdelval1@binghamton.edu
X-Barracuda-Apparent-Source-IP: 209.85.214.170
Received: by obbfy7 with SMTP id fy7so15493249obb.2
for ; Wed, 01 Apr 2015 14:30:16 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to
:content-type;
bh=Wj2mXqwVi0PAMFxmENJ0aPKShIPOPUUgZ5W6OCNc/pQ=;
b=NW5DLioRIQxevf/P7m6xwlXqfAAoyM7zC2BvBxHsZQSI8514QU7u0D9XVmlUOxZpFi
BJAAuQY+nDZcGGNHle+k/py1fr0dYyKO7Cfb2hcE8VJciRg03qm2s5s3WuIJs9fc+V2z
W+Kyi0++60dI01EoCXG6QILXix+nML9FdbSr/4R5VvE70+KAXPskCUqtQE97wasBgAbX
J2VfDjQQtjg23K8hIjoM3JzV0AagSmjTwVf0zCDatsB8UeW06iK3n3g8w+pMrhyrz0Aw
NyepwBumnJskGHTb428eA1qSmX5rwPFZ4Lsa8KhQksl5r8f1mEvqUL21BSLdDy7sfXaY
R3Tw==
X-Gm-Message-State: ALoCoQnm2JyPy4K3ONnWvQQui8fHH+HHlBSxtzzKpQX6ZV+pqTQQQLzNG6pdlyhhw3vDU8YMkD9K
X-Received: by 10.182.33.98 with SMTP id q2mr43178032obi.79.1427923816617;
Wed, 01 Apr 2015 14:30:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.202.111.1 with HTTP; Wed, 1 Apr 2015 14:29:56 -0700 (PDT)
From: Renan DelValle
Date: Wed, 1 Apr 2015 17:29:56 -0400
Message-ID:
Subject: Installing perfevents on Ubuntu 14.04
To: pcp@oss.sgi.com
X-ASG-Orig-Subj: Installing perfevents on Ubuntu 14.04
Content-Type: text/plain; charset=UTF-8
X-Barracuda-Connect: mail-ob0-f170.google.com[209.85.214.170]
X-Barracuda-Start-Time: 1427923817
X-Barracuda-Encrypted: RC4-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17454
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
Hi,
I've installed PCP successfully through the apt package manager,
however, there is no folder "perfevent" inside of /var/lib/pcp/pdmas
I've tried downloading, compiling, and installing 3.10.3 from github,
but the perfevent folder is still not included in the $PCP_PMDAS_DIR
.
The perfevent folder is indeed inside of the src and performing an
install from there installs perfevent but upon trying to fetch
information from the perfevent, all fields return a " No PMCD agent
for domain of request" leading me to believe I must do something else
in order to get this working.
Any help would be greatly appreciated.
-Renan
From chandana@desilva.id.au Thu Apr 2 01:44:47 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,WEIRD_PORT
autolearn=ham version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id 4039E7F66
for ; Thu, 2 Apr 2015 01:44:47 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay3.corp.sgi.com (Postfix) with ESMTP id B209EAC003
for ; Wed, 1 Apr 2015 23:44:43 -0700 (PDT)
X-ASG-Debug-ID: 1427957075-04cb6c3fde287550001-S8gJnT
Received: from relay.mailchannels.net (aso-006-i431.relay.mailchannels.net [23.91.64.112]) by cuda.sgi.com with ESMTP id GtnAsyTMz7q2LHEk for ; Wed, 01 Apr 2015 23:44:36 -0700 (PDT)
X-Barracuda-Envelope-From: chandana@desilva.id.au
X-Barracuda-Apparent-Source-IP: 23.91.64.112
X-Sender-Id: duocircle|x-authuser|chandana
Received: from smtp4.ore.mailhop.org (ip-10-237-13-110.us-west-2.compute.internal [10.237.13.110])
by relay.mailchannels.net (Postfix) with ESMTPA id 985D61D0601
for ; Thu, 2 Apr 2015 06:44:34 +0000 (UTC)
X-Sender-Id: duocircle|x-authuser|chandana
Received: from smtp4.ore.mailhop.org (smtp4.ore.mailhop.org [10.83.15.107])
(using TLSv1 with cipher DHE-RSA-AES256-SHA)
by 0.0.0.0:2500 (trex/5.4.8);
Thu, 02 Apr 2015 06:44:34 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: duocircle|x-authuser|chandana
X-MailChannels-Auth-Id: duocircle
X-MC-Loop-Signature: 1427957074746:962755299
X-MC-Ingress-Time: 1427957074746
Received: from ec2-54-252-74-219.ap-southeast-2.compute.amazonaws.com ([54.252.74.219] helo=mail.desilva.id.au)
by smtp4.ore.mailhop.org with esmtpa (Exim 4.82)
(envelope-from )
id 1YdYrg-0003jw-Mf
for pcp@oss.sgi.com; Thu, 02 Apr 2015 06:44:33 +0000
Received: from tardis (unknown [175.45.119.98])
by mail.desilva.id.au (Postfix) with ESMTPSA id D4EDE25AD6
for ; Thu, 2 Apr 2015 06:44:30 +0000 (UTC)
X-Mail-Handler: DuoCircle Outbound SMTP
X-Originating-IP: 54.252.74.219
X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information)
X-MHO-User: U2FsdGVkX19EKgDbrFMMZFIQAqFhQgAoMt5ZVEo/DdA=
Message-ID: <1427957070.8765.30.camel@desilva.id.au>
Subject: Trying out ElasticSearch PMDA for the first time
From: Chandana De Silva
X-ASG-Orig-Subj: Trying out ElasticSearch PMDA for the first time
Reply-To: chandana@desilva.id.au
To: pcp@oss.sgi.com
Date: Thu, 02 Apr 2015 17:44:30 +1100
Content-Type: multipart/alternative; boundary="=-T/SzPPmipq1ZRSI//8XS"
X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21)
Mime-Version: 1.0
X-AuthUser: chandana
X-Barracuda-Connect: aso-006-i431.relay.mailchannels.net[23.91.64.112]
X-Barracuda-Start-Time: 1427957075
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.70
X-Barracuda-Spam-Status: No, SCORE=0.70 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=BSF_SC0_SA038b, HTML_MESSAGE, WEIRD_PORT
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17471
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.50 WEIRD_PORT URI: Uses non-standard port number for HTTP
0.00 HTML_MESSAGE BODY: HTML included in message
0.20 BSF_SC0_SA038b Custom Rule SA038b
--=-T/SzPPmipq1ZRSI//8XS
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Hello All
I am trying out the ES pmda, and not having much luck.
The error in the PMCD log says:
[Thu Apr 2 06:20:40] pmcd(2564) Warning: pduread: timeout (after 5.000
sec) while attempting to read 12 bytes out of 12 in HDR on fd=21
[Thu Apr 2 06:20:40] pmcd(2564) Info: CleanupAgent ...
Cleanup "elasticsearch" agent (dom 108): protocol failure for fd=21
This is what I have:
elasticsearch-1.4.4-1.noarch
java-1.7.0-openjdk-1.7.0.75-2.5.4.0.53.amzn1.x86_64
pcp-3.9.10-1.x86_64
$ sudo ./Install
You will need to choose an appropriate configuration for installation of
the "elasticsearch" Performance Metrics Domain Agent (PMDA).
collector collect performance statistics on this system
monitor allow this system to monitor local and/or remote systems
both collector and monitor configuration for this system
Please enter c(ollector) or m(onitor) or b(oth) [b]
Updating the Performance Metrics Name Space (PMNS) ...
Terminate PMDA if already installed ...
Updating the PMCD control file, and notifying PMCD ...
Check elasticsearch metrics have appeared ... 110 warnings, 110 metrics and 0 values
ELlasticSearch.log
=============
$ cat /var/log/pcp/pmcd/elasticsearch.log
Log for pmdaelasticsearch on elsrch.dev.syd.mmd started Thu Apr 2
06:34:25 2015
Log finished Thu Apr 2 06:34:36 2015
/usr/bin/java -Xms7G -Xmx7G -Xss256k -Djava.awt.headless=true -XX:
+UseParNewGC -XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC
-Dfile.encoding=UTF-8 -Xmx7g -Xms7g -Delasticsearch
-Des.pidfile=/var/run/elasticsearch/elasticsearch.pid
-Des.path.home=/usr/share/elasticsearch
-cp :/usr/share/elasticsearch/lib/elasticsearch-1.4.4.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=/etc/elasticsearch org.elasticsearch.bootstrap.Elasticsearch
[chandana@elsrch.dev elasticsearch]$ pminfo -f mem.util.used
mem.util.used
value 13578396
[chandana@elsrch.dev elasticsearch]$ pminfo -f mem.util.free
mem.util.free
value 2091624
[chandana@elsrch.dev elasticsearch]$ pminfo -f mem.physmem
mem.physmem
value 15670012
$ curl http://localhost:9200/
{
"status" : 200,
"name" : "Stonewall",
"cluster_name" : "mmelasticsearch",
"version" : {
"number" : "1.4.4",
"build_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512",
"build_timestamp" : "2015-02-19T13:05:36Z",
"build_snapshot" : false,
"lucene_version" : "4.10.3"
},
"tagline" : "You Know, for Search"
}
PMCD LOG
=========
[Thu Apr 2 06:20:30] pmcd(2564) Info:
pmcd RESTARTED at Thu Apr 2 06:20:30 2015
Current PMCD clients ...
fd client connection from ipc ver operations denied
== ======================================== ======= =================
17 10.17.1.18 2 store
16 /var/run/pcp/pmcd.socket 2
active agent dom pid in out ver protocol parameters
============ === ===== === === === ======== ==========
pmcd 2 2 dso i:5 lib=/var/lib/pcp/pmdas/pmcd/pmda_pmcd.so entry=pmcd_init [(nil)]
linux 60 2 dso i:4 lib=/var/lib/pcp/pmdas/linux/pmda_linux.so entry=linux_init [(nil)]
proc 3 2571 10 11 2 bin pipe cmd=/var/lib/pcp/pmdas/proc/pmdaproc -d 3
mmv 70 2 dso i:4 lib=/var/lib/pcp/pmdas/mmv/pmda_mmv.so entry=mmv_init [(nil)]
xfs 11 2579 12 13 2 bin pipe cmd=/var/lib/pcp/pmdas/xfs/pmdaxfs -d 11
jbd2 122 2 dso i:4 lib=/var/lib/pcp/pmdas/jbd2/pmda_jbd2.so entry=jbd2_init [(nil)]
elasticsearch 108 18426 20 21 2 bin pipe cmd=perl /var/lib/pcp/pmdas/elasticsearch/pmdaelasticsearch.pl
Host access list:
00 01 Cur/MaxCons host-spec host-mask lvl host-name
== == =========== ======================================= ======================================= === ==============
y y 0 0 10.25.20.90 255.255.255.255 0 localhost
y y 0 0 / / 1 unix:
n 0 0 0.0.0.0 0.0.0.0 4 .*
n 0 0 :: :: 8 :*
User access list empty: user-based access control turned off
Group access list empty: group-based access control turned off
[Thu Apr 2 06:20:30] pmcd(2564) Info: PMNS file "DEFAULT" is unchanged
[Thu Apr 2 06:20:40] pmcd(2564) Warning: pduread: timeout (after 5.000 sec) while attempting to read 12 bytes out of 12 in HDR on fd=21
[Thu Apr 2 06:20:40] pmcd(2564) Info: CleanupAgent ...
Cleanup "elasticsearch" agent (dom 108): protocol failure for fd=21
--=-T/SzPPmipq1ZRSI//8XS
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
Hello All
I am trying out the ES pmda, and not having much luck.
The error in the PMCD log says:
[Thu Apr 2 06:20:40] pmcd(2564) Warning: pduread: timeout (after 5.000 sec) while attempting to read 12 bytes out of 12 in HDR on fd=21
[Thu Apr 2 06:20:40] pmcd(2564) Info: CleanupAgent ...
Cleanup "elasticsearch" agent (dom 108): protocol failure for fd=21
This is what I have:
elasticsearch-1.4.4-1.noarch
java-1.7.0-openjdk-1.7.0.75-2.5.4.0.53.amzn1.x86_64
pcp-3.9.10-1.x86_64
$ sudo ./Install
You will need to choose an appropriate configuration for installation of
the "elasticsearch" Performance Metrics Domain Agent (PMDA).
collector collect performance statistics on this system
monitor allow this system to monitor local and/or remote systems
both collector and monitor configuration for this system
Please enter c(ollector) or m(onitor) or b(oth) [b]
Updating the Performance Metrics Name Space (PMNS) ...
Terminate PMDA if already installed ...
Updating the PMCD control file, and notifying PMCD ...
Check elasticsearch metrics have appeared ... 110 warnings, 110 metrics and 0 values
ELlasticSearch.log
=============
$ cat /var/log/pcp/pmcd/elasticsearch.log
Log for pmdaelasticsearch on elsrch.dev.syd.mmd started Thu Apr 2 06:34:25 2015
Log finished Thu Apr 2 06:34:36 2015
/usr/bin/java -Xms7G -Xmx7G -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Xmx7g -Xms7g -Delasticsearch -Des.pidfile=/var/run/elasticsearch/elasticsearch.pid -Des.path.home=/usr/share/elasticsearch -cp :/usr/share/elasticsearch/lib/elasticsearch-1.4.4.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=/etc/elasticsearch org.elasticsearch.bootstrap.Elasticsearch
[chandana@elsrch.dev elasticsearch]$ pminfo -f mem.util.used
mem.util.used
value 13578396
[chandana@elsrch.dev elasticsearch]$ pminfo -f mem.util.free
mem.util.free
value 2091624
[chandana@elsrch.dev elasticsearch]$ pminfo -f mem.physmem
mem.physmem
value 15670012
$ curl http://localhost:9200/
{
"status" : 200,
"name" : "Stonewall",
"cluster_name" : "mmelasticsearch",
"version" : {
"number" : "1.4.4",
"build_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512",
"build_timestamp" : "2015-02-19T13:05:36Z",
"build_snapshot" : false,
"lucene_version" : "4.10.3"
},
"tagline" : "You Know, for Search"
}
PMCD LOG
=========
[Thu Apr 2 06:20:30] pmcd(2564) Info:
pmcd RESTARTED at Thu Apr 2 06:20:30 2015
Current PMCD clients ...
fd client connection from ipc ver operations denied
== ======================================== ======= =================
17 10.17.1.18 2 store
16 /var/run/pcp/pmcd.socket 2
active agent dom pid in out ver protocol parameters
============ === ===== === === === ======== ==========
pmcd 2 2 dso i:5 lib=/var/lib/pcp/pmdas/pmcd/pmda_pmcd.so entry=pmcd_init [(nil)]
linux 60 2 dso i:4 lib=/var/lib/pcp/pmdas/linux/pmda_linux.so entry=linux_init [(nil)]
proc 3 2571 10 11 2 bin pipe cmd=/var/lib/pcp/pmdas/proc/pmdaproc -d 3
mmv 70 2 dso i:4 lib=/var/lib/pcp/pmdas/mmv/pmda_mmv.so entry=mmv_init [(nil)]
xfs 11 2579 12 13 2 bin pipe cmd=/var/lib/pcp/pmdas/xfs/pmdaxfs -d 11
jbd2 122 2 dso i:4 lib=/var/lib/pcp/pmdas/jbd2/pmda_jbd2.so entry=jbd2_init [(nil)]
elasticsearch 108 18426 20 21 2 bin pipe cmd=perl /var/lib/pcp/pmdas/elasticsearch/pmdaelasticsearch.pl
Host access list:
00 01 Cur/MaxCons host-spec host-mask lvl host-name
== == =========== ======================================= ======================================= === ==============
y y 0 0 10.25.20.90 255.255.255.255 0 localhost
y y 0 0 / / 1 unix:
n 0 0 0.0.0.0 0.0.0.0 4 .*
n 0 0 :: :: 8 :*
User access list empty: user-based access control turned off
Group access list empty: group-based access control turned off
[Thu Apr 2 06:20:30] pmcd(2564) Info: PMNS file "DEFAULT" is unchanged
[Thu Apr 2 06:20:40] pmcd(2564) Warning: pduread: timeout (after 5.000 sec) while attempting to read 12 bytes out of 12 in HDR on fd=21
[Thu Apr 2 06:20:40] pmcd(2564) Info: CleanupAgent ...
Cleanup "elasticsearch" agent (dom 108): protocol failure for fd=21
--=-T/SzPPmipq1ZRSI//8XS--
From minnus@buffalo.edu Thu Apr 2 12:49:20 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 446EE7F59
for ; Thu, 2 Apr 2015 12:49:20 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id 37FBA8F8059
for ; Thu, 2 Apr 2015 10:49:20 -0700 (PDT)
X-ASG-Debug-ID: 1427996955-04cbb043b807a00001-S8gJnT
Received: from mtareserve1.acsu.buffalo.edu (mtareserve2.acsu.buffalo.edu [128.205.7.162]) by cuda.sgi.com with ESMTP id CqkuzBBofwGXwDw7 for ; Thu, 02 Apr 2015 10:49:15 -0700 (PDT)
X-Barracuda-Envelope-From: minnus@buffalo.edu
X-Barracuda-Apparent-Source-IP: 128.205.7.162
Received: from localmailD.acsu.buffalo.edu (localmaild.acsu.buffalo.edu [128.205.5.208])
by mtareserve1.acsu.buffalo.edu (Postfix) with ESMTP id 39058A7E
for ; Thu, 2 Apr 2015 13:49:15 -0400 (EDT)
Received: from localmailD.acsu.buffalo.edu (localhost [127.0.0.1])
by localhost (Postfix) with SMTP id 31AD0C1AA
for ; Thu, 2 Apr 2015 13:49:15 -0400 (EDT)
Received: from localmailD.acsu.buffalo.edu (localhost [127.0.0.1])
by localmailD.acsu.buffalo.edu (Postfix) with ESMTP id 8215DC1A4
for ; Thu, 2 Apr 2015 13:49:14 -0400 (EDT)
Received: from smtp.buffalo.edu (smtp3.acsu.buffalo.edu [128.205.5.226])
by localmailD.acsu.buffalo.edu (Prefixe) with ESMTP id 73235C1A3
for ; Thu, 2 Apr 2015 13:49:14 -0400 (EDT)
Received: from [128.205.28.168] (slash.eng.buffalo.edu [128.205.28.168])
(Authenticated sender: minnus@buffalo.edu)
by smtp.buffalo.edu (Postfix) with ESMTPSA id 614BB4264
for ; Thu, 2 Apr 2015 13:49:14 -0400 (EDT)
Message-ID: <551D8119.5010404@buffalo.edu>
Date: Thu, 02 Apr 2015 13:49:13 -0400
From: Martins Innus
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: pcp
Subject: pmLookupName sts differences
Content-Type: multipart/mixed;
boundary="------------050101030000010901000507"
X-ASG-Orig-Subj: pmLookupName sts differences
X-PM-EL-Spam-Prob: : 8%
X-Barracuda-Connect: mtareserve2.acsu.buffalo.edu[128.205.7.162]
X-Barracuda-Start-Time: 1427996955
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17495
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
This is a multi-part message in MIME format.
--------------050101030000010901000507
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
Please see the attached code for an example of differences in
return value for pmLookupName when a metric is not found depending on
whether the top level namespace is handled by a dynamic pmda. For a
regular metric (non dynamic) if we give it a bogus metric name, the
function returns fine, the appropriate pmID is set to NULL and "sts"
reflects the valid number of names converted, as expected.
For a metric that would be rooted at a dynamic tree, it seems the
lookups all happen properly, NULL is set for the bogus metric properly,
but "sts" returns PM_ERR_NAME.
I think it is somewhere in the pmns<->pdu interaction that the
status is being propagated all the way back for dynamic metrics but not
normal ones. I'm not familiar enough with this code to figure out the
right way to fix it.
Thanks for any insight.
Martins
--------------050101030000010901000507
Content-Type: text/plain; charset=windows-1252;
name="lookuptest.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="lookuptest.c"
I2luY2x1ZGUgInBtYXBpLmgiCiNpbmNsdWRlICJpbXBsLmgiCgojaW5jbHVkZSA8c3RkaW8u
aD4KCmludCBtYWluKCl7CgogICAgLy8gVGhpcyByZXR1cm5zIHN0cyAxCiAgICAvL2NoYXIg
Km5hbWVzWzI1Nl0gPSB7ICJoaW52Lm5jcHUiLCAiaGludi5mb28ifTsKCiAgICAvLyBUaGlz
IHJldHVybnMgc3RzIC0xMjM1NwogICAgY2hhciAqbmFtZXNbMjU2XSA9IHsgImhpbnYubmNw
dSIsICJwcm9jLnBzaW5mby5mb28ifTsKCiAgICBwbUlEICppZHM7CgogICAgaW50IHN0czsK
CiAgICBpZHMgPSAocG1JRCopbWFsbG9jKDIqIHNpemVvZihwbUlEKSk7CgogICAgcG1OZXdD
b250ZXh0KFBNX0NPTlRFWFRfSE9TVCwgImxvY2FsOiIpOwoKICAgIHN0cyA9IHBtTG9va3Vw
TmFtZSggMiwgbmFtZXMsIGlkcyApOwoKICAgIHByaW50ZigiU1RTOiAlZFxuIiwgc3RzKTsK
CgogICAgcmV0dXJuIDA7Cn0KCg==
--------------050101030000010901000507--
From minnus@buffalo.edu Thu Apr 2 13:54:43 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id F23AB7F59
for ; Thu, 2 Apr 2015 13:54:42 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id D6F578F804B
for ; Thu, 2 Apr 2015 11:54:39 -0700 (PDT)
X-ASG-Debug-ID: 1428000878-04cbb043b610990001-S8gJnT
Received: from mtareserve1.acsu.buffalo.edu (mtareserve2.acsu.buffalo.edu [128.205.7.162]) by cuda.sgi.com with ESMTP id 3fQMw4ewl8S7eGa2 for ; Thu, 02 Apr 2015 11:54:38 -0700 (PDT)
X-Barracuda-Envelope-From: minnus@buffalo.edu
X-Barracuda-Apparent-Source-IP: 128.205.7.162
Received: from localmailA.acsu.buffalo.edu (localmaila.acsu.buffalo.edu [128.205.5.196])
by mtareserve1.acsu.buffalo.edu (Postfix) with ESMTP id 0424CBD
for ; Thu, 2 Apr 2015 14:54:38 -0400 (EDT)
Received: from localmailA.acsu.buffalo.edu (localhost [127.0.0.1])
by localhost (Postfix) with SMTP id F37775F11
for ; Thu, 2 Apr 2015 14:54:37 -0400 (EDT)
Received: from localmailA.acsu.buffalo.edu (localhost [127.0.0.1])
by localmailA.acsu.buffalo.edu (Postfix) with ESMTP id B8EA85F09
for ; Thu, 2 Apr 2015 14:54:36 -0400 (EDT)
Received: from smtp.buffalo.edu (smtp3.acsu.buffalo.edu [128.205.5.226])
by localmailA.acsu.buffalo.edu (Prefixe) with ESMTP id ACD8E5F08
for ; Thu, 2 Apr 2015 14:54:36 -0400 (EDT)
Received: from [128.205.28.168] (slash.eng.buffalo.edu [128.205.28.168])
(Authenticated sender: minnus@buffalo.edu)
by smtp.buffalo.edu (Postfix) with ESMTPSA id A0EA9488D
for ; Thu, 2 Apr 2015 14:54:36 -0400 (EDT)
Message-ID: <551D906B.9010208@buffalo.edu>
Date: Thu, 02 Apr 2015 14:54:35 -0400
From: Martins Innus
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: pcp
Subject: Re: [pcp] pmLookupName sts differences
References: <551D8119.5010404@buffalo.edu>
X-ASG-Orig-Subj: Re: [pcp] pmLookupName sts differences
In-Reply-To: <551D8119.5010404@buffalo.edu>
Content-Type: multipart/alternative;
boundary="------------000302010408000306020307"
X-PM-EL-Spam-Prob: X: 10%
X-Barracuda-Connect: mtareserve2.acsu.buffalo.edu[128.205.7.162]
X-Barracuda-Start-Time: 1428000878
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=HTML_MESSAGE
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17496
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.00 HTML_MESSAGE BODY: HTML included in message
This is a multi-part message in MIME format.
--------------000302010408000306020307
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
What appears to be happening is that in DoPMNSNames of pmcd/src/dopdus.c
that it is required that all PMDA_INTERFACE_4 metrics must be valid,
else an error is generated.
That doesn't seem to be enforced for static lookups in that same
function. sts is just set to the number found.
Also not for PMNS_LOCAL lookups for PMDA_INTERFACE_4 metrics in
pmLookupName directly. "lsts" is ignored if the lookup fails.
So would the appropriate thing be do ignore PM_ERR_NAME errors,
increment sts on success, and propagate the number of names converted
back to the caller through sts?
Sorry for the convoluted descriptions, just trying to work my way
through this code.
Thanks
Martins
On 4/2/2015 1:49 PM, Martins Innus wrote:
> Hi,
> Please see the attached code for an example of differences in
> return value for pmLookupName when a metric is not found depending on
> whether the top level namespace is handled by a dynamic pmda. For a
> regular metric (non dynamic) if we give it a bogus metric name, the
> function returns fine, the appropriate pmID is set to NULL and "sts"
> reflects the valid number of names converted, as expected.
>
> For a metric that would be rooted at a dynamic tree, it seems the
> lookups all happen properly, NULL is set for the bogus metric
> properly, but "sts" returns PM_ERR_NAME.
>
> I think it is somewhere in the pmns<->pdu interaction that the
> status is being propagated all the way back for dynamic metrics but
> not normal ones. I'm not familiar enough with this code to figure out
> the right way to fix it.
>
> Thanks for any insight.
>
> Martins
>
>
> _______________________________________________
> pcp mailing list
> pcp@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/pcp
--------------000302010408000306020307
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit
What appears to be happening is that in DoPMNSNames of
pmcd/src/dopdus.c that it is required that all PMDA_INTERFACE_4
metrics must be valid, else an error is generated.
That doesn't seem to be enforced for static lookups in that same
function. sts is just set to the number found.
Also not for PMNS_LOCAL lookups for PMDA_INTERFACE_4 metrics in
pmLookupName directly. "lsts" is ignored if the lookup fails.
So would the appropriate thing be do ignore PM_ERR_NAME errors,
increment sts on success, and propagate the number of names
converted back to the caller through sts?
Sorry for the convoluted descriptions, just trying to work my way
through this code.
Thanks
Martins
On 4/2/2015 1:49 PM, Martins Innus
wrote:
Hi,
Please see the attached code for an example of differences in
return value for pmLookupName when a metric is not found depending
on whether the top level namespace is handled by a dynamic pmda.
For a regular metric (non dynamic) if we give it a bogus metric
name, the function returns fine, the appropriate pmID is set to
NULL and "sts" reflects the valid number of names converted, as
expected.
For a metric that would be rooted at a dynamic tree, it seems
the lookups all happen properly, NULL is set for the bogus metric
properly, but "sts" returns PM_ERR_NAME.
I think it is somewhere in the pmns<->pdu interaction
that the status is being propagated all the way back for dynamic
metrics but not normal ones. I'm not familiar enough with this
code to figure out the right way to fix it.
Thanks for any insight.
Martins
_______________________________________________
pcp mailing list
pcp@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/pcp
--------------000302010408000306020307--
From lberk@redhat.com Fri Apr 3 15:58:52 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id 8A84E7F3F
for ; Fri, 3 Apr 2015 15:58:52 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay3.corp.sgi.com (Postfix) with ESMTP id 357BDAC001
for ; Fri, 3 Apr 2015 13:58:49 -0700 (PDT)
X-ASG-Debug-ID: 1428094727-04bdf04f806d8e0001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id odm7dZ2DIsUJ491w (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 03 Apr 2015 13:58:48 -0700 (PDT)
X-Barracuda-Envelope-From: lberk@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.28
X-ASG-Whitelist: Client
Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])
by mx1.redhat.com (Postfix) with ESMTPS id A5844AC7A5
for ; Fri, 3 Apr 2015 20:58:47 +0000 (UTC)
Received: from toium (unused [10.10.52.72] (may be forged))
by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t33KwjW0018257
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
for ; Fri, 3 Apr 2015 16:58:46 -0400
From: Lukas Berk
To: pcp@oss.sgi.com
Subject: trivial patch - adding pcp-summary subdir to makefile
Date: Fri, 03 Apr 2015 16:58:45 -0400
X-ASG-Orig-Subj: trivial patch - adding pcp-summary subdir to makefile
Message-ID: <87ego17wu2.fsf@redhat.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24
X-Barracuda-Connect: mx1.redhat.com[209.132.183.28]
X-Barracuda-Start-Time: 1428094728
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
--=-=-=
Content-Type: text/plain
Hey,
Please see the trivial patch to add the pcp/summary subdir to the
GNUMakefile. It should apply directly to master.
--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=commit
Content-Transfer-Encoding: base64
Y29tbWl0IDA3YTU0MmRhOGE5ODE3YjliMWU3NzE2YzdhYTQwMjEzMGZkZTRjMDYKQXV0aG9yOiBM
dWthcyBCZXJrIDxsYmVya0ByZWRoYXQuY29tPgpEYXRlOiAgIEZyaSBBcHIgMyAxNjo1MzozMyAy
MDE1IC0wNDAwCgogICAgQWRkIHBjcC1zdW1tYXJ5IGRpcmVjdG9yeSB0byBzcmMvcGNwL0dOVU1h
a2VmaWxlCiAgICAKICAgIE5vdyB0aGF0IHBjcC1zdW1tYXJ5IGhhcyBiZWVuIHBsYWNlZCBpbiBp
dCdzIG93biBzdWJkaXIsIHdlIG5lZWQgdG8gYWRkCiAgICB0aGUgc3ViZGlyIHRvIHRoZSBhcHBy
b3ByaWF0ZSBtYWtlZmlsZSB0byBiZSBidWlsdCBhbmQgaW5jbHVkZWQuCgpkaWZmIC0tZ2l0IGEv
c3JjL3BjcC9HTlVtYWtlZmlsZSBiL3NyYy9wY3AvR05VbWFrZWZpbGUKaW5kZXggYWM2OWVhYi4u
NGZkNTg2NiAxMDA2NDQKLS0tIGEvc3JjL3BjcC9HTlVtYWtlZmlsZQorKysgYi9zcmMvcGNwL0dO
VW1ha2VmaWxlCkBAIC0xNyw3ICsxNyw3IEBAIFRPUERJUiA9IC4uLy4uCiBpbmNsdWRlICQoVE9Q
RElSKS9zcmMvaW5jbHVkZS9idWlsZGRlZnMKIAogTFNSQ0ZJTEVTID0gcGNwLnNoCi1TVUJESVJT
ID0gZnJlZSB1cHRpbWUgbnVtYXN0YXQgZG1jYWNoZSB2ZXJpZnkKK1NVQkRJUlMgPSBmcmVlIHVw
dGltZSBudW1hc3RhdCBkbWNhY2hlIHZlcmlmeSBzdW1tYXJ5CiAKIGRlZmF1bHQgOjogZGVmYXVs
dF9wY3AKIAo=
--=-=-=--
From fche@redhat.com Sat Apr 4 09:23:37 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id ED9537F3F
for ; Sat, 4 Apr 2015 09:23:37 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id DBABB8F8035
for ; Sat, 4 Apr 2015 07:23:37 -0700 (PDT)
X-ASG-Debug-ID: 1428157413-04cbb043b98dfc0001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id i3yUMp3DNMsLeLOz (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Sat, 04 Apr 2015 07:23:34 -0700 (PDT)
X-Barracuda-Envelope-From: fche@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.28
X-ASG-Whitelist: Client
Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27])
by mx1.redhat.com (Postfix) with ESMTPS id 398F6AB117;
Sat, 4 Apr 2015 14:23:32 +0000 (UTC)
Received: from fche.csb (vpn-239-102.phx2.redhat.com [10.3.239.102])
by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t34ENV1e018930;
Sat, 4 Apr 2015 10:23:31 -0400
Received: by fche.csb (Postfix, from userid 2569)
id 26D16585F1; Sat, 4 Apr 2015 10:23:29 -0400 (EDT)
To: Renan DelValle
Cc: pcp@oss.sgi.com
Subject: Re: Installing perfevents on Ubuntu 14.04
References:
X-ASG-Orig-Subj: Re: Installing perfevents on Ubuntu 14.04
From: fche@redhat.com (Frank Ch. Eigler)
Date: Sat, 04 Apr 2015 10:23:29 -0400
In-Reply-To: (Renan DelValle's message of "Wed, 1 Apr 2015 17:29:56 -0400")
Message-ID:
User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27
X-Barracuda-Connect: mx1.redhat.com[209.132.183.28]
X-Barracuda-Start-Time: 1428157414
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
Renan DelValle writes:
> [...] upon trying to fetch information from the perfevent, all
> fields return a " No PMCD agent for domain of request" leading me to
> believe I must do something else in order to get this working. [...]
It Just Works (tm) here; the perfevent pmda install should restart
pmcd a /var/lib/pcp/pmdas/perfevent/pmdaperfevent process started,
along with a /var/log/pcp/pmcd/perfevent.log file. On your CPU,
it may need manual configuration in the form of the perfevent.conf
file.
See also the papi pmda. It requires no configuration, is somewhat
more secure (in the sense that it allows only pcp clients running as
root to fetch potentially security-sensitive performance counters),
but has a known bug with multi-processor systems (sampling only one of
the cpus).
- FChE
From wwwrun@oss.sgi.com Sun Apr 5 16:11:43 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,NO_RELAYS
autolearn=ham version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: by oss.sgi.com (Postfix, from userid 30)
id 11F477F3F; Sun, 5 Apr 2015 16:11:43 -0500 (CDT)
From: bugzilla-daemon@oss.sgi.com
To: pcp@oss.sgi.com
Subject: [Bug 1106] New: pmdalinux / pmdaroot container problems
Date: Sun, 05 Apr 2015 21:11:42 +0000
X-Bugzilla-Reason: CC AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Classification: Unclassified
X-Bugzilla-Product: pcp
X-Bugzilla-Component: pcp
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: fche@redhat.com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: pcp@oss.sgi.com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
op_sys bug_status bug_severity priority component assigned_to reporter cc
classification
Message-ID:
Content-Type: multipart/alternative; boundary="1428268303.E3f30.26633"; charset="us-ascii"
X-Bugzilla-URL: http://oss.sgi.com/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
--1428268303.E3f30.26633
Date: Sun, 5 Apr 2015 16:11:43 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
http://oss.sgi.com/bugzilla/show_bug.cgi?id=1106
Bug ID: 1106
Summary: pmdalinux / pmdaroot container problems
Product: pcp
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: pcp
Assignee: pcp@oss.sgi.com
Reporter: fche@redhat.com
CC: pcp@oss.sgi.com
Classification: Unclassified
With a realistic test scenario with pcpfans.git fche/pmmgr, the pcp --container
mode support shows problems at least with pmdalinux and pmdaroot. The gist of
it is that it is not possible to have two concurrent pcp clients like pmlogger
against the same pmce, one with and one without --container (whether specified
as a separate option or as a part of a pcp:// url). The symptoms vary:
corrupted data (host data showing up in container, or vice versa), or missing
data (container side accesses getting "Error: Operation not permitted").
The easiest reproduction would be to fire up the aforementioned branch, set up
a copy of container-logging pmmgr (touch /etc/pcp/pmmgr/subtarget-containers),
and fire up a few docker containers. The resulting /var/log/pcp/pmmgr/$HOST
and $HOST--$CONTAINER log files will not be right.
A more manual example:
(in another terminal) # docker run -i busybox sh (and just leave it alone)
# docker ps # to fetch running container id
# service pmcd restart
% pminfo -f --container=SUBSTRING network.interface.inet_addr
... probably will show a reasonable "172.17.0.*" IP address for the container
... now to mess things up ... generate actual pcp traffic:
% cd /tmp
% pmlogconf -c -r -h 'local:' FOO.conf &
% pmlogconf -c -r -h 'local:?container=SUBSTRING' FOO2.conf &
% wait
... examine the two different FOO*.conf files, as one might expect
% pminfo -f --container=SUBSTRING network.interface.inet_addr
% pminfo -f network.interface.inet_addr
... these generally do not show correct results already (both the same, or
EPERM)
% pmlogger -h 'local:?container=SUBSTRING' -c FOO2.conf FOO2 &
% pmlogger -h 'local:' -c FOO.conf FOO &
% pminfo -f --container=SUBSTRING network.interface.inet_addr
% pminfo -f network.interface.inet_addr
... no correct results before long
In one incantation of the problem (the EPERM variant), pmdaroot appears to go
dumb: Over three separate pminfo queries, it receives messages but sends
nothing.
# strace -f -p `pgrep pmdaroot`
select(8, [0 3 6 7], NULL, NULL, NULL) = 1 (in [0])
read(0, "\0\0\0\20\0\0p\0\0\0\0\1", 12) = 12
read(0, "\377\377\317\231", 4) = 4
select(8, [0 3 6 7], NULL, NULL, NULL) = 1 (in [0])
read(0, "\0\0\0\20\0\0p\0\0\0\0\1", 12) = 12
read(0, "\377\377\317\231", 4) = 4
select(8, [0 3 6 7], NULL, NULL, NULL) = 1 (in [0])
read(0, "\0\0\0\20\0\0p\0\0\0\0\1", 12) = 12
read(0, "\377\377\317\231", 4) = 4
# cat /var/log/pcp/pmcd/root.log
Log for pmdaroot on vm-rawhide-64 started Sun Apr 5 15:40:26 2015
[Sun Apr 5 15:40:27] pmdaroot(22640) Error: bad protocol exchange (fd=8)
In another incantation (host & container side data coming back perpetually
identical, reflecting container side ... even if later more containers are
started and their --container=XXXX is passed):
# strace -f -p `pgrep pmdalinux`
Process 11264 attached
read(0,
"\0\0\0\26\0\0p\21\0\0\0\4", 12) = 12
read(0, "\0\0\0\01629921\0", 10) = 10
read(0, "\0\0\0\24\0\0p\21\0\0\0\4", 12) = 12
read(0, "\0\0\0\f100\0", 8) = 8
read(0, "\0\0\0\24\0\0p\21\0\0\0\4", 12) = 12
read(0, "\0\0\0\v500\0", 8) = 8
read(0, "\0\0\0\34\0\0p\2\0\0\0\4", 12) = 12
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 16
read(0, "\0\0\0 \0\0p\3\0\0\0\4", 12) = 12
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\0\204\0", 20) = 20
ioctl(8, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0",
{AF_INET, inet_addr("172.17.0.1")}}}}) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="lo", ifr_addr={AF_INET,
inet_addr("127.0.0.1")}}) = 0
open("/sys/class/net/lo/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "00:00:00:00:00:00\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="eth0", ifr_addr={AF_INET,
inet_addr("172.17.0.1")}}) = 0
open("/sys/class/net/eth0/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "52:54:00:47:b3:cc\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
open("/proc/net/if_inet6", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1,
"\0\0\0T\0\0p\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\0\204\0\0\0\0\2"..., 84) =
84
read(0, "\0\0\0\20\0\0p\4\0\0\0\4", 12) = 12
read(0, "\17\0\204\0", 4) = 4
write(1, "\0\0\0 \0\0p\5\0\0\0\0\17\0\204\0\0\0\0\6\17\0\0\21\0\0\0\3\0\0\0\0",
32) = 32
read(0, "\0\0\0 \0\0p\6\0\0\0\4", 12) = 12
read(0, "\17\0\0\21\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0", 20) = 20
ioctl(8, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0",
{AF_INET, inet_addr("172.17.0.1")}}}}) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="lo", ifr_addr={AF_INET,
inet_addr("127.0.0.1")}}) = 0
open("/sys/class/net/lo/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "00:00:00:00:00:00\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="eth0", ifr_addr={AF_INET,
inet_addr("172.17.0.1")}}) = 0
open("/sys/class/net/eth0/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "52:54:00:47:b3:cc\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
open("/proc/net/if_inet6", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1, "\0\0\0,\0\0p\7\0\0\0\0\17\0\0\21\0\0\0\2\0\0\0\0\0\0\0\2lo~~"..., 44)
= 44
read(0, "\0\0\0\20\0\0p\0\0\0\0\4", 12) = 12
read(0, "\377\377\317\231", 4) = 4
It's as though the pmdalinux process has in the past entered the container
namespace, but never left it. Note also the high file descriptor number (681
here), suggesting another file descriptor leak:
# lsof -p `pgrep pmdalinux`
pmdalinux 11264 root 0r FIFO 0,8 0t0 414788 pipe
pmdalinux 11264 root 1w FIFO 0,8 0t0 414789 pipe
pmdalinux 11264 root 2w REG 253,1 64 552572
/var/log/pcp/pmcd/linux.log
pmdalinux 11264 root 3u unix 0xffff880003c39e00 0t0 414790 socket
pmdalinux 11264 root 4r REG 253,1 8268 69116911
/var/lib/pcp/pmdas/linux/help.dir
pmdalinux 11264 root 5r REG 253,1 70277 69159003
/var/lib/pcp/pmdas/linux/help.pag
pmdalinux 11264 root 6r REG 0,3 0 4026531956 net
pmdalinux 11264 root 7r REG 0,3 0 4026531956 net
pmdalinux 11264 root 8u sock 0,6 0t0 414919
protocol: UDP
pmdalinux 11264 root 9r REG 0,3 0 4026532028
/proc/stat
pmdalinux 11264 root 10r REG 0,3 0 4026531956 net
pmdalinux 11264 root 11r REG 0,3 0 4026531956 net
pmdalinux 11264 root 12r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 13r REG 0,3 0 4026531956 net
pmdalinux 11264 root 14r REG 0,3 0 4026531956 net
pmdalinux 11264 root 15r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 16r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 17r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 18r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 19r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 20r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 21r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 22r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 23r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 24r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 25r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 26r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 27r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 28r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 29r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 30r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 31r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 32r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 33r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 34r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 35r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 36r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 37r REG 0,3 0 4026531956 net
pmdalinux 11264 root 38r REG 0,3 0 4026531956 net
pmdalinux 11264 root 39r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 40r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 41r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 42r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 43r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 44r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 45r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 46r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 47r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 48r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 49r REG 0,3 0 4026531838 uts
[...etc...]
This is reproducible with git master or fche/pmmgr pcp on rawhide, rhel7.1,
fedora21 docker versions. It is not limited to the network.interface.inet_addr
metric; most others are affected.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
--1428268303.E3f30.26633
Date: Sun, 5 Apr 2015 16:11:43 -0500
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
| Bug ID |
1106
|
| Summary |
pmdalinux / pmdaroot container problems
|
| Product |
pcp
|
| Version |
unspecified
|
| Hardware |
All
|
| OS |
Linux
|
| Status |
NEW
|
| Severity |
major
|
| Priority |
P5
|
| Component |
pcp
|
| Assignee |
pcp@oss.sgi.com
|
| Reporter |
fche@redhat.com
|
| CC |
pcp@oss.sgi.com
|
| Classification |
Unclassified
|
With a realistic test scenario with pcpfans.git fche/pmmgr, the pcp --container
mode support shows problems at least with pmdalinux and pmdaroot. The gist of
it is that it is not possible to have two concurrent pcp clients like pmlogger
against the same pmce, one with and one without --container (whether specified
as a separate option or as a part of a pcp:// url). The symptoms vary:
corrupted data (host data showing up in container, or vice versa), or missing
data (container side accesses getting "Error: Operation not permitted").
The easiest reproduction would be to fire up the aforementioned branch, set up
a copy of container-logging pmmgr (touch /etc/pcp/pmmgr/subtarget-containers),
and fire up a few docker containers. The resulting /var/log/pcp/pmmgr/$HOST
and $HOST--$CONTAINER log files will not be right.
A more manual example:
(in another terminal) # docker run -i busybox sh (and just leave it alone)
# docker ps # to fetch running container id
# service pmcd restart
% pminfo -f --container=SUBSTRING network.interface.inet_addr
... probably will show a reasonable "172.17.0.*" IP address for the container
... now to mess things up ... generate actual pcp traffic:
% cd /tmp
% pmlogconf -c -r -h 'local:' FOO.conf &
% pmlogconf -c -r -h 'local:?container=SUBSTRING' FOO2.conf &
% wait
... examine the two different FOO*.conf files, as one might expect
% pminfo -f --container=SUBSTRING network.interface.inet_addr
% pminfo -f network.interface.inet_addr
... these generally do not show correct results already (both the same, or
EPERM)
% pmlogger -h 'local:?container=SUBSTRING' -c FOO2.conf FOO2 &
% pmlogger -h 'local:' -c FOO.conf FOO &
% pminfo -f --container=SUBSTRING network.interface.inet_addr
% pminfo -f network.interface.inet_addr
... no correct results before long
In one incantation of the problem (the EPERM variant), pmdaroot appears to go
dumb: Over three separate pminfo queries, it receives messages but sends
nothing.
# strace -f -p `pgrep pmdaroot`
select(8, [0 3 6 7], NULL, NULL, NULL) = 1 (in [0])
read(0, "\0\0\0\20\0\0p\0\0\0\0\1", 12) = 12
read(0, "\377\377\317\231", 4) = 4
select(8, [0 3 6 7], NULL, NULL, NULL) = 1 (in [0])
read(0, "\0\0\0\20\0\0p\0\0\0\0\1", 12) = 12
read(0, "\377\377\317\231", 4) = 4
select(8, [0 3 6 7], NULL, NULL, NULL) = 1 (in [0])
read(0, "\0\0\0\20\0\0p\0\0\0\0\1", 12) = 12
read(0, "\377\377\317\231", 4) = 4
# cat /var/log/pcp/pmcd/root.log
Log for pmdaroot on vm-rawhide-64 started Sun Apr 5 15:40:26 2015
[Sun Apr 5 15:40:27] pmdaroot(22640) Error: bad protocol exchange (fd=8)
In another incantation (host & container side data coming back perpetually
identical, reflecting container side ... even if later more containers are
started and their --container=XXXX is passed):
# strace -f -p `pgrep pmdalinux`
Process 11264 attached
read(0,
"\0\0\0\26\0\0p\21\0\0\0\4", 12) = 12
read(0, "\0\0\0\01629921\0", 10) = 10
read(0, "\0\0\0\24\0\0p\21\0\0\0\4", 12) = 12
read(0, "\0\0\0\f100\0", 8) = 8
read(0, "\0\0\0\24\0\0p\21\0\0\0\4", 12) = 12
read(0, "\0\0\0\v500\0", 8) = 8
read(0, "\0\0\0\34\0\0p\2\0\0\0\4", 12) = 12
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 16
read(0, "\0\0\0 \0\0p\3\0\0\0\4", 12) = 12
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\0\204\0", 20) = 20
ioctl(8, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0",
{AF_INET, inet_addr("172.17.0.1")}}}}) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="lo", ifr_addr={AF_INET,
inet_addr("127.0.0.1")}}) = 0
open("/sys/class/net/lo/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "00:00:00:00:00:00\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="eth0", ifr_addr={AF_INET,
inet_addr("172.17.0.1")}}) = 0
open("/sys/class/net/eth0/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "52:54:00:47:b3:cc\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
open("/proc/net/if_inet6", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1,
"\0\0\0T\0\0p\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\0\204\0\0\0\0\2"..., 84) =
84
read(0, "\0\0\0\20\0\0p\4\0\0\0\4", 12) = 12
read(0, "\17\0\204\0", 4) = 4
write(1, "\0\0\0 \0\0p\5\0\0\0\0\17\0\204\0\0\0\0\6\17\0\0\21\0\0\0\3\0\0\0\0",
32) = 32
read(0, "\0\0\0 \0\0p\6\0\0\0\4", 12) = 12
read(0, "\17\0\0\21\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0", 20) = 20
ioctl(8, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0",
{AF_INET, inet_addr("172.17.0.1")}}}}) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="lo", ifr_addr={AF_INET,
inet_addr("127.0.0.1")}}) = 0
open("/sys/class/net/lo/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "00:00:00:00:00:00\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
ioctl(8, SIOCGIFADDR, {ifr_name="eth0", ifr_addr={AF_INET,
inet_addr("172.17.0.1")}}) = 0
open("/sys/class/net/eth0/address", O_RDONLY) = 681
fstat(681, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4b90d08000
read(681, "52:54:00:47:b3:cc\n", 4096) = 18
close(681) = 0
munmap(0x7f4b90d08000, 4096) = 0
open("/proc/net/if_inet6", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1, "\0\0\0,\0\0p\7\0\0\0\0\17\0\0\21\0\0\0\2\0\0\0\0\0\0\0\2lo~~"..., 44)
= 44
read(0, "\0\0\0\20\0\0p\0\0\0\0\4", 12) = 12
read(0, "\377\377\317\231", 4) = 4
It's as though the pmdalinux process has in the past entered the container
namespace, but never left it. Note also the high file descriptor number (681
here), suggesting another file descriptor leak:
# lsof -p `pgrep pmdalinux`
pmdalinux 11264 root 0r FIFO 0,8 0t0 414788 pipe
pmdalinux 11264 root 1w FIFO 0,8 0t0 414789 pipe
pmdalinux 11264 root 2w REG 253,1 64 552572
/var/log/pcp/pmcd/linux.log
pmdalinux 11264 root 3u unix 0xffff880003c39e00 0t0 414790 socket
pmdalinux 11264 root 4r REG 253,1 8268 69116911
/var/lib/pcp/pmdas/linux/help.dir
pmdalinux 11264 root 5r REG 253,1 70277 69159003
/var/lib/pcp/pmdas/linux/help.pag
pmdalinux 11264 root 6r REG 0,3 0 4026531956 net
pmdalinux 11264 root 7r REG 0,3 0 4026531956 net
pmdalinux 11264 root 8u sock 0,6 0t0 414919
protocol: UDP
pmdalinux 11264 root 9r REG 0,3 0 4026532028
/proc/stat
pmdalinux 11264 root 10r REG 0,3 0 4026531956 net
pmdalinux 11264 root 11r REG 0,3 0 4026531956 net
pmdalinux 11264 root 12r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 13r REG 0,3 0 4026531956 net
pmdalinux 11264 root 14r REG 0,3 0 4026531956 net
pmdalinux 11264 root 15r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 16r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 17r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 18r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 19r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 20r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 21r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 22r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 23r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 24r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 25r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 26r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 27r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 28r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 29r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 30r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 31r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 32r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 33r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 34r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 35r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 36r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 37r REG 0,3 0 4026531956 net
pmdalinux 11264 root 38r REG 0,3 0 4026531956 net
pmdalinux 11264 root 39r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 40r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 41r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 42r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 43r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 44r REG 0,3 0 4026531840 mnt
pmdalinux 11264 root 45r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 46r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 47r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 48r REG 0,3 0 4026531838 uts
pmdalinux 11264 root 49r REG 0,3 0 4026531838 uts
[...etc...]
This is reproducible with git master or fche/pmmgr pcp on rawhide, rhel7.1,
fedora21 docker versions. It is not limited to the network.interface.inet_addr
metric; most others are affected.
You are receiving this mail because:
- You are on the CC list for the bug.
- You are the assignee for the bug.
--1428268303.E3f30.26633--
From nscott@redhat.com Mon Apr 6 22:24:18 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id 394BA29E01
for ; Mon, 6 Apr 2015 22:24:18 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay3.corp.sgi.com (Postfix) with ESMTP id ADCEBAC001
for ; Mon, 6 Apr 2015 20:24:14 -0700 (PDT)
X-ASG-Debug-ID: 1428377048-04cb6c1cc831a00001-S8gJnT
Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) by cuda.sgi.com with ESMTP id letxpVqnHzHUSH9Q (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 06 Apr 2015 20:24:09 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.37
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t373O4WC043316;
Mon, 6 Apr 2015 23:24:04 -0400
Date: Mon, 6 Apr 2015 23:24:03 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: Martins Innus , Ken McDonell
Cc: pcp@oss.sgi.com
Message-ID: <1054712300.13181698.1428377043948.JavaMail.zimbra@redhat.com>
In-Reply-To: <551AB41F.6050409@buffalo.edu>
References: <551AB41F.6050409@buffalo.edu>
Subject: Re: [pcp] pmlogger configuration changes
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] pmlogger configuration changes
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.49.200]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: pmlogger configuration changes
Thread-Index: 4YMueaJ+1660sq2ZOHe/10yw+lg9lQ==
X-Barracuda-Connect: mx5-phx2.redhat.com[209.132.183.37]
X-Barracuda-Start-Time: 1428377049
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17626
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Sounds like an accidental regression - any ideas so far Ken?, else I'll queue
it up for further investigation here.
thanks.
----- Original Message -----
> Hi,
> I am trying to track down some strangeness I'm seeing in pmlogger
> configuration between 3.10.0 and recent git.
>
> On a 3.10.0 system i have the following in /etc/pcp/pmlogger/control. All
> defaults except the primary logger line:
>
> ####
> LOCALHOSTNAME y n PCP_LOG_DIR/pmlogger/LOCALHOSTNAME -r -c primary.logger
> ####
>
> The file:
>
> /etc/pcp/pmlogger/primary.logger
>
> exists and everything works as expected.
>
>
> On a recent git system, with the same config, pmlogger does not find the
> primary.logger file and seems to construct a new (unrelated) one with
> pmlogconf in /var/lib/pcp/config/pmlogger/primary.logger that appears to be
> some sort of default config on startup.
>
> The change seems to come from here:
>
> 0020568401cefe9df692e2f705b8133a8ab87f0d
>
> I guess I have 2 questions:
>
> 1. The comment led me to believe that everything should still work since it
> says "." is searched first and I would expect "." to map to
> /etc/pcp/pmlogger since that is where the control file lives. Is that not
> correct?
>
> 2. This was on a clean install with rpms built from git on a Centos 6.5
> machine. I can deal with this on new systems by putting the config in the
> right place, but what is the expected behavior on upgrade? I am setting up a
> test system that I can upgrade shortly, because I got lost in the config
> file logic in the spec file, and am not sure if the right thing will happen
> in terms of moving existing config files to the new right place.
>
> Thanks
>
> Martins
>
>
>
>
>
>
>
>
>
> _______________________________________________
> pcp mailing list
> pcp@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/pcp
>
From nscott@redhat.com Mon Apr 6 22:27:47 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id EE1F829E01
for ; Mon, 6 Apr 2015 22:27:46 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay3.corp.sgi.com (Postfix) with ESMTP id 8B45AAC004
for ; Mon, 6 Apr 2015 20:27:46 -0700 (PDT)
X-ASG-Debug-ID: 1428377261-04bdf0632037170001-S8gJnT
Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by cuda.sgi.com with ESMTP id dYlb657GnFEoaYCf (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 06 Apr 2015 20:27:41 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.25
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t373Rd5a029296;
Mon, 6 Apr 2015 23:27:39 -0400
Date: Mon, 6 Apr 2015 23:27:39 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: chandana@desilva.id.au
Cc: pcp@oss.sgi.com
Message-ID: <1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com>
In-Reply-To: <1427957070.8765.30.camel@desilva.id.au>
References: <1427957070.8765.30.camel@desilva.id.au>
Subject: Re: [pcp] Trying out ElasticSearch PMDA for the first time
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] Trying out ElasticSearch PMDA for the first time
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.49.200]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: Trying out ElasticSearch PMDA for the first time
Thread-Index: HfJXicjQN1J5oO2HfIRG7+TNCBgfnw==
X-Barracuda-Connect: mx4-phx2.redhat.com[209.132.183.25]
X-Barracuda-Start-Time: 1428377261
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.52
X-Barracuda-Spam-Status: No, SCORE=0.52 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=BSF_SC0_MISMATCH_TO, THREAD_INDEX, THREAD_TOPIC, WEIRD_PORT
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17627
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header
0.50 WEIRD_PORT URI: Uses non-standard port number for HTTP
Hi Chandana,
----- Original Message -----
> Hello All
> I am trying out the ES pmda, and not having much luck.
>
> The error in the PMCD log says:
> [Thu Apr 2 06:20:40] pmcd(2564) Warning: pduread: timeout (after 5.000 sec)
Suggests pmdaelasticsearch is blocking for a long time on the initial fetch.
If you sighup pmcd after the install, does the situation change on subsequent
"pminfo -f elasticsearch"?
> $ curl http://localhost:9200/
Does this curl command take a long time to complete? (should be instant)
cheers.
--
Nathan
From nscott@redhat.com Mon Apr 6 22:28:18 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id BF02029E01
for ; Mon, 6 Apr 2015 22:28:18 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id AD8F58F804C
for ; Mon, 6 Apr 2015 20:28:18 -0700 (PDT)
X-ASG-Debug-ID: 1428377295-04cbb056b330c00001-S8gJnT
Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) by cuda.sgi.com with ESMTP id FDPM1FVjMCH3AFl4 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 06 Apr 2015 20:28:15 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.37
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t373SC56043497;
Mon, 6 Apr 2015 23:28:12 -0400
Date: Mon, 6 Apr 2015 23:28:12 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: Renan DelValle ,
Joseph White
Cc: pcp@oss.sgi.com
Message-ID: <1292025640.13182460.1428377292321.JavaMail.zimbra@redhat.com>
In-Reply-To:
References:
Subject: Re: [pcp] Installing perfevents on Ubuntu 14.04
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] Installing perfevents on Ubuntu 14.04
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.49.200]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: Installing perfevents on Ubuntu 14.04
Thread-Index: 9aU0tHB3AuPO8rZMvNAqtPZLGbXBtw==
X-Barracuda-Connect: mx5-phx2.redhat.com[209.132.183.37]
X-Barracuda-Start-Time: 1428377295
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17626
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Hi Renan,
----- Original Message -----
> Hi,
>
> I've installed PCP successfully through the apt package manager,
> however, there is no folder "perfevent" inside of /var/lib/pcp/pdmas
>
> I've tried downloading, compiling, and installing 3.10.3 from github,
> but the perfevent folder is still not included in the $PCP_PMDAS_DIR
> .
You'll need the libpfm4-dev deb installed, otherwise building perfevent
is switched off by configure.ac via...
AC_CHECK_LIB([pfm], [pfm_get_os_event_encoding],
[pfm_libs="-lpfm"],
[enable_perfevent=false])
AC_CHECK_HEADERS([perfmon/pfmlib_perf_event.h], [], [enable_perfevent=false])
(Joe, do you want to add packaging for this PMDA in debian/* to help out
the punters? See debian/pcp-pmda-infiniband* for an example, as well as
the control and rules files below debian/).
cheers.
--
Nathan
From nscott@redhat.com Mon Apr 6 23:37:18 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id 917FC29E01
for ; Mon, 6 Apr 2015 23:37:18 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay3.corp.sgi.com (Postfix) with ESMTP id 1F738AC001
for ; Mon, 6 Apr 2015 21:37:14 -0700 (PDT)
X-ASG-Debug-ID: 1428381432-04cbb056b432d40001-S8gJnT
Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by cuda.sgi.com with ESMTP id p731HeeDH0fYBzVy (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 06 Apr 2015 21:37:12 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.39
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t374bCG2007877
for ; Tue, 7 Apr 2015 00:37:12 -0400
Date: Tue, 7 Apr 2015 00:37:11 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: pcp
Message-ID: <1195328272.13197447.1428381431964.JavaMail.zimbra@redhat.com>
In-Reply-To: <1199155075.13197280.1428381377648.JavaMail.zimbra@redhat.com>
Subject: pcp updates: build, getopts fix
MIME-Version: 1.0
X-ASG-Orig-Subj: pcp updates: build, getopts fix
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.49.200]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: pcp updates: build, getopts fix
Thread-Index: afx51oNw1iGA4QgxYFdDnNn7U0ygtw==
X-Barracuda-Connect: mx6-phx2.redhat.com[209.132.183.39]
X-Barracuda-Start-Time: 1428381432
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17627
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Changes committed to git://git.pcp.io/pcp.git master
Nathan Scott (2):
build: spec changelog updates ahead of next release
libpcp: fix getopt --hostsfile parsing, add to qa/728 cases
Lukas Berk (1):
pcp-summary: add directory to src/pcp/GNUMakefile
build/rpm/fedora.spec | 3 +++
qa/728 | 5 +++++
qa/728.out | 25 +++++++++++++++++++++++++
src/libpcp/src/getopt.c | 5 +++--
src/pcp/GNUmakefile | 2 +-
5 files changed, 37 insertions(+), 3 deletions(-)
From chandana@desilva.id.au Tue Apr 7 00:05:51 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,WEIRD_PORT
autolearn=ham version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29])
by oss.sgi.com (Postfix) with ESMTP id A3E607F51
for ; Tue, 7 Apr 2015 00:05:51 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay2.corp.sgi.com (Postfix) with ESMTP id 92CDD304032
for ; Mon, 6 Apr 2015 22:05:48 -0700 (PDT)
X-ASG-Debug-ID: 1428383145-04cbb056b1338d0001-S8gJnT
Received: from relay.mailchannels.net (aso-006-i440.relay.mailchannels.net [23.91.64.121]) by cuda.sgi.com with ESMTP id SGOIOwSXkAHtg5zs for ; Mon, 06 Apr 2015 22:05:46 -0700 (PDT)
X-Barracuda-Envelope-From: chandana@desilva.id.au
X-Barracuda-Apparent-Source-IP: 23.91.64.121
X-Sender-Id: duocircle|x-authuser|chandana
Received: from smtp4.ore.mailhop.org (ip-10-204-4-183.us-west-2.compute.internal [10.204.4.183])
by relay.mailchannels.net (Postfix) with ESMTPA id 5ED8A100597;
Tue, 7 Apr 2015 05:05:43 +0000 (UTC)
X-Sender-Id: duocircle|x-authuser|chandana
Received: from smtp4.ore.mailhop.org (smtp4.ore.mailhop.org [10.21.145.197])
(using TLSv1 with cipher DHE-RSA-AES256-SHA)
by 0.0.0.0:2500 (trex/5.4.8);
Tue, 07 Apr 2015 05:05:43 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: duocircle|x-authuser|chandana
X-MailChannels-Auth-Id: duocircle
X-MC-Loop-Signature: 1428383143466:3073654100
X-MC-Ingress-Time: 1428383143466
Received: from ec2-54-252-74-219.ap-southeast-2.compute.amazonaws.com ([54.252.74.219] helo=mail.desilva.id.au)
by smtp4.ore.mailhop.org with esmtpa (Exim 4.82)
(envelope-from )
id 1YfLhl-0007P6-DT; Tue, 07 Apr 2015 05:05:41 +0000
Received: from tardis (unknown [175.45.119.98])
by mail.desilva.id.au (Postfix) with ESMTPSA id EC4E622D68;
Tue, 7 Apr 2015 05:05:39 +0000 (UTC)
X-Mail-Handler: DuoCircle Outbound SMTP
X-Originating-IP: 54.252.74.219
X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information)
X-MHO-User: U2FsdGVkX18lBUroHQbyeK3zC44qtMMfPayUGBCIEV8=
Message-ID: <1428383139.24854.1.camel@desilva.id.au>
Subject: Re: [pcp] Trying out ElasticSearch PMDA for the first time
From: Chandana De Silva
X-ASG-Orig-Subj: Re: [pcp] Trying out ElasticSearch PMDA for the first time
Reply-To: chandana@desilva.id.au
To: Nathan Scott
Cc: pcp@oss.sgi.com
Date: Tue, 07 Apr 2015 15:05:39 +1000
In-Reply-To: <1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com>
References: <1427957070.8765.30.camel@desilva.id.au>
<1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com>
Content-Type: multipart/alternative; boundary="=-JqozyM0Bcp7pvVBu0EkS"
X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21)
Mime-Version: 1.0
X-AuthUser: chandana
X-Barracuda-Connect: aso-006-i440.relay.mailchannels.net[23.91.64.121]
X-Barracuda-Start-Time: 1428383145
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.70
X-Barracuda-Spam-Status: No, SCORE=0.70 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=BSF_SC0_SA038b, HTML_MESSAGE, WEIRD_PORT
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17628
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.50 WEIRD_PORT URI: Uses non-standard port number for HTTP
0.00 HTML_MESSAGE BODY: HTML included in message
0.20 BSF_SC0_SA038b Custom Rule SA038b
--=-JqozyM0Bcp7pvVBu0EkS
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Hello Nathan,
Thanks for replying, and Happy Easter!
SIGHUP did not help, and the http query to localhost:9020 returns
instantly
Chandana
On Mon, 2015-04-06 at 23:27 -0400, Nathan Scott wrote:
> Hi Chandana,
>
> ----- Original Message -----
> > Hello All
> > I am trying out the ES pmda, and not having much luck.
> >
> > The error in the PMCD log says:
> > [Thu Apr 2 06:20:40] pmcd(2564) Warning: pduread: timeout (after 5.000 sec)
>
> Suggests pmdaelasticsearch is blocking for a long time on the initial fetch.
> If you sighup pmcd after the install, does the situation change on subsequent
> "pminfo -f elasticsearch"?
>
> > $ curl http://localhost:9200/
>
> Does this curl command take a long time to complete? (should be instant)
>
> cheers.
>
> --
> Nathan
--=-JqozyM0Bcp7pvVBu0EkS
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
Hello Nathan,
Thanks for replying, and Happy Easter!
SIGHUP did not help, and the http query to localhost:9020 returns instantly
Chandana
On Mon, 2015-04-06 at 23:27 -0400, Nathan Scott wrote:
Hi Chandana,
----- Original Message -----
> Hello All
> I am trying out the ES pmda, and not having much luck.
>
> The error in the PMCD log says:
> [Thu Apr 2 06:20:40] pmcd(2564) Warning: pduread: timeout (after 5.000 sec)
Suggests pmdaelasticsearch is blocking for a long time on the initial fetch.
If you sighup pmcd after the install, does the situation change on subsequent
"pminfo -f elasticsearch"?
> $ curl http://localhost:9200/
Does this curl command take a long time to complete? (should be instant)
cheers.
--
Nathan
--=-JqozyM0Bcp7pvVBu0EkS--
From myllynen@redhat.com Tue Apr 7 03:26:47 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id ED4127F63
for ; Tue, 7 Apr 2015 03:26:46 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay3.corp.sgi.com (Postfix) with ESMTP id 585FCAC003
for ; Tue, 7 Apr 2015 01:26:46 -0700 (PDT)
X-ASG-Debug-ID: 1428395204-04cb6c1cc7452f0001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id qKMdlY9lqvyaLBcS (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 07 Apr 2015 01:26:45 -0700 (PDT)
X-Barracuda-Envelope-From: myllynen@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.28
X-ASG-Whitelist: Client
Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
by mx1.redhat.com (Postfix) with ESMTPS id 60043A10D9
for ; Tue, 7 Apr 2015 08:26:44 +0000 (UTC)
Received: from mmyllyne.csb (vpn1-5-150.ams2.redhat.com [10.36.5.150])
by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t378QhGj017133
for ; Tue, 7 Apr 2015 04:26:43 -0400
Message-ID: <552394C2.3010008@redhat.com>
Date: Tue, 07 Apr 2015 11:26:42 +0300
From: Marko Myllynen
Reply-To: myllynen@redhat.com
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: pcp developers
Subject: [PATCH] ds389/ds389log: simplify metrics data structure
Content-Type: text/plain; charset=UTF-8
X-ASG-Orig-Subj: [PATCH] ds389/ds389log: simplify metrics data structure
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-Barracuda-Connect: mx1.redhat.com[209.132.183.28]
X-Barracuda-Start-Time: 1428395205
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
Fixes a pasto/braino.
---
src/pmdas/ds389/pmdads389.pl | 6 ++----
src/pmdas/ds389log/pmdads389log.pl | 13 +++++--------
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/src/pmdas/ds389/pmdads389.pl b/src/pmdas/ds389/pmdads389.pl
index c4ecec5..901cc8d 100644
--- a/src/pmdas/ds389/pmdads389.pl
+++ b/src/pmdas/ds389/pmdads389.pl
@@ -66,7 +66,6 @@ sub ds389_process_entry {
my $currtime;
foreach my $attr ($entry->attributes) {
- my @metric;
my $value = $entry->get_value($attr);
if ($attr eq 'currenttime') {
@@ -80,8 +79,7 @@ sub ds389_process_entry {
$attr = 'uptime';
}
- @metric = ('ds389.' . $prefix . $attr, $value);
- $metrics{$metric[0]} = \@metric;
+ $metrics{'ds389.' . $prefix . $attr} = $value;
}
}
@@ -131,7 +129,7 @@ sub ds389_fetch_callback {
if (!defined($value)) { return (PM_ERR_APPVERSION, 0); }
- return ($value->[1], 1);
+ return ($value, 1);
}
$pmda = PCP::PMDA->new('ds389', 130);
diff --git a/src/pmdas/ds389log/pmdads389log.pl b/src/pmdas/ds389log/pmdads389log.pl
index dcea107..890a5ed 100644
--- a/src/pmdas/ds389log/pmdads389log.pl
+++ b/src/pmdas/ds389log/pmdads389log.pl
@@ -106,7 +106,6 @@ sub ds389log_fetch {
my $errors = 0; # combined
foreach my $line (@stats) {
my $key;
- my @metric;
if ($line =~ /^.*:/ || $line =~ /^U1/ || $line =~ /^B1/) {
$key = $&;
@@ -132,14 +131,13 @@ sub ds389log_fetch {
my $id = 'ds389log.' . $data{$key}[1] . '.' . $data{$key}[0];
if ($data{$key}[4] eq 1) {
- my $prev = $metrics{$id}[1];
+ my $prev = $metrics{$id};
$value = $prev if $prev > $value;
} else {
- $value = $metrics{$id}[1] + $value;
+ $value = $metrics{$id} + $value;
}
- @metric = ($id , $value);
- $metrics{$id} = \@metric;
+ $metrics{$id} = $value;
}
}
}
@@ -155,7 +153,7 @@ sub ds389log_fetch_callback {
if (!defined($value)) { return (PM_ERR_APPVERSION, 0); }
- return ($value->[1], 1);
+ return ($value, 1);
}
$pmda = PCP::PMDA->new('ds389log', 131);
@@ -167,8 +165,7 @@ foreach my $key (keys %data) {
PM_TYPE_U32, PM_INDOM_NULL, PM_SEM_COUNTER,
pmda_units(0,0,1,0,0,PM_COUNT_ONE),
$name, '', '');
- my @value = ($name, 0);
- $metrics{$name} = \@value;
+ $metrics{$name} = 0;
}
$pmda->set_refresh(\&ds389log_fetch);
--
1.7.1
From nscott@redhat.com Tue Apr 7 17:39:39 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 7AD207F7E
for ; Tue, 7 Apr 2015 17:39:39 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay1.corp.sgi.com (Postfix) with ESMTP id 693698F8073
for ; Tue, 7 Apr 2015 15:39:36 -0700 (PDT)
X-ASG-Debug-ID: 1428446370-04cb6c1cc86ed20001-S8gJnT
Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by cuda.sgi.com with ESMTP id ex6Mz7e3d3ZwSToq (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 07 Apr 2015 15:39:31 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.39
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t37MdT6N024771;
Tue, 7 Apr 2015 18:39:29 -0400
Date: Tue, 7 Apr 2015 18:39:28 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: chandana@desilva.id.au
Cc: pcp@oss.sgi.com
Message-ID: <882410516.13878102.1428446368567.JavaMail.zimbra@redhat.com>
In-Reply-To: <1428383139.24854.1.camel@desilva.id.au>
References: <1427957070.8765.30.camel@desilva.id.au> <1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com> <1428383139.24854.1.camel@desilva.id.au>
Subject: Re: [pcp] Trying out ElasticSearch PMDA for the first time
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] Trying out ElasticSearch PMDA for the first time
Content-Type: multipart/mixed;
boundary="----=_Part_13878100_1133094691.1428446368565"
X-Originating-IP: [10.64.50.1]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: Trying out ElasticSearch PMDA for the first time
Thread-Index: b2daDVgEOCFQGsAHWSAsQ5Je+n8U+w==
X-Barracuda-Connect: mx6-phx2.redhat.com[209.132.183.39]
X-Barracuda-Start-Time: 1428446371
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=BSF_SC0_MISMATCH_TO, THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17651
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header
------=_Part_13878100_1133094691.1428446368565
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
----- Original Message -----
> Hello Nathan,
> Thanks for replying, and Happy Easter!
>
No problem, and thanks!
> SIGHUP did not help, and the http query to localhost:9020 returns
> instantly
Hmm. So, the PMDA is supposed to be doing simple http requests just
like your curl. We'll need to figure out where that big latency is
coming from - can you try the attached patch and see what extra info
appears in the log? This should help us trace it back to a specific
query.
It also adds in use of Kens recent more-rapid-er pmcd connection API,
so we should certainly see some kind of behaviour change here - with
any luck, for the better. :) (but it wont fix the underlying issue;
need the extra elasticsearch.log diagnostics to discover which query
is slow - assuming it is one of the http queries)
cheers.
--
Nathan
------=_Part_13878100_1133094691.1428446368565
Content-Type: text/x-patch; name=es.patch
Content-Disposition: attachment; filename=es.patch
Content-Transfer-Encoding: base64
ZGlmZiAtLWdpdCBhL3NyYy9wbWRhcy9lbGFzdGljc2VhcmNoL3BtZGFlbGFzdGljc2VhcmNoLnBs
IGIvc3JjL3BtZGFzL2VsYXN0aWNzZWFyY2gvcG1kYWVsYXN0aWNzZWFyY2gucGwKaW5kZXggZTky
NmIxOC4uZWRmYTkyMSAxMDA3NTUKLS0tIGEvc3JjL3BtZGFzL2VsYXN0aWNzZWFyY2gvcG1kYWVs
YXN0aWNzZWFyY2gucGwKKysrIGIvc3JjL3BtZGFzL2VsYXN0aWNzZWFyY2gvcG1kYWVsYXN0aWNz
ZWFyY2gucGwKQEAgLTQ5LDcgKzQ5LDEyIEBAICRodHRwLT50aW1lb3V0KCRodHRwX3RpbWVvdXQp
OwkjIGlmIGVsYXN0aWNzZWFyY2ggbm90IHRpbWVseSwgbm8gc291cCBmb3IgeW91CiAjIGh0dHAg
R0VUIG9mIGVsYXN0aWNzZWFyY2gganNvbiBmcm9tIGEgZ2l2ZW4gdXJsCiBzdWIgZXNfYWdlbnRf
Z2V0CiB7Ci0gICAgbXkgJHJlc3BvbnNlID0gJGh0dHAtPmdldChzaGlmdCk7CisgICAgbXkgJHJl
cXVlc3QgPSBzaGlmdDsKKworICAgICRwbWRhLT5sb2coImVzX2FnZW50X2dldDogJHJlcXVlc3Qi
KTsKKyAgICBteSAkcmVzcG9uc2UgPSAkaHR0cC0+Z2V0KCRyZXF1ZXN0KTsKKyAgICAkcG1kYS0+
bG9nKCJlc19hZ2VudF9nZXQgc3VjY2VzczogJHJlc3BvbnNlLT5pc19zdWNjZXNzIik7CisKICAg
ICByZXR1cm4gdW5kZWYgdW5sZXNzICRyZXNwb25zZS0+aXNfc3VjY2VzczsKICAgICByZXR1cm4g
JHJlc3BvbnNlLT5kZWNvZGVkX2NvbnRlbnQ7CiB9CkBAIC0zNjksNiArMzc0LDcgQEAgc3ViIGVz
X2ZldGNoX2NhbGxiYWNrCiB9CiAKICRwbWRhID0gUENQOjpQTURBLT5uZXcoJ2VsYXN0aWNzZWFy
Y2gnLCAxMDgpOworJHBtZGEtPmNvbm5lY3RfcG1jZDsKIAogIyBjbHVzdGVyIHN0YXRzCiAkcG1k
YS0+YWRkX21ldHJpYyhwbWRhX3BtaWQoMCwwKSwgUE1fVFlQRV9TVFJJTkcsIFBNX0lORE9NX05V
TEwsCg==
------=_Part_13878100_1133094691.1428446368565--
From psmith@aconex.com Tue Apr 7 18:22:06 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29])
by oss.sgi.com (Postfix) with ESMTP id 0FD0A7F7E
for ; Tue, 7 Apr 2015 18:22:06 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay2.corp.sgi.com (Postfix) with ESMTP id E3A8C304071
for ; Tue, 7 Apr 2015 16:22:02 -0700 (PDT)
X-ASG-Debug-ID: 1428448918-04cbb056b185910001-S8gJnT
Received: from postoffice2.aconex.com (mail.aconex.com [175.45.105.35]) by cuda.sgi.com with ESMTP id hADBH8bQA3j3HkAr for ; Tue, 07 Apr 2015 16:21:59 -0700 (PDT)
X-Barracuda-Envelope-From: psmith@aconex.com
X-Barracuda-Apparent-Source-IP: 175.45.105.35
Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.35.100]) by postoffice2.aconex.com with ESMTP id sWH6ZE3dxjSAWIMD; Wed, 08 Apr 2015 09:21:56 +1000 (EST)
Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.35.102])
by postoffice.aconex.com (Postfix) with ESMTP id D21AC3CE009F;
Wed, 8 Apr 2015 09:21:56 +1000 (EST)
Received: from localhost (localhost.localdomain [127.0.0.1])
by gatekeeper.aconex.com (Postfix) with ESMTP id CAFE0243A9B5;
Wed, 8 Apr 2015 09:21:56 +1000 (EST)
Received: from gatekeeper.aconex.com ([127.0.0.1])
by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10032)
with ESMTP id RNHKWDgNzzgd; Wed, 8 Apr 2015 09:21:55 +1000 (EST)
Received: from localhost (localhost.localdomain [127.0.0.1])
by gatekeeper.aconex.com (Postfix) with ESMTP id AAFEC243A9EB;
Wed, 8 Apr 2015 09:21:55 +1000 (EST)
X-Virus-Scanned: amavisd-new at aconex.com
Received: from gatekeeper.aconex.com ([127.0.0.1])
by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id aVOh0eA4CI9X; Wed, 8 Apr 2015 09:21:55 +1000 (EST)
Received: from paul.engr.acx (paul.engr.acx [192.168.7.130])
by gatekeeper.aconex.com (Postfix) with ESMTPSA id 87033243A999;
Wed, 8 Apr 2015 09:21:55 +1000 (EST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_D244B360-3C3D-41F8-A2A4-54FD3216C84F"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
Subject: Re: [pcp] Trying out ElasticSearch PMDA for the first time
From: Paul Smith
X-ASG-Orig-Subj: Re: [pcp] Trying out ElasticSearch PMDA for the first time
In-Reply-To: <882410516.13878102.1428446368567.JavaMail.zimbra@redhat.com>
Date: Wed, 8 Apr 2015 09:21:58 +1000
Cc: chandana@desilva.id.au,
pcp@oss.sgi.com
Message-Id:
References: <1427957070.8765.30.camel@desilva.id.au> <1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com> <1428383139.24854.1.camel@desilva.id.au> <882410516.13878102.1428446368567.JavaMail.zimbra@redhat.com>
To: Nathan Scott
X-Mailer: Apple Mail (2.2070.6)
X-Virus-Scanned: by bsmtpd at aconex.com
X-Barracuda-Connect: mail.aconex.com[175.45.105.35]
X-Barracuda-Start-Time: 1428448918
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=HTML_MESSAGE
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17653
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.00 HTML_MESSAGE BODY: HTML included in message
--Apple-Mail=_D244B360-3C3D-41F8-A2A4-54FD3216C84F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Hi, almost certain the current PMDA won't work with the later version of =
ES. The PMDA currently works with 0.19 and 0.20 I think of ES, but that =
is so ancient now, I suspect many of the URL endpoints are gone or =
different.
The 'good' news is that the current version of ES has a very nice simple =
_cat API (see [1]) that would be a more useful (and simpler to parse) =
basis for a newer PMDA. The bad news, we ain't using the new version =
yet so not currently able to upgrade the PMDA, so hoping for some =
community support there..=20
cheers,
Paul
[1] =
http://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html =
> On 8 Apr 2015, at 8:39 am, Nathan Scott wrote:
>=20
>=20
>=20
> ----- Original Message -----
>> Hello Nathan,
>> Thanks for replying, and Happy Easter!
>>=20
>=20
> No problem, and thanks!
>=20
>> SIGHUP did not help, and the http query to localhost:9020 returns
>> instantly
>=20
> Hmm. So, the PMDA is supposed to be doing simple http requests just
> like your curl. We'll need to figure out where that big latency is
> coming from - can you try the attached patch and see what extra info
> appears in the log? This should help us trace it back to a specific
> query.
>=20
> It also adds in use of Kens recent more-rapid-er pmcd connection API,
> so we should certainly see some kind of behaviour change here - with
> any luck, for the better. :) (but it wont fix the underlying issue;
> need the extra elasticsearch.log diagnostics to discover which query
> is slow - assuming it is one of the http queries)
>=20
> cheers.
>=20
> --
> Nathan
> _______________________________________________
> pcp mailing list
> pcp@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/pcp
--Apple-Mail=_D244B360-3C3D-41F8-A2A4-54FD3216C84F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
Hi, almost certain the current PMDA won't work with the later =
version of ES. The PMDA currently works with 0.19 and 0.20 I think of =
ES, but that is so ancient now, I suspect many of the URL endpoints are =
gone or different.
The=
'good' news is that the current version of ES has a very nice simple =
_cat API (see [1]) that would be a more useful (and simpler to parse) =
basis for a newer PMDA. The bad news, we ain't using the new =
version yet so not currently able to upgrade the PMDA, so hoping for =
some community support there..
cheers,
Paul
----- Original Message -----
Hello Nathan,
Thanks for =
replying, and Happy Easter!
No problem, and thanks!
SIGHUP did not help, and =
the http query to localhost:9020 returns
instantly
Hmm. So, the PMDA is =
supposed to be doing simple http requests just
like your =
curl. We'll need to figure out where that big latency is
coming from - can you try the attached patch and see what =
extra info
appears in the log? This should help us =
trace it back to a specific
query.
It also adds in use of Kens recent more-rapid-er pmcd =
connection API,
so we should certainly see some kind of =
behaviour change here - with
any luck, for the better. :) =
(but it wont fix the underlying issue;
need the =
extra elasticsearch.log diagnostics to discover which query
is slow - assuming it is one of the http queries)
cheers.
--
Nathan
<es.patch>___=
____________________________________________
pcp mailing =
list
pcp@oss.sgi.comhttp://oss.sgi.com/mailman/listinfo/pcp
=
--Apple-Mail=_D244B360-3C3D-41F8-A2A4-54FD3216C84F--
From nscott@redhat.com Tue Apr 7 18:32:28 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id 963E17F7E
for ; Tue, 7 Apr 2015 18:32:28 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay3.corp.sgi.com (Postfix) with ESMTP id 41243AC002
for ; Tue, 7 Apr 2015 16:32:24 -0700 (PDT)
X-ASG-Debug-ID: 1428449540-04bdf0632284be0001-S8gJnT
Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) by cuda.sgi.com with ESMTP id DLsrO1TkUdnBGXzu (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 07 Apr 2015 16:32:20 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.37
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t37NWGUo013257;
Tue, 7 Apr 2015 19:32:16 -0400
Date: Tue, 7 Apr 2015 19:32:16 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: Paul Smith , chandana@desilva.id.au
Cc: pcp@oss.sgi.com
Message-ID: <211702903.13890461.1428449536086.JavaMail.zimbra@redhat.com>
In-Reply-To:
References: <1427957070.8765.30.camel@desilva.id.au> <1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com> <1428383139.24854.1.camel@desilva.id.au> <882410516.13878102.1428446368567.JavaMail.zimbra@redhat.com>
Subject: Re: [pcp] Trying out ElasticSearch PMDA for the first time
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] Trying out ElasticSearch PMDA for the first time
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.1]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: Trying out ElasticSearch PMDA for the first time
Thread-Index: cFl7XhDDIakLQgoZ09xatn3yP7xN1g==
X-Barracuda-Connect: mx5-phx2.redhat.com[209.132.183.37]
X-Barracuda-Start-Time: 1428449540
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17653
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
----- Original Message -----
> Hi, almost certain the current PMDA won't work with the later version of ES.
> The PMDA currently works with 0.19 and 0.20 I think of ES, but that is so
> ancient now, I suspect many of the URL endpoints are gone or different.
Mkay, thanks Paul.
> The 'good' news is that the current version of ES has a very nice simple _cat
> API (see [1]) that would be a more useful (and simpler to parse) basis for a
> newer PMDA. The bad news, we ain't using the new version yet so not
> currently able to upgrade the PMDA, so hoping for some community support
> there..
OK. I guess we should continue to debug a bit further here, find the failing
GETs (not clear why they dont fail immediately if theres no endpoint) and add
some version/sanity checking into the PMDA to fail gracefully for ES versions
without the supported functionality.
cheers.
--
Nathan
From chandana@desilva.id.au Tue Apr 7 20:28:58 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id CDEEE7F7E
for ; Tue, 7 Apr 2015 20:28:58 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay1.corp.sgi.com (Postfix) with ESMTP id 908578F8089
for ; Tue, 7 Apr 2015 18:28:55 -0700 (PDT)
X-ASG-Debug-ID: 1428456529-04bdf063209e7a0001-S8gJnT
Received: from relay.mailchannels.net (nov-007-i574.relay.mailchannels.net [46.232.183.128]) by cuda.sgi.com with ESMTP id zlAdwuB8960zQO1B for ; Tue, 07 Apr 2015 18:28:51 -0700 (PDT)
X-Barracuda-Envelope-From: chandana@desilva.id.au
X-Barracuda-Apparent-Source-IP: 46.232.183.128
X-Sender-Id: duocircle|x-authuser|chandana
Received: from smtp3.ore.mailhop.org (ip-10-229-11-165.us-west-2.compute.internal [10.229.11.165])
by relay.mailchannels.net (Postfix) with ESMTPA id E639F600E6;
Wed, 8 Apr 2015 01:28:46 +0000 (UTC)
X-Sender-Id: duocircle|x-authuser|chandana
Received: from smtp3.ore.mailhop.org (smtp3.ore.mailhop.org [10.45.8.167])
(using TLSv1 with cipher DHE-RSA-AES256-SHA)
by 0.0.0.0:2500 (trex/5.4.8);
Wed, 08 Apr 2015 01:28:47 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: duocircle|x-authuser|chandana
X-MailChannels-Auth-Id: duocircle
X-MC-Loop-Signature: 1428456527030:546730615
X-MC-Ingress-Time: 1428456527029
Received: from ec2-54-252-74-219.ap-southeast-2.compute.amazonaws.com ([54.252.74.219] helo=mail.desilva.id.au)
by smtp3.ore.mailhop.org with esmtpa (Exim 4.82)
(envelope-from )
id 1YfenN-0003YI-Ls; Wed, 08 Apr 2015 01:28:46 +0000
Received: from tardis (unknown [175.45.119.98])
by mail.desilva.id.au (Postfix) with ESMTPSA id 11CCD27EFC;
Wed, 8 Apr 2015 01:28:44 +0000 (UTC)
X-Mail-Handler: DuoCircle Outbound SMTP
X-Originating-IP: 54.252.74.219
X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information)
X-MHO-User: U2FsdGVkX18DFlf4ZTLYhoU0hKTbOJHLc4HdIylH97U=
Message-ID: <1428456523.6304.35.camel@desilva.id.au>
Subject: Re: [pcp] Trying out ElasticSearch PMDA for the first time
From: Chandana De Silva
X-ASG-Orig-Subj: Re: [pcp] Trying out ElasticSearch PMDA for the first time
Reply-To: chandana@desilva.id.au
To: Nathan Scott
Cc: Paul Smith , pcp@oss.sgi.com
Date: Wed, 08 Apr 2015 11:28:43 +1000
In-Reply-To: <211702903.13890461.1428449536086.JavaMail.zimbra@redhat.com>
References: <1427957070.8765.30.camel@desilva.id.au>
<1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com>
<1428383139.24854.1.camel@desilva.id.au>
<882410516.13878102.1428446368567.JavaMail.zimbra@redhat.com>
<211702903.13890461.1428449536086.JavaMail.zimbra@redhat.com>
Content-Type: multipart/alternative; boundary="=-4FBbDoAgpSJ7IEcAMhdB"
X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21)
Mime-Version: 1.0
X-AuthUser: chandana
X-Barracuda-Connect: nov-007-i574.relay.mailchannels.net[46.232.183.128]
X-Barracuda-Start-Time: 1428456529
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=HTML_MESSAGE
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17657
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.00 HTML_MESSAGE BODY: HTML included in message
--=-4FBbDoAgpSJ7IEcAMhdB
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Nathan and Paul,
Many thanks and the cat api looks very nice. It will even help us work
out some performance issues ( > 300k events per minute).
I will try and look through the PMDA and work out which of the GET's are
failing, looking at the pminfo output it seems all of them are. So it is
possible that they have been removed from the API, as Paul says.
I will try and locate the GET API doc. Paul if you know it off the top
of your head, let me know
Chandana
On Tue, 2015-04-07 at 19:32 -0400, Nathan Scott wrote:
>
> ----- Original Message -----
> > Hi, almost certain the current PMDA won't work with the later version of ES.
> > The PMDA currently works with 0.19 and 0.20 I think of ES, but that is so
> > ancient now, I suspect many of the URL endpoints are gone or different.
>
> Mkay, thanks Paul.
>
> > The 'good' news is that the current version of ES has a very nice simple _cat
> > API (see [1]) that would be a more useful (and simpler to parse) basis for a
> > newer PMDA. The bad news, we ain't using the new version yet so not
> > currently able to upgrade the PMDA, so hoping for some community support
> > there..
>
> OK. I guess we should continue to debug a bit further here, find the failing
> GETs (not clear why they dont fail immediately if theres no endpoint) and add
> some version/sanity checking into the PMDA to fail gracefully for ES versions
> without the supported functionality.
>
> cheers.
>
> --
> Nathan
--=-4FBbDoAgpSJ7IEcAMhdB
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
Nathan and Paul,
Many thanks and the cat api looks very nice. It will even help us work out some performance issues ( > 300k events per minute).
I will try and look through the PMDA and work out which of the GET's are failing, looking at the pminfo output it seems all of them are. So it is possible that they have been removed from the API, as Paul says.
I will try and locate the GET API doc. Paul if you know it off the top of your head, let me know
Chandana
On Tue, 2015-04-07 at 19:32 -0400, Nathan Scott wrote:
----- Original Message -----
> Hi, almost certain the current PMDA won't work with the later version of ES.
> The PMDA currently works with 0.19 and 0.20 I think of ES, but that is so
> ancient now, I suspect many of the URL endpoints are gone or different.
Mkay, thanks Paul.
> The 'good' news is that the current version of ES has a very nice simple _cat
> API (see [1]) that would be a more useful (and simpler to parse) basis for a
> newer PMDA. The bad news, we ain't using the new version yet so not
> currently able to upgrade the PMDA, so hoping for some community support
> there..
OK. I guess we should continue to debug a bit further here, find the failing
GETs (not clear why they dont fail immediately if theres no endpoint) and add
some version/sanity checking into the PMDA to fail gracefully for ES versions
without the supported functionality.
cheers.
--
Nathan
--=-4FBbDoAgpSJ7IEcAMhdB--
From fche@redhat.com Tue Apr 7 20:50:25 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id C755B7F7E
for ; Tue, 7 Apr 2015 20:50:25 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay3.corp.sgi.com (Postfix) with ESMTP id 5123FAC003
for ; Tue, 7 Apr 2015 18:50:22 -0700 (PDT)
X-ASG-Debug-ID: 1428457820-04cb6c1cc785350001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id 1HxzcHdzaZKjFEIJ (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 07 Apr 2015 18:50:21 -0700 (PDT)
X-Barracuda-Envelope-From: fche@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.28
X-ASG-Whitelist: Client
Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t381oFpB015025
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL);
Tue, 7 Apr 2015 21:50:16 -0400
Received: from fche.csb (vpn-239-102.phx2.redhat.com [10.3.239.102])
by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t381oEMj015306;
Tue, 7 Apr 2015 21:50:15 -0400
Received: by fche.csb (Postfix, from userid 2569)
id 86C2B5869E; Tue, 7 Apr 2015 21:50:12 -0400 (EDT)
To: Paul Smith
Cc: Nathan Scott , pcp@oss.sgi.com, chandana@desilva.id.au
Subject: Re: Trying out ElasticSearch PMDA for the first time
References: <1427957070.8765.30.camel@desilva.id.au>
<1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com>
<1428383139.24854.1.camel@desilva.id.au>
<882410516.13878102.1428446368567.JavaMail.zimbra@redhat.com>
X-ASG-Orig-Subj: Re: Trying out ElasticSearch PMDA for the first time
From: fche@redhat.com (Frank Ch. Eigler)
Date: Tue, 07 Apr 2015 21:50:12 -0400
In-Reply-To: (Paul Smith's message of "Wed, 8 Apr 2015 09:21:58 +1000")
Message-ID:
User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-Barracuda-Connect: mx1.redhat.com[209.132.183.28]
X-Barracuda-Start-Time: 1428457821
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
Paul Smith writes:
> Hi, almost certain the current PMDA won't work with the later
> version of ES. [...]
While there appears to exist no pcpqa for this pmda, this episode is
another example of why pcp/pmda testing against real live host
software should be considered the gold standard (so we can notice
obsolescence or incompatibility), rather than synthetic/snapshotted
artifacts (which can give false assurance).
> The 'good' news is that the current version of ES has a very nice
> simple _cat API (see [1]) [...]
See also dsmith/dev's json pmda. It may take even less work to write
some json-metadata for the interesting-version elasticsearch json
stats, than to update|rewrite the old elasticsearch pmda.
- FChE
From rdelval1@binghamton.edu Tue Apr 7 21:12:34 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id 9C4447F78
for ; Tue, 7 Apr 2015 21:12:34 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay3.corp.sgi.com (Postfix) with ESMTP id 392D0AC003
for ; Tue, 7 Apr 2015 19:12:30 -0700 (PDT)
X-ASG-Debug-ID: 1428459147-04bdf063219f890001-S8gJnT
Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by cuda.sgi.com with ESMTP id mi8F5X9q076bKl2t (version=TLSv1 cipher=RC4-SHA bits=128 verify=NO) for ; Tue, 07 Apr 2015 19:12:27 -0700 (PDT)
X-Barracuda-Envelope-From: rdelval1@binghamton.edu
X-Barracuda-Apparent-Source-IP: 209.85.214.169
Received: by obbgh1 with SMTP id gh1so113045523obb.1
for ; Tue, 07 Apr 2015 19:12:27 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc:content-type;
bh=Mynx0DJj2FJKeQtxS3nyKLzCZ7tUlTWGNzfaXCWqyZQ=;
b=VZnJ19IZbtPS45b6qNBYa774XMaHVjXoyebr02/YZCL0txZowHjB8094WZewBwUONp
UTa6cTWgOt37nLCaq7W+kIbvUHQ7dT8DN8EWBNJl3xNAIUqeTrw384VMUjaIxltcqYRn
QiPeopydYk1UsJ54lGdM+/LT0i4SHg++p8l+kS7ayjwniXRuOSZpcFRUNeRXwzzlW4SL
WYTQiJbGzNUcO+gOCh9V5Htvuf4zQQZQOoqWBJfhMtD3vyMFDoJDKEVzLy+F3E1YHT7n
2BIuWPjUeBYml7qXsdAfVd+iFLS6M3EWONiy7kiHW9Eosc179NYI5Y5MfogKZyMzRbqa
TZ7Q==
X-Gm-Message-State: ALoCoQk8Ujtk9NRrbry7PadrHpJmFurWJDJqGnbneiYlbjzzuC3O5oVcqXC9F/g7wsbZuuSUURA3
X-Received: by 10.182.33.98 with SMTP id q2mr29261139obi.79.1428459146978;
Tue, 07 Apr 2015 19:12:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.202.111.1 with HTTP; Tue, 7 Apr 2015 19:12:06 -0700 (PDT)
In-Reply-To: <1292025640.13182460.1428377292321.JavaMail.zimbra@redhat.com>
References:
<1292025640.13182460.1428377292321.JavaMail.zimbra@redhat.com>
From: Renan DelValle
Date: Tue, 7 Apr 2015 22:12:06 -0400
Message-ID:
Subject: Re: [pcp] Installing perfevents on Ubuntu 14.04
To: Nathan Scott
X-ASG-Orig-Subj: Re: [pcp] Installing perfevents on Ubuntu 14.04
Cc: Joseph White , pcp@oss.sgi.com,
Madhusudhan Govindaraju , Jessica L Hartog
Content-Type: text/plain; charset=UTF-8
X-Barracuda-Connect: mail-ob0-f169.google.com[209.85.214.169]
X-Barracuda-Start-Time: 1428459147
X-Barracuda-Encrypted: RC4-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17657
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
Hi Nathan,
Thanks for the reply. I was able to get in touch with Joe White a day
or two ago and he told me to do the same thing which allowed me to at
least install it.
Since the version of PCP in the Ubuntu 14.04 repository is an earlier
version that did not include perfevent I had to install from source.
So now the next biggest hurdle is the fact that the servers CPUs we
have are Haswell-EP based.
Although the newest libpfm4 supports Haswell-EP, unfortunately, the
linux kernel (even the mainline) doesn't detect this processor model
(63) as having RAPL support.
Thus to get the intel_rapl module in the kernel to detect that the
Haswell-EP support, one has to modify the kernel and recompile it to
support the processor model, otherwise perf events for RAPL will not
be activated.
To complicate things a bit more, Intel changed some things about RAPL
for Haswell. They removed the ability to get energy per core
(https://software.intel.com/fr-fr/forums/topic/542271) and have set
unit of measurements for some domains to be static
(https://software.intel.com/en-us/forums/topic/535025).
Jacob Pan has submitted a patch for the latter which has made it into
the mainline kernel. (https://lkml.org/lkml/2015/3/20/582)
Hopefully this helps someone else trying to get PCP to work with
Haswell-EP server processors.
-Renan
On Mon, Apr 6, 2015 at 11:28 PM, Nathan Scott wrote:
> Hi Renan,
>
> ----- Original Message -----
>> Hi,
>>
>> I've installed PCP successfully through the apt package manager,
>> however, there is no folder "perfevent" inside of /var/lib/pcp/pdmas
>>
>> I've tried downloading, compiling, and installing 3.10.3 from github,
>> but the perfevent folder is still not included in the $PCP_PMDAS_DIR
>> .
>
> You'll need the libpfm4-dev deb installed, otherwise building perfevent
> is switched off by configure.ac via...
>
> AC_CHECK_LIB([pfm], [pfm_get_os_event_encoding],
> [pfm_libs="-lpfm"],
> [enable_perfevent=false])
> AC_CHECK_HEADERS([perfmon/pfmlib_perf_event.h], [], [enable_perfevent=false])
>
>
> (Joe, do you want to add packaging for this PMDA in debian/* to help out
> the punters? See debian/pcp-pmda-infiniband* for an example, as well as
> the control and rules files below debian/).
>
> cheers.
>
> --
> Nathan
From nscott@redhat.com Tue Apr 7 23:47:22 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 24FA47F87
for ; Tue, 7 Apr 2015 23:47:22 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay1.corp.sgi.com (Postfix) with ESMTP id 057F88F8070
for ; Tue, 7 Apr 2015 21:47:21 -0700 (PDT)
X-ASG-Debug-ID: 1428468436-04bdf06322a6b50001-S8gJnT
Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by cuda.sgi.com with ESMTP id zbIEkIdoB6VAKoDK (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 07 Apr 2015 21:47:17 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.39
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t384lDC5018729;
Wed, 8 Apr 2015 00:47:13 -0400
Date: Wed, 8 Apr 2015 00:47:13 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: Renan DelValle
Cc: Joseph White , pcp@oss.sgi.com,
Madhusudhan Govindaraju ,
Jessica L Hartog
Message-ID: <1323886042.14045793.1428468433248.JavaMail.zimbra@redhat.com>
In-Reply-To:
References: <1292025640.13182460.1428377292321.JavaMail.zimbra@redhat.com>
Subject: Re: [pcp] Installing perfevents on Ubuntu 14.04
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] Installing perfevents on Ubuntu 14.04
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.1]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: Installing perfevents on Ubuntu 14.04
Thread-Index: lQnK0NgFNCaBHoOcrbxb06p8XjgkbA==
X-Barracuda-Connect: mx6-phx2.redhat.com[209.132.183.39]
X-Barracuda-Start-Time: 1428468436
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17662
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
----- Original Message -----
> [...]
> Hopefully this helps someone else trying to get PCP to work with
> Haswell-EP server processors.
Interesting stuff - thanks for sharing the details Renan.
cheers.
--
Nathan
From kenj@internode.on.net Wed Apr 8 00:14:49 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15])
by oss.sgi.com (Postfix) with ESMTP id BD8447F88
for ; Wed, 8 Apr 2015 00:14:49 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay3.corp.sgi.com (Postfix) with ESMTP id 58FD7AC003
for ; Tue, 7 Apr 2015 22:14:46 -0700 (PDT)
X-ASG-Debug-ID: 1428470082-04bdf06322a72d0001-S8gJnT
Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by cuda.sgi.com with ESMTP id mzRmhbKxSto4G4D8 for ; Tue, 07 Apr 2015 22:14:43 -0700 (PDT)
X-Barracuda-Envelope-From: kenj@internode.on.net
X-Barracuda-Apparent-Source-IP: 150.101.137.141
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2DoAQB6uCRVPKEh0XYNT4NaXIMVgy2/BogDAQEBAQEBBwEBAQE4hQNVMAYCBRYLAgsDAgECATEOGQYCAQG8MnCXFYEhjyOCUoFFBYYejk6aaoQjXYJDAQEB
Received: from ppp118-209-33-161.lns20.mel4.internode.on.net (HELO [192.168.1.100]) ([118.209.33.161])
by ipmail04.adl6.internode.on.net with ESMTP; 08 Apr 2015 14:44:41 +0930
Message-ID: <5524B9D4.4080708@internode.on.net>
Date: Wed, 08 Apr 2015 15:17:08 +1000
From: Ken McDonell
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: pcp@oss.sgi.com
Subject: pcp updates
Content-Type: text/plain; charset=utf-8
X-ASG-Orig-Subj: pcp updates
Content-Transfer-Encoding: 7bit
X-Barracuda-Connect: ipmail04.adl6.internode.on.net[150.101.137.141]
X-Barracuda-Start-Time: 1428470082
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17662
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
Changes committed to git://git.pcp.io/kenj/pcp master
Ken McDonell (5):
libpcp/interp.c: refactoring
libpcp/interp.c: small changes
qa/group: add 907 to the pmdumplog group
pmdumplog: new options and new log reading logic
qa/135: add some diagnostic output to 135.full
man/man1/pmdumplog.1 | 32 ++++++++-
qa/135 | 13 +++
qa/177 | 2
qa/177.out | 2
qa/180.out.1 | 2
qa/180.out.2 | 2
qa/180.out.3 | 2
qa/787 | 29 +++++---
qa/787.out | 6 -
qa/921 | 71 ++++++++++++++++++++
qa/921.out | 60 +++++++++++++++++
qa/group | 3
src/libpcp/src/interp.c | 162 ++++++++++++++++++++++++++++------------------
src/pmdumplog/pmdumplog.c | 95 ++++++++++++++++++++++----
14 files changed, 381 insertions(+), 100 deletions(-)
Details ...
commit 739476fe1e98692cc420ac623a30a5cced159ec0
Author: Ken McDonell
Date: Wed Apr 8 15:14:17 2015 +1000
qa/135: add some diagnostic output to 135.full
commit 6dffb718b2e8866a4a6625a02c0accb12817eabb
Author: Ken McDonell
Date: Wed Apr 8 14:50:58 2015 +1000
pmdumplog: new options and new log reading logic
New options -M (force mark records to be reported) and -xx (report
timestamps as offset in seconds from the start of the archive).
But the more substantive change is to replace calls to pmFetch()
and pmFetchArchive() with calls to __pmLogFetch() ... the lower
level interface gives us a better chance of seeing what's really
in the archive.
commit 329e6a5b9a1512d65a45653461b0efa4f01ebee0
Author: Ken McDonell
Date: Wed Apr 8 09:35:37 2015 +1000
qa/group: add 907 to the pmdumplog group
commit 4fba8abcc018f5cfd72f94658b07140766bee029
Author: Ken McDonell
Date: Mon Apr 6 07:09:28 2015 +1000
libpcp/interp.c: small changes
- reworked the handling of "undefined" values for the prior and next
regions before they have been searched
- provided some small performance improvements (and so QA output
changes)
- returned values remain the same
commit c7b3d77a57e204cd71fab25747791669db7df710
Author: Ken McDonell
Date: Fri Apr 3 07:15:13 2015 +1100
libpcp/interp.c: refactoring
Trying to improve the readability of the code without changing the
logic or functionality. This is in preparation for another round
of effort to improve performance when interpolating corner-case
archives (especially ones with lots of records and sparse
logging of some metrics).
From kenj@internode.on.net Wed Apr 8 00:20:07 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id E243D7F88
for ; Wed, 8 Apr 2015 00:20:07 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay1.corp.sgi.com (Postfix) with ESMTP id D12098F8049
for ; Tue, 7 Apr 2015 22:20:04 -0700 (PDT)
X-ASG-Debug-ID: 1428470402-04cb6c1cca8cdd0001-S8gJnT
Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by cuda.sgi.com with ESMTP id zMSSsruvmR0COPOt for ; Tue, 07 Apr 2015 22:20:02 -0700 (PDT)
X-Barracuda-Envelope-From: kenj@internode.on.net
X-Barracuda-Apparent-Source-IP: 150.101.137.141
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2DoAQCmuSRVPKEh0XYNT4NaXIMVgy2/BogDAQEBAQEBBwEBAQE4hQNVMAYCBRYLAgsDAgECATEnBgIBAbwpcJcUgSGPI4JSgUUFlGyaaoQjXYJDAQEB
Received: from ppp118-209-33-161.lns20.mel4.internode.on.net (HELO [192.168.1.100]) ([118.209.33.161])
by ipmail04.adl6.internode.on.net with ESMTP; 08 Apr 2015 14:49:38 +0930
Message-ID: <5524BAFD.6050009@internode.on.net>
Date: Wed, 08 Apr 2015 15:22:05 +1000
From: Ken McDonell
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: pcp@oss.sgi.com
Subject: pcp updates - and a small one
Content-Type: text/plain; charset=utf-8
X-ASG-Orig-Subj: pcp updates - and a small one
Content-Transfer-Encoding: 7bit
X-Barracuda-Connect: ipmail04.adl6.internode.on.net[150.101.137.141]
X-Barracuda-Start-Time: 1428470402
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17663
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
Changes committed to git://git.pcp.io/kenj/pcp master
Ken McDonell (1):
qa/368: fix error introduced in last commit
qa/368 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Details ...
commit 7c6d8a88b992499fcb26674a78e582ba3201a6f9
Author: Ken McDonell
Date: Wed Apr 8 15:20:21 2015 +1000
qa/368: fix error introduced in last commit
From kenj@internode.on.net Wed Apr 8 02:56:30 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 3C2DC29E01
for ; Wed, 8 Apr 2015 02:56:30 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id 2A3508F8070
for ; Wed, 8 Apr 2015 00:56:29 -0700 (PDT)
X-ASG-Debug-ID: 1428479784-04cbb056b1b7700001-S8gJnT
Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by cuda.sgi.com with ESMTP id l2ZVPWCSDmz9FfMZ for ; Wed, 08 Apr 2015 00:56:24 -0700 (PDT)
X-Barracuda-Envelope-From: kenj@internode.on.net
X-Barracuda-Apparent-Source-IP: 150.101.137.141
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2DBAQD53SRVPKEh0XYNT4NYXIMVgy2+eYd9AQEBAQEBBwEBAQE4hQQVQDAGAgUWCwILAwIBAgExJwYCAQG8PnCXF4EhjyOCUoFFBZRsmmqEI12CQwEBAQ
Received: from ppp118-209-33-161.lns20.mel4.internode.on.net (HELO [192.168.1.100]) ([118.209.33.161])
by ipmail04.adl6.internode.on.net with ESMTP; 08 Apr 2015 17:26:23 +0930
Message-ID: <5524DFB9.6030508@internode.on.net>
Date: Wed, 08 Apr 2015 17:58:49 +1000
From: Ken McDonell
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: pcp@oss.sgi.com
Subject: pcp updates - qa nit
Content-Type: text/plain; charset=utf-8; format=flowed
X-ASG-Orig-Subj: pcp updates - qa nit
Content-Transfer-Encoding: 7bit
X-Barracuda-Connect: ipmail04.adl6.internode.on.net[150.101.137.141]
X-Barracuda-Start-Time: 1428479784
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17666
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
Changes committed to git://git.pcp.io/kenj/pcp master
Ken McDonell (1):
qa/657: echo -e does not work for some sh(1) variants
qa/657 | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Details ...
commit 5679147407e956185dedb80be3297b65ea03d245
Author: Ken McDonell
Date: Wed Apr 8 17:56:50 2015 +1000
qa/657: echo -e does not work for some sh(1) variants
sh is not bash
From nscott@redhat.com Wed Apr 8 02:59:35 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 46E4829E01
for ; Wed, 8 Apr 2015 02:59:35 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id 329798F8084
for ; Wed, 8 Apr 2015 00:59:35 -0700 (PDT)
X-ASG-Debug-ID: 1428479972-04cbb056b1b7810001-S8gJnT
Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by cuda.sgi.com with ESMTP id nvKaWgjBDznUwtim (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 08 Apr 2015 00:59:33 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.25
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t387xWPK013149
for ; Wed, 8 Apr 2015 03:59:32 -0400
Date: Wed, 8 Apr 2015 03:59:32 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: pcp
Message-ID: <1842133996.14114660.1428479972642.JavaMail.zimbra@redhat.com>
In-Reply-To: <600472624.14110902.1428479689163.JavaMail.zimbra@redhat.com>
Subject: QA and bugfix focus
MIME-Version: 1.0
X-ASG-Orig-Subj: QA and bugfix focus
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.1]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: QA and bugfix focus
Thread-Index: OefrqdIKOt9c38lmtMNdhCkL/LNvEA==
X-Barracuda-Connect: mx4-phx2.redhat.com[209.132.183.25]
X-Barracuda-Start-Time: 1428479973
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17666
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Hi all,
Just a friendly reminder that we are in the week long quiet
time in the leadup to 3.10.4 - if you could focus on QA work
and fixing bugs at this stage, that would be most excellent.
There are several must-fix bugs on the release list already,
and several other possibles needing further investigation -
let me know if you're looking for something to do.
cheers.
--
Nathan
From kenj@internode.on.net Wed Apr 8 16:14:03 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id CC6757F67
for ; Wed, 8 Apr 2015 16:14:03 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay1.corp.sgi.com (Postfix) with ESMTP id 9ED698F8035
for ; Wed, 8 Apr 2015 14:14:00 -0700 (PDT)
X-ASG-Debug-ID: 1428527634-04bdf06321e7510001-S8gJnT
Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by cuda.sgi.com with ESMTP id AGMPAK7WCXiwKnc1 for ; Wed, 08 Apr 2015 14:13:54 -0700 (PDT)
X-Barracuda-Envelope-From: kenj@internode.on.net
X-Barracuda-Apparent-Source-IP: 150.101.137.145
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2DwAQB3mSVVPKEh0XYNT4NaXIMVgy2+fYgBAQEBAQEBBwEBAQE4hQRVMAYCBRYLAgsDAgECATEnBgIBAb4OcJcCgSGPI4JSgUUFlGyaaoQjXYJDAQEB
Received: from ppp118-209-33-161.lns20.mel4.internode.on.net (HELO [192.168.1.100]) ([118.209.33.161])
by ipmail06.adl6.internode.on.net with ESMTP; 09 Apr 2015 06:43:30 +0930
Message-ID: <55259A8E.9070508@internode.on.net>
Date: Thu, 09 Apr 2015 07:15:58 +1000
From: Ken McDonell
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: pcp@oss.sgi.com
Subject: pcp updates - qa and libpcp for qa
Content-Type: text/plain; charset=utf-8
X-ASG-Orig-Subj: pcp updates - qa and libpcp for qa
Content-Transfer-Encoding: 7bit
X-Barracuda-Connect: ipmail06.adl6.internode.on.net[150.101.137.145]
X-Barracuda-Start-Time: 1428527634
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17683
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
Changes committed to git://git.pcp.io/kenj/pcp master
Ken McDonell (3):
libpcp/logutil.c: tighten error handling in __pmGetArchiveEnd()
qa/valgrind: more suppressions for Debian 6.0.9
qa/566: send all diagnostic to 566.full
qa/566 | 48 ++++++++---------
qa/valgrind-suppress-3.6.0.SVN-Debian | 91 ++++++++++++++++++++++++++--------
src/libpcp/src/logutil.c | 16 ++++-
3 files changed, 108 insertions(+), 47 deletions(-)
Details ...
commit 5a4665c93c9a658448c0233fa9a37d1dee38d72a
Author: Ken McDonell
Date: Thu Apr 9 07:13:45 2015 +1000
qa/566: send all diagnostic to 566.full
$seq.full does not work after a cd ... $here/$seq.full is much
better.
commit ca0db930ccad442adbd1fd62139c2a7cfd155bb3
Author: Ken McDonell
Date: Thu Apr 9 07:12:00 2015 +1000
qa/valgrind: more suppressions for Debian 6.0.9
The code below dlopen() is just broken on this platform ... more
bizarre suppressions added.
commit 0df88367ba98ba56f197b5c44c13b57ba09096f9
Author: Ken McDonell
Date: Thu Apr 9 07:09:01 2015 +1000
libpcp/logutil.c: tighten error handling in __pmGetArchiveEnd()
qa/566 with bad archives was exposing some flakey logic when
trying to get the end of the archive timestamp and some of the
archive volumes are missing or dodgey.
From wwwrun@oss.sgi.com Wed Apr 8 18:14:17 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,NO_RELAYS
autolearn=ham version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: by oss.sgi.com (Postfix, from userid 30)
id 3DFFB7F81; Wed, 8 Apr 2015 18:14:17 -0500 (CDT)
From: bugzilla-daemon@oss.sgi.com
To: pcp@oss.sgi.com
Subject: [Bug 1067] linux pmda does too much work for network.interface
queries
Date: Wed, 08 Apr 2015 23:14:17 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Classification: Unclassified
X-Bugzilla-Product: pcp
X-Bugzilla-Component: pcp
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: cltorrespr@gmail.com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: pcp@kenj.com.au
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID:
In-Reply-To:
References:
Content-Type: multipart/alternative; boundary="1428534857.1561DaC2.16755"; charset="us-ascii"
X-Bugzilla-URL: http://oss.sgi.com/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
--1428534857.1561DaC2.16755
Date: Wed, 8 Apr 2015 18:14:17 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
http://oss.sgi.com/bugzilla/show_bug.cgi?id=1067
--- Comment #1 from Carlos L. Torres ---
Created attachment 327
--> http://oss.sgi.com/bugzilla/attachment.cgi?id=327&action=edit
strace_pmdalinux
--
You are receiving this mail because:
You are on the CC list for the bug.
--1428534857.1561DaC2.16755
Date: Wed, 8 Apr 2015 18:14:17 -0500
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
You are receiving this mail because:
- You are on the CC list for the bug.
--1428534857.1561DaC2.16755--
From wwwrun@oss.sgi.com Wed Apr 8 18:17:18 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,NO_RELAYS
autolearn=ham version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: by oss.sgi.com (Postfix, from userid 30)
id DE3F929DFC; Wed, 8 Apr 2015 18:17:18 -0500 (CDT)
From: bugzilla-daemon@oss.sgi.com
To: pcp@oss.sgi.com
Subject: [Bug 1067] linux pmda does too much work for network.interface
queries
Date: Wed, 08 Apr 2015 23:17:18 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Classification: Unclassified
X-Bugzilla-Product: pcp
X-Bugzilla-Component: pcp
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: cltorrespr@gmail.com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: pcp@kenj.com.au
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: cc
Message-ID:
In-Reply-To:
References:
Content-Type: multipart/alternative; boundary="1428535038.7Af222.17144"; charset="us-ascii"
X-Bugzilla-URL: http://oss.sgi.com/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
--1428535038.7Af222.17144
Date: Wed, 8 Apr 2015 18:17:18 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
http://oss.sgi.com/bugzilla/show_bug.cgi?id=1067
Carlos L. Torres changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cltorrespr@gmail.com
--- Comment #2 from Carlos L. Torres ---
attachment 327 shows strace output of process pmdalinux when requesting the
following metrics over pmwebd, from a host with 25 interfaces (bridges, bonds).
network.interface.in.bytes,
network.interface.out.bytes,
network.interface.in.packets,
network.interface.out.packets
It takes more than 1 second to return a response, and pmwebd times out when
using the default time-out for PMCD_REQUEST in pmwebd.options of 1 second.
--
You are receiving this mail because:
You are on the CC list for the bug.
--1428535038.7Af222.17144
Date: Wed, 8 Apr 2015 18:17:18 -0500
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Carlos L. Torres
changed
bug 1067
| What |
Removed |
Added |
| CC |
|
cltorrespr@gmail.com
|
Comment # 2
on bug 1067
from Carlos L. Torres
attachment 327 [details] shows strace output of process pmdalinux when requesting the
following metrics over pmwebd, from a host with 25 interfaces (bridges, bonds).
network.interface.in.bytes,
network.interface.out.bytes,
network.interface.in.packets,
network.interface.out.packets
It takes more than 1 second to return a response, and pmwebd times out when
using the default time-out for PMCD_REQUEST in pmwebd.options of 1 second.
You are receiving this mail because:
- You are on the CC list for the bug.
--1428535038.7Af222.17144--
From nscott@redhat.com Wed Apr 8 19:23:06 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 545387F72
for ; Wed, 8 Apr 2015 19:23:06 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay1.corp.sgi.com (Postfix) with ESMTP id 420C18F8037
for ; Wed, 8 Apr 2015 17:23:03 -0700 (PDT)
X-ASG-Debug-ID: 1428538977-04cb6c1cc8d6300001-S8gJnT
Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by cuda.sgi.com with ESMTP id ZRYAlFOur7zvYSb2 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 08 Apr 2015 17:22:58 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.39
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t390MqYp015575;
Wed, 8 Apr 2015 20:22:53 -0400
Date: Wed, 8 Apr 2015 20:22:52 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: chandana@desilva.id.au, Paul Smith
Cc: pcp@oss.sgi.com
Message-ID: <727464076.14748488.1428538972267.JavaMail.zimbra@redhat.com>
In-Reply-To: <1428456523.6304.35.camel@desilva.id.au>
References: <1427957070.8765.30.camel@desilva.id.au> <1446889888.13182385.1428377259368.JavaMail.zimbra@redhat.com> <1428383139.24854.1.camel@desilva.id.au> <882410516.13878102.1428446368567.JavaMail.zimbra@redhat.com> <211702903.13890461.1428449536086.JavaMail.zimbra@redhat.com> <1428456523.6304.35.camel@desilva.id.au>
Subject: Re: [pcp] Trying out ElasticSearch PMDA for the first time
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] Trying out ElasticSearch PMDA for the first time
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.10]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: Trying out ElasticSearch PMDA for the first time
Thread-Index: lpVC7ISUQ6PIZHm1FVie4fgU0jisxQ==
X-Barracuda-Connect: mx6-phx2.redhat.com[209.132.183.39]
X-Barracuda-Start-Time: 1428538978
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17691
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Hi guys,
----- Original Message -----
> Nathan and Paul,
>
> Many thanks and the cat api looks very nice. It will even help us work
> out some performance issues ( > 300k events per minute).
>
> I will try and look through the PMDA and work out which of the GET's are
> failing, looking at the pminfo output it seems all of them are. So it is
> possible that they have been removed from the API, as Paul says.
Installed latest elasticsearch (1.5) and AFAICT they all seem to be there -
the PMDA functions fine here and values are returned after a minimal setup
(so no actual indices, single node cluster, etc) ... hmm, so not clear what
is going on in your case there Chandana.
When I said earlier the pmda was "same as issuing a curl" - thats not quite
correct. The PMDA uses the perl lightweight http client (LWP::UserAgent is
the name of the module - perhaps it has global configuration state somewhere
outside the PMDA?). Or do you have elasticsearch on a non-default port?
cheers.
--
Nathan
From pcp-announce-bounces@oss.sgi.com Thu Apr 9 02:31:02 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=RP_MATCHES_RCVD autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from oss.sgi.com (localhost [IPv6:::1])
by oss.sgi.com (Postfix) with ESMTP id 03BB47F8D;
Thu, 9 Apr 2015 02:31:02 -0500 (CDT)
X-Original-To: pcp-announce@oss.sgi.com
Delivered-To: pcp-announce@oss.sgi.com
Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29])
by oss.sgi.com (Postfix) with ESMTP id 0137D7F8B
for ; Thu, 9 Apr 2015 02:31:00 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay2.corp.sgi.com (Postfix) with ESMTP id D99A4304048
for ; Thu, 9 Apr 2015 00:30:59 -0700 (PDT)
X-ASG-Debug-ID: 1428564649-04cbb056b31514c0001-87ZIJf
Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by
cuda.sgi.com with ESMTP id imQFSGGBlzDc1BTj (version=TLSv1
cipher=AES256-SHA bits=256 verify=NO) for ;
Thu, 09 Apr 2015 00:30:50 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.39
Received: from zmail20.collab.prod.int.phx2.redhat.com
(zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t397Unif021870
for ; Thu, 9 Apr 2015 03:30:49 -0400
Date: Thu, 9 Apr 2015 03:30:49 -0400 (EDT)
From: Nathan Scott
To: pcp-announce
Message-ID: <1223591011.14871478.1428564649079.JavaMail.zimbra@redhat.com>
In-Reply-To: <174950250.14862829.1428563357363.JavaMail.zimbra@redhat.com>
MIME-Version: 1.0
X-ASG-Orig-Subj: Vector
X-Originating-IP: [10.64.50.10]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: Vector
Thread-Index: ju7mwT2jnUzuu6LxwEC3m3tU/aebNw==
X-Barracuda-Connect: mx6-phx2.redhat.com[209.132.183.39]
X-Barracuda-Start-Time: 1428564649
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No,
SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0
QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX,
THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17702
Rule breakdown below
pts rule name description
---- ----------------------
--------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Subject: [pcp-announce] Vector
X-BeenThere: pcp-announce@oss.sgi.com
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Nathan Scott
List-Id: Performance Co-Pilot announcements
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: pcp-announce-bounces@oss.sgi.com
Sender: pcp-announce-bounces@oss.sgi.com
Hi all,
If you've not come across it already, please give this new PCP web interface
from the good folks at Netflix a try:
http://techblog.netflix.com/2015/04/introducing-vector-netflixs-on-host.html
For the PCP developers here, lets get behind this effort and resolve as many
PCP issues uncovered here as we can for the pcp-3.10.4 release (scheduled for
the middle of next week) - thanks!
cheers.
--
Nathan
_______________________________________________
pcp-announce mailing list
pcp-announce@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/pcp-announce
From nscott@redhat.com Thu Apr 9 05:29:56 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id F30697F8C
for ; Thu, 9 Apr 2015 05:29:55 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay1.corp.sgi.com (Postfix) with ESMTP id C8FE38F8049
for ; Thu, 9 Apr 2015 03:29:55 -0700 (PDT)
X-ASG-Debug-ID: 1428575388-04bdf06321141cc0001-S8gJnT
Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by cuda.sgi.com with ESMTP id WfTgufobMWC5zqdM (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 09 Apr 2015 03:29:48 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.24
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t39ATmbV027151
for ; Thu, 9 Apr 2015 06:29:48 -0400
Date: Thu, 9 Apr 2015 06:29:48 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: pcp
Message-ID: <765204112.14979385.1428575388121.JavaMail.zimbra@redhat.com>
Subject: pcp updates: qa, docs, fixes
MIME-Version: 1.0
X-ASG-Orig-Subj: pcp updates: qa, docs, fixes
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.10]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: pcp updates: qa, docs, fixes
Thread-Index: 89n5/J/X7qC+wjHVw6sTOEVZTFdS6g==
X-Barracuda-Connect: mx3-phx2.redhat.com[209.132.183.24]
X-Barracuda-Start-Time: 1428575388
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17706
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Changes committed to git://git.pcp.io/pcp.git master
Ken McDonell (10):
libpcp/interp.c: refactoring
libpcp/interp.c: small changes
qa/group: add 907 to the pmdumplog group
pmdumplog: new options and new log reading logic
qa/135: add some diagnostic output to 135.full
qa/368: fix error introduced in last commit
qa/657: echo -e does not work for some sh(1) variants
libpcp/logutil.c: tighten error handling in __pmGetArchiveEnd()
qa/valgrind: more suppressions for Debian 6.0.9
qa/566: send all diagnostic to 566.full
Nathan Scott (5):
configure: fix AC_MSG_ERROR parameter passing
packaging: add missing pcp-webapi dep for pcp-webjs
elasticsearch: add some diagnostics to aid debugging
docs: fix some doc errors pointed out by frew on IRC
pmchart: fix metric/host selection for containers
Marko Myllynen (1):
ds389 pmdas: simplify data structure - fixes a pasto/braino
build/rpm/fedora.spec | 2
configure | 12
configure.ac | 50
images/container.png |binary
images/container.svg | 2014 +++++++++++++++++++++++++++
man/html/contacts.html | 4
man/man1/pmdumplog.1 | 32
qa/135 | 13
qa/177 | 2
qa/177.out | 2
qa/180.out.1 | 2
qa/180.out.2 | 2
qa/180.out.3 | 2
qa/368 | 4
qa/566 | 48
qa/657 | 7
qa/787 | 29
qa/787.out | 6
qa/921 | 71
qa/921.out | 60
qa/group | 3
qa/valgrind-suppress-3.6.0.SVN-Debian | 91 -
src/libpcp/src/interp.c | 162 +-
src/libpcp/src/logutil.c | 16
src/libpcp_qed/src/qed_fileiconprovider.cpp | 3
src/libpcp_qed/src/qed_fileiconprovider.h | 5
src/libpcp_qmc/src/qmc_source.cpp | 34
src/libpcp_qmc/src/qmc_source.h | 6
src/pmchart/chart.cpp | 20
src/pmchart/chartdialog.cpp | 4
src/pmchart/namespace.cpp | 33
src/pmchart/namespace.h | 5
src/pmchart/openviewdialog.cpp | 38
src/pmchart/openviewdialog.h | 4
src/pmchart/pmchart.cpp | 2
src/pmchart/pmchart.qrc | 1
src/pmchart/view.cpp | 3
src/pmdas/ds389/pmdads389.pl | 8
src/pmdas/ds389log/pmdads389log.pl | 15
src/pmdas/elasticsearch/pmdaelasticsearch.pl | 11
src/pmdumplog/pmdumplog.c | 95 +
41 files changed, 2667 insertions(+), 254 deletions(-)
From dsmith@redhat.com Thu Apr 9 10:26:00 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id A695F7F91
for ; Thu, 9 Apr 2015 10:26:00 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay1.corp.sgi.com (Postfix) with ESMTP id 8DD848F8040
for ; Thu, 9 Apr 2015 08:25:57 -0700 (PDT)
X-ASG-Debug-ID: 1428593153-04bdf063231571a0001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id 7b4EE1zH4ARmCr0n (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 09 Apr 2015 08:25:53 -0700 (PDT)
X-Barracuda-Envelope-From: dsmith@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.28
X-ASG-Whitelist: Client
Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26])
by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t39FPrDQ023008
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
for ; Thu, 9 Apr 2015 11:25:53 -0400
Received: from t540p.usersys.redhat.com (dhcp-10-15-1-2.hsv.redhat.com [10.15.1.2])
by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t39FPp1q018661
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
Thu, 9 Apr 2015 11:25:53 -0400
Message-ID: <552699FE.7040801@redhat.com>
Date: Thu, 09 Apr 2015 10:25:50 -0500
From: David Smith
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: Nathan Scott
CC: pcp
Subject: Re: [pcp] JSON PMDA
References: <54F9F92D.4010202@redhat.com> <448002717.7934024.1427683964254.JavaMail.zimbra@redhat.com>
X-ASG-Orig-Subj: Re: [pcp] JSON PMDA
In-Reply-To: <448002717.7934024.1427683964254.JavaMail.zimbra@redhat.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26
X-Barracuda-Connect: mx1.redhat.com[209.132.183.28]
X-Barracuda-Start-Time: 1428593153
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
On 03/29/2015 09:52 PM, Nathan Scott wrote:
> Hi David,
>
> Noticed a couple of little things when we were looking at that install
> failure you saw recently...
>
> # pmParseUnitsStr() doesn't handle unicode
> utf8_units = units.encode("utf-8")
>
> this has been resolved below the API since you encountered this I think,
> so you should be able to safely remove that now and pass native strings
> around directly. Please let me know if not the case, cos there's a bug
> lurking there still then.
I got rid of the utf-8 encoding, and I get the following error (using
"count" as the unit):
PM_ERR_CONV Impossible value or scale conversion count
So, there must be a bug still lurking there.
> Also, the strategy for generating pmids and indom ids ...
>
> self.__pmda.indom_idx += 1
> self.__metric_idx += 1
> self.cluster_idx += 1
>
> ... needs to be deterministic, else bugs - see mail re dmcache/dmthin a
> little earlier for more details. IOW, restarting/reconfiguring the PMDA
> needs to ensure the same IDs are generated for the same metrics/indoms.
I couldn't find the email you were referring to, but I see the problem
with keeping the IDs the same for the same metrics/indoms. I'm not sure
I can think of a good scheme to fix that problem. Do any of the other
PMDAs solve this problem for non-static metrics? We could use a crypto
hash function, but we've only got 22-bits to encode the cluster/item in.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
From nscott@redhat.com Thu Apr 9 20:30:52 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 0FFB47F8E
for ; Thu, 9 Apr 2015 20:30:52 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id E31748F8040
for ; Thu, 9 Apr 2015 18:30:48 -0700 (PDT)
X-ASG-Debug-ID: 1428629445-04cbb056b3191490001-S8gJnT
Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) by cuda.sgi.com with ESMTP id ew5VZz5uR134phhC (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 09 Apr 2015 18:30:46 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.37
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3A1UiKT046485
for ; Thu, 9 Apr 2015 21:30:44 -0400
Date: Thu, 9 Apr 2015 21:30:44 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: pcp
Message-ID: <1154001552.15562681.1428629444682.JavaMail.zimbra@redhat.com>
In-Reply-To: <1100007876.15562526.1428629404270.JavaMail.zimbra@redhat.com>
Subject: pcp updates: configure script
MIME-Version: 1.0
X-ASG-Orig-Subj: pcp updates: configure script
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.11]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: pcp updates: configure script
Thread-Index: JeVTIxgxTX5MlFrqtrjl2ofe7f8T0A==
X-Barracuda-Connect: mx5-phx2.redhat.com[209.132.183.37]
X-Barracuda-Start-Time: 1428629445
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.02
X-Barracuda-Spam-Status: No, SCORE=0.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17731
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
Changes committed to git://git.pcp.io/pcp.git master
configure | 272 ++++++++++++++++++++++++++++++-----------------------------
configure.ac | 11 ++
2 files changed, 152 insertions(+), 131 deletions(-)
commit 1e7698cdd651cf1210013d0e4be9b284d353bdc8
Author: Nathan Scott
Date: Fri Apr 10 10:27:00 2015 +1000
build: add missing configure check for pkg-config requirement
Some folks trying out building PCP for subsequent Vector use have
reported obscure configure errors when they don't have pkg-config
installed. We use this unilaterally now, so we need to check for
it on the local system before using it. Make It So.
From nscott@redhat.com Thu Apr 9 21:58:29 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 604EF7F95
for ; Thu, 9 Apr 2015 21:58:29 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay1.corp.sgi.com (Postfix) with ESMTP id 456B98F8037
for ; Thu, 9 Apr 2015 19:58:29 -0700 (PDT)
X-ASG-Debug-ID: 1428634701-04cbb056b4193180001-S8gJnT
Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by cuda.sgi.com with ESMTP id ZKd1bpAnVlcFZKFL (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 09 Apr 2015 19:58:22 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.25
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t3A2wLnl027171;
Thu, 9 Apr 2015 22:58:21 -0400
Date: Thu, 9 Apr 2015 22:58:21 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: David Smith
Cc: pcp
Message-ID: <2139482617.15593599.1428634701360.JavaMail.zimbra@redhat.com>
In-Reply-To: <552699FE.7040801@redhat.com>
References: <54F9F92D.4010202@redhat.com> <448002717.7934024.1427683964254.JavaMail.zimbra@redhat.com> <552699FE.7040801@redhat.com>
Subject: Re: [pcp] JSON PMDA
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] JSON PMDA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.11]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: JSON PMDA
Thread-Index: Y913zHNgvdsy+6kWIs+vfQd6ei6EQQ==
X-Barracuda-Connect: mx4-phx2.redhat.com[209.132.183.25]
X-Barracuda-Start-Time: 1428634702
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.03
X-Barracuda-Spam-Status: No, SCORE=0.03 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=BSF_SC0_SA_TO_FROM_DOMAIN_MATCH, THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17733
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
0.01 BSF_SC0_SA_TO_FROM_DOMAIN_MATCH Sender Domain Matches Recipient
Domain
G'day David,
----- Original Message -----
> [...]
> I got rid of the utf-8 encoding, and I get the following error (using
> "count" as the unit):
>
> PM_ERR_CONV Impossible value or scale conversion count
>
> So, there must be a bug still lurking there.
>
Hmmm. Below the API the code looks like this:
@staticmethod
def pmParseUnitsStr(string):
if type(string) != type('') and type(string) != type(b''):
raise pmErr(c_api.PM_ERR_CONV, str(string))
if type(string) != type(b''):
string = string.encode('utf-8')
I'm not sure what you meant by 'using the "count" as unit' above - what's
the type of "count"? I guess its failing that check on the first line,
which is expecting either unicode or string of bytes.
> > ... needs to be deterministic, else bugs - see mail re dmcache/dmthin a
> > little earlier for more details. IOW, restarting/reconfiguring the PMDA
> > needs to ensure the same IDs are generated for the same metrics/indoms.
>
> I couldn't find the email you were referring to, but I see the problem
Oh, sorry, that was an obscure reference - this is the one I meant:
http://www.pcp.io/pipermail/pcp/2015-March/006876.html
> with keeping the IDs the same for the same metrics/indoms. I'm not sure
> I can think of a good scheme to fix that problem.
Nor I - unfortunately I don't think there's an easy answer here. :(
> Do any of the other
> PMDAs solve this problem for non-static metrics?
No, there aren't really many in the same class - other PMDAs either encode
fixed IDs (the vast majority), or do it poorly for small subsets of their
names (like the percpu interrupts metrics - known bug) ... and those latter
cases are hanging out for a real solution too. :)
In the case of MMV which is probably conceptually closest to this PMDA, the
numbering is pushed all the way out to the application, which encodes fixed
identifiers.
> We could use a crypto hash function,
Yeah - something like that - have a look at src/libpcp_pmda/src/cache.c as
thats how the instance cache number stability is achieved. Perhaps we can
extend that with additional APIs to help us out here.
If we start extending libpcp_pmda, we should also think about routines like
generate_pcp_name() and your name() validity checker - the folks at Buffalo
recently expressed need for those same interfaces for C PMDAs, so it would
be great to have a common implementation.
> but we've only got 22-bits to encode the cluster/item in.
Yeah. Actually that's another little limit lurking here I guess - each JSON
source can provide a max of 1024 metrics ("item" limits us, as cluster used
for distinguishing JSON sources)? I've seen that passed sometimes with some
large instrumented applications, but its infrequent. Just something else to
keep in mind here I guess, maybe the end hash/numbering solution can seek a
way to lift that restriction too, somehow.
cheers.
--
Nathan
From nscott@redhat.com Fri Apr 10 00:10:13 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111])
by oss.sgi.com (Postfix) with ESMTP id 458C17F98
for ; Fri, 10 Apr 2015 00:10:13 -0500 (CDT)
Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11])
by relay1.corp.sgi.com (Postfix) with ESMTP id 1540E8F8040
for ; Thu, 9 Apr 2015 22:10:09 -0700 (PDT)
X-ASG-Debug-ID: 1428642607-04bdf06320180dd0001-S8gJnT
Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) by cuda.sgi.com with ESMTP id Cv7VV3374i3NUapZ (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 09 Apr 2015 22:10:07 -0700 (PDT)
X-Barracuda-Envelope-From: nscott@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.37
Received: from zmail20.collab.prod.int.phx2.redhat.com (zmail20.collab.prod.int.phx2.redhat.com [10.5.83.23])
by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3A5A7EH016939;
Fri, 10 Apr 2015 01:10:07 -0400
Date: Fri, 10 Apr 2015 01:10:06 -0400 (EDT)
From: Nathan Scott
Reply-To: Nathan Scott
To: David Smith
Cc: pcp
Message-ID: <2037935605.15616473.1428642606665.JavaMail.zimbra@redhat.com>
In-Reply-To: <2139482617.15593599.1428634701360.JavaMail.zimbra@redhat.com>
References: <54F9F92D.4010202@redhat.com> <448002717.7934024.1427683964254.JavaMail.zimbra@redhat.com> <552699FE.7040801@redhat.com> <2139482617.15593599.1428634701360.JavaMail.zimbra@redhat.com>
Subject: Re: [pcp] JSON PMDA
MIME-Version: 1.0
X-ASG-Orig-Subj: Re: [pcp] JSON PMDA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.64.50.11]
X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF36 (Linux)/8.0.6_GA_5922)
Thread-Topic: JSON PMDA
Thread-Index: Y913zHNgvdsy+6kWIs+vfQd6ei6EQQSMg4lt
X-Barracuda-Connect: mx5-phx2.redhat.com[209.132.183.37]
X-Barracuda-Start-Time: 1428642607
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.03
X-Barracuda-Spam-Status: No, SCORE=0.03 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=BSF_SC0_SA_TO_FROM_DOMAIN_MATCH, THREAD_INDEX, THREAD_TOPIC
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.17735
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig==
0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...
0.01 BSF_SC0_SA_TO_FROM_DOMAIN_MATCH Sender Domain Matches Recipient
Domain
----- Original Message -----
> ----- Original Message -----
> > [...]
> > I got rid of the utf-8 encoding, and I get the following error (using
> > "count" as the unit):
> >
> > PM_ERR_CONV Impossible value or scale conversion count
> >
> > So, there must be a bug still lurking there.
> >
>
> Hmmm. Below the API the code looks like this:
>
> @staticmethod
> def pmParseUnitsStr(string):
> if type(string) != type('') and type(string) != type(b''):
> raise pmErr(c_api.PM_ERR_CONV, str(string))
> if type(string) != type(b''):
> string = string.encode('utf-8')
>
> I'm not sure what you meant by 'using the "count" as unit' above - what's
> the type of "count"? I guess its failing that check on the first line,
> which is expecting either unicode or string of bytes.
Tick, tick, tick ... neurons finally fire ... oh, I think I see what you meant
now - "count", as in the literal string "count", not a variable, heh. However
I'm still getting good results with that here:
$ python
Python 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pcp import pmapi
>>> import cpmapi as c_api
>>> context = pmapi.pmContext()
>>> context.pmParseUnitsStr("count")
(, 1.0)
>>> ^D
$ python3
Python 3.3.2 (default, Dec 4 2014, 12:49:00)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pcp import pmapi
>>> import cpmapi as c_api
>>> context = pmapi.pmContext()
>>> context.pmParseUnitsStr("count")
(, 1.0)
>>> ^D
I guess one of those fails with an exception for you locally?
cheers.
--
Nathan
From dsmith@redhat.com Fri Apr 10 09:11:20 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29])
by oss.sgi.com (Postfix) with ESMTP id E78AD7FAB
for ; Fri, 10 Apr 2015 09:11:20 -0500 (CDT)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
by relay2.corp.sgi.com (Postfix) with ESMTP id D4081304032
for ; Fri, 10 Apr 2015 07:11:17 -0700 (PDT)
X-ASG-Debug-ID: 1428675076-04cb6c1cc71795a0001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id Lhc0ZXae5h57EjvU (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 10 Apr 2015 07:11:16 -0700 (PDT)
X-Barracuda-Envelope-From: dsmith@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.28
X-ASG-Whitelist: Client
Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
by mx1.redhat.com (Postfix) with ESMTPS id EE3F38E6E8
for ; Fri, 10 Apr 2015 14:11:15 +0000 (UTC)
Received: from t540p.usersys.redhat.com (vpn-54-79.rdu2.redhat.com [10.10.54.79])
by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3AEBDd8015949
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
Fri, 10 Apr 2015 10:11:15 -0400
Message-ID: <5527DA01.50301@redhat.com>
Date: Fri, 10 Apr 2015 09:11:13 -0500
From: David Smith
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: Nathan Scott
CC: pcp
Subject: Re: [pcp] JSON PMDA
References: <54F9F92D.4010202@redhat.com> <448002717.7934024.1427683964254.JavaMail.zimbra@redhat.com> <552699FE.7040801@redhat.com> <2139482617.15593599.1428634701360.JavaMail.zimbra@redhat.com> <2037935605.15616473.1428642606665.JavaMail.zimbra@redhat.com>
X-ASG-Orig-Subj: Re: [pcp] JSON PMDA
In-Reply-To: <2037935605.15616473.1428642606665.JavaMail.zimbra@redhat.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-Barracuda-Connect: mx1.redhat.com[209.132.183.28]
X-Barracuda-Start-Time: 1428675076
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.15:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
On 04/10/2015 12:10 AM, Nathan Scott wrote:
> ----- Original Message -----
>> ----- Original Message -----
>>> [...]
>>> I got rid of the utf-8 encoding, and I get the following error (using
>>> "count" as the unit):
>>>
>>> PM_ERR_CONV Impossible value or scale conversion count
>>>
>>> So, there must be a bug still lurking there.
>>>
>>
>> Hmmm. Below the API the code looks like this:
>>
>> @staticmethod
>> def pmParseUnitsStr(string):
>> if type(string) != type('') and type(string) != type(b''):
>> raise pmErr(c_api.PM_ERR_CONV, str(string))
>> if type(string) != type(b''):
>> string = string.encode('utf-8')
>>
>> I'm not sure what you meant by 'using the "count" as unit' above - what's
>> the type of "count"? I guess its failing that check on the first line,
>> which is expecting either unicode or string of bytes.
>
> Tick, tick, tick ... neurons finally fire ... oh, I think I see what you meant
> now - "count", as in the literal string "count", not a variable, heh. However
> I'm still getting good results with that here:
>
> $ python
> Python 2.7.5 (default, Nov 3 2014, 14:26:24)
> [GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from pcp import pmapi
>>>> import cpmapi as c_api
>>>> context = pmapi.pmContext()
>>>> context.pmParseUnitsStr("count")
> (, 1.0)
>>>> ^D
>
> $ python3
> Python 3.3.2 (default, Dec 4 2014, 12:49:00)
> [GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from pcp import pmapi
>>>> import cpmapi as c_api
>>>> context = pmapi.pmContext()
>>>> context.pmParseUnitsStr("count")
> (, 1.0)
>>>> ^D
>
>
> I guess one of those fails with an exception for you locally?
Your example works fine:
>>> from pcp import pmapi
>>> context = pmapi.pmContext()
>>> context.pmParseUnitsStr("count")
(, 1.0)
But the following fails:
>>> context.pmParseUnitsStr(u'count')
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/python2.7/site-packages/pcp/pmapi.py", line 1927, in
pmParseUnitsStr
raise pmErr(c_api.PM_ERR_CONV, str(string))
pcp.pmapi.pmErr: PM_ERR_CONV Impossible value or scale conversion count
You weren't passing in a unicode string.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
From pevans@redhat.com Fri Apr 10 10:19:23 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29])
by oss.sgi.com (Postfix) with ESMTP id C57B87F8E
for ; Fri, 10 Apr 2015 10:19:23 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay2.corp.sgi.com (Postfix) with ESMTP id B09F6304039
for ; Fri, 10 Apr 2015 08:19:20 -0700 (PDT)
X-ASG-Debug-ID: 1428679155-04cbb056b11a8140001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id xXBErklGAKtrft8w (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 10 Apr 2015 08:19:16 -0700 (PDT)
X-Barracuda-Envelope-From: pevans@redhat.com
X-Barracuda-Apparent-Source-IP: 209.132.183.28
X-ASG-Whitelist: Client
Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3AFJFXV010506
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
for ; Fri, 10 Apr 2015 11:19:15 -0400
Received: from [10.36.6.64] (vpn1-6-64.ams2.redhat.com [10.36.6.64])
by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3AFJDIc027158;
Fri, 10 Apr 2015 11:19:14 -0400
Message-ID: <5527E9F0.2010909@redhat.com>
Date: Fri, 10 Apr 2015 16:19:12 +0100
From: Paul Evans
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Nathan Scott , pcp@oss.sgi.com
Subject: pcp updates: upgrade path fixes
Content-Type: text/plain; charset=utf-8; format=flowed
X-ASG-Orig-Subj: pcp updates: upgrade path fixes
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-Barracuda-Connect: mx1.redhat.com[209.132.183.28]
X-Barracuda-Start-Time: 1428679156
X-Barracuda-Encrypted: AES256-SHA
X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at sgi.com
X-Barracuda-BRTS-Status: 1
Hi,
As suggested by Nathan I have had a look at his patches for implementing the
update path from pmdadmcache to pmdadm and implemented the changes. The
updates have been tested on and work correctly for me on RHEL 6, Fedora
and Ubuntu 14.04.
There was a small bug in rc_pmcd with _pmda_enact() where we would change
from PCP_PMDA_DIR when running the current action and not revert back to the
directory (which was expected by _pmda_setup()) for moving to the next
_pmda_enact() action.
Changes committed to git://github.com/pauljevans/pcp.git master
build/rpm/pcp.spec.in | 11 +++++++++++
debian/pcp.postinst.tail | 11 +++++++++++
src/pmcd/rc_pmcd | 2 ++
3 files changed, 24 insertions(+)
commit 56b0a446db3f063bf1fb9d00cc8e6de4cb533ad2
Author: Paul Evans
Date: Fri Apr 10 16:00:19 2015 +0100
pcp: Fix current directory location issue in _pmda_setup() when
leaving enact
"Remove" and moving to enact "Install".
commit 6611297e70e111e07c65ef979bbc839dcabb5464
Author: Paul Evans
Date: Fri Apr 10 15:59:56 2015 +0100
pcp: Ensure that older pmdadmcache is removed and newer replacement
pmdadm is
installed as a replacement when updating release.
Cheers,
Paul
From fche@redhat.com Fri Apr 10 10:55:38 2015
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on oss.sgi.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.3.1
X-Original-To: pcp@oss.sgi.com
Delivered-To: pcp@oss.sgi.com
Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29])
by oss.sgi.com (Postfix) with ESMTP id E00067FA9
for ; Fri, 10 Apr 2015 10:55:38 -0500 (CDT)
Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25])
by relay2.corp.sgi.com (Postfix) with ESMTP id BA36030404E
for ; Fri, 10 Apr 2015 08:55:38 -0700 (PDT)
X-ASG-Debug-ID: 1428681337-04cbb056b21a9400001-S8gJnT
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id l94qwM4lawKEvytp (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for