From makc@iinet.net.au Sun Aug 2 01:26:30 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,URIBL_BLACK autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n726QS5b010012 for ; Sun, 2 Aug 2009 01:26:29 -0500 X-ASG-Debug-ID: 1249194435-2b3600b30000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from outbound.icp-qv1-irony-out2.iinet.net.au (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 95DEC1440A20 for ; Sat, 1 Aug 2009 23:27:16 -0700 (PDT) Received: from outbound.icp-qv1-irony-out2.iinet.net.au (outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107]) by cuda.sgi.com with ESMTP id KgBaBdERSGVZSdP2 for ; Sat, 01 Aug 2009 23:27:16 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAHAFfOdErL2Rwk/2dsb2JhbACVa7t5hBgFgjE X-IronPort-AV: E=Sophos;i="4.43,308,1246809600"; d="scan'208";a="545601943" Received: from unknown (HELO alma.crabbed.net) ([203.217.28.36]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 02 Aug 2009 14:27:13 +0800 Received: by alma.crabbed.net (Postfix, from userid 501) id E18D33B2C66; Sun, 2 Aug 2009 16:23:49 +1000 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19061.12533.869998.239643@iinet.net.au> Date: Sun, 2 Aug 2009 16:23:49 +1000 From: Max Matveev To: pcp@oss.sgi.com X-ASG-Orig-Subj: changing compiler with configure Subject: changing compiler with configure X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Barracuda-Connect: outbound.icp-qv1-irony-out2.iinet.net.au[203.59.1.107] X-Barracuda-Start-Time: 1249194437 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5054 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean It all started when I've tried to compile PCP on Solaris using Sun's compiler instead of the default CC: I was greated by messages like checking dlfcn.h usability... no checking dlfcn.h presence... yes configure: WARNING: dlfcn.h: present but cannot be compiled configure: WARNING: dlfcn.h: check for missing prerequisite headers? configure: WARNING: dlfcn.h: see the Autoconf documentation configure: WARNING: dlfcn.h: section "Present But Cannot Be Compiled" configure: WARNING: dlfcn.h: proceeding with the preprocessor's result configure: WARNING: dlfcn.h: in the future, the compiler will take precedence checking for dlfcn.h... yes configure will finish and will generate the usable builddefs but the messages are scary. After some on and off attempts to get to the bottom of this I've finally traced it to this particular bit in configure.in dnl check if user wants their own C compiler if test -z "$CC"; then AC_PROG_CC fi cc=$CC If CC in set in the environment then the whole set of checks is skipped and, as side effect, the value of ac_objext is not set, so when the header checks attempts to compile a test program to check the usability of the header (new thing in autoconf 2.60 or whereabout) it checks if 'conftest.' exists. Obviously it doesn't (not the lack of object suffix), the message is printed and life goes on. The problem is not limited to Solaris/Sun - you can get the same result on Linux with $ CC='gcc -m64' ./configure IIRC the test was (in various) forms in configure from its inception back in '99. I think it's time to kill it - AC_PROG_CC is capable and willing to take CC from the enviroment, we're not going to loose any functionality if it is removed and will actually gain support for non-default compilers. max From makc@iinet.net.au Sun Aug 2 07:01:41 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,URIBL_BLACK autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n72C1egd020386 for ; Sun, 2 Aug 2009 07:01:41 -0500 X-ASG-Debug-ID: 1249214547-2e1f012b0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from outbound.icp-qv1-irony-out1.iinet.net.au (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id D062A39D9BC for ; Sun, 2 Aug 2009 05:02:28 -0700 (PDT) Received: from outbound.icp-qv1-irony-out1.iinet.net.au (outbound.icp-qv1-irony-out1.iinet.net.au [203.59.1.106]) by cuda.sgi.com with ESMTP id NQsnr8UK4pzoXoyL for ; Sun, 02 Aug 2009 05:02:28 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAHABYddUrL2Rwk/2dsb2JhbACVarwjhBgF X-IronPort-AV: E=Sophos;i="4.43,309,1246809600"; d="scan'208";a="564154711" Received: from unknown (HELO alma.crabbed.net) ([203.217.28.36]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP; 02 Aug 2009 20:02:25 +0800 Received: by alma.crabbed.net (Postfix, from userid 501) id 24CB33B2CA4; Sun, 2 Aug 2009 21:59:02 +1000 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19061.32645.852534.549006@iinet.net.au> Date: Sun, 2 Aug 2009 21:59:01 +1000 From: Max Matveev To: pcp@oss.sgi.com X-ASG-Orig-Subj: Solaris packaging Subject: Solaris packaging X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Barracuda-Connect: outbound.icp-qv1-irony-out1.iinet.net.au[203.59.1.106] X-Barracuda-Start-Time: 1249214549 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5076 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean The following changes since commit f2866c9e1bf8c9a70213ed4cd859d437b9af6bad: Mark Goodwin (1): Bump version to 2.9.0. are available in the git repository at: git://oss.sgi.com/makc/pcp solaris Max Matveev (2): Allow user to choose her compiler Generate packages for Solaris build/GNUmakefile | 3 ++ build/sun/GNUmakefile | 51 ++++++++++++++++++++++++++++++++++++++++++++++ configure.in | 13 +++++++++-- src/include/builddefs.in | 9 +++++++- 4 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 build/sun/GNUmakefile commit 3cf745f62c0099577265994de97c0a755cb06f9b Author: Max Matveev Date: Sun Aug 2 04:11:32 2009 +1000 Generate packages for Solaris commit 74c7543c88bc3776b81ae8a5eab4de940537ffdd Author: Max Matveev Date: Sun Aug 2 03:03:35 2009 +1000 Allow user to choose her compiler New autoconf attempts to compile the headers as part of AC_HEADER_CHECK. It AC_PROG_CC is not called then AC_HEADER_CHECK generates scary warning - just call AC_PROG_CC unconditionally: it will honour CC from the environment but it will also do the right things about later checks. On Solaris if the alternative compiler is not GCC then don't feed it GNU options. From nscott@aconex.com Sun Aug 2 17:55:23 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,URIBL_BLACK autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n72MtNk6048980 for ; Sun, 2 Aug 2009 17:55:23 -0500 X-ASG-Debug-ID: 1249253770-384a01080000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 645E91424DD5 for ; Sun, 2 Aug 2009 15:56:11 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id W95iBNgNcCq3st64 for ; Sun, 02 Aug 2009 15:56:11 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id 0AA1B7071BF; Mon, 3 Aug 2009 08:56:09 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id 86hnAXO0FpC59YUE; Mon, 03 Aug 2009 08:56:09 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 2C7D2A502B6; Mon, 3 Aug 2009 08:55:24 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id CB03E4FD84; Mon, 3 Aug 2009 08:56:08 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xl-TccBt4ZLU; Mon, 3 Aug 2009 08:56:04 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 751464FD82; Mon, 3 Aug 2009 08:56:04 +1000 (EST) Date: Mon, 3 Aug 2009 08:56:04 +1000 (EST) From: Nathan Scott To: Max Matveev Cc: pcp@oss.sgi.com Message-ID: <352650748.1540751249253764437.JavaMail.root@mail-au.aconex.com> In-Reply-To: <19061.12533.869998.239643@iinet.net.au> X-ASG-Orig-Subj: Re: [pcp] changing compiler with configure Subject: Re: [pcp] changing compiler with configure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [211.28.150.226] X-Mailer: Zimbra 5.0.13_GA_2791.RHEL5_64 (ZimbraWebClient - SAF3 (Mac)/5.0.13_GA_2791.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1249253772 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5118 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean ----- "Max Matveev" wrote: > It all started when I've tried to compile PCP on Solaris using Sun's > compiler instead of the default CC: I was greated by messages like > ... > After some on and off attempts to get to the bottom of this I've > finally traced it to this particular bit in configure.in > > dnl check if user wants their own C compiler > if test -z "$CC"; then > AC_PROG_CC > fi > cc=$CC > > If CC in set in the environment then the whole set of checks is > skipped and, as side effect, the value of ac_objext is not set, so > ... > IIRC the test was (in various) forms in configure from its inception > back in '99. I think it's time to kill it - AC_PROG_CC is capable and > willing to take CC from the enviroment, we're not going to loose any > functionality if it is removed and will actually gain support for > non-default compilers. *nod* ... from the autoconf manual: Macro: AC_PROG_CC ([compiler-search-list]) Determine a C compiler to use. If CC is not already set in the environment, check for gcc and cc, then for other C compilers. Set output variable CC to the name of the compiler found. So, we should just be able to remove the conditional CC check there, as you say. cheers. -- Nathan From makc@iinet.net.au Sun Aug 2 20:10:33 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n731AVB8055769 for ; Sun, 2 Aug 2009 20:10:32 -0500 X-ASG-Debug-ID: 1249262432-0d2f00550000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from outbound.icp-qv1-irony-out1.iinet.net.au (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id A03A512AB1A6 for ; Sun, 2 Aug 2009 18:20:33 -0700 (PDT) Received: from outbound.icp-qv1-irony-out1.iinet.net.au (outbound.icp-qv1-irony-out1.iinet.net.au [203.59.1.106]) by cuda.sgi.com with ESMTP id w3RAmzWVbEDxoFS0 for ; Sun, 02 Aug 2009 18:20:33 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAEnWdUrL2Rwk/2dsb2JhbADQRoQYBQ X-IronPort-AV: E=Sophos;i="4.43,310,1246809600"; d="scan'208";a="564286283" Received: from unknown (HELO alma.crabbed.net) ([203.217.28.36]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP; 03 Aug 2009 09:11:14 +0800 Received: by alma.crabbed.net (Postfix, from userid 501) id 807B13B35A9; Mon, 3 Aug 2009 11:07:49 +1000 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19062.14437.416420.303050@iinet.net.au> Date: Mon, 3 Aug 2009 11:07:49 +1000 From: Max Matveev To: Nathan Scott Cc: pcp@oss.sgi.com X-ASG-Orig-Subj: Re: [pcp] changing compiler with configure Subject: Re: [pcp] changing compiler with configure In-Reply-To: <352650748.1540751249253764437.JavaMail.root@mail-au.aconex.com> References: <19061.12533.869998.239643@iinet.net.au> <352650748.1540751249253764437.JavaMail.root@mail-au.aconex.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Barracuda-Connect: outbound.icp-qv1-irony-out1.iinet.net.au[203.59.1.106] X-Barracuda-Start-Time: 1249262435 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5127 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean >>>>> "nscott" == Nathan Scott writes: nscott> So, we should just be able to remove the conditional CC check there, nscott> as you say. Good. I've pushed this change into my git repository on oss. max From kenj@internode.on.net Mon Aug 3 21:45:00 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n742j0uN136700 for ; Mon, 3 Aug 2009 21:45:00 -0500 X-ASG-Debug-ID: 1249354508-783f00bb0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 54304A59CD1 for ; Mon, 3 Aug 2009 19:55:08 -0700 (PDT) Received: from mail.internode.on.net (bld-mail15.adl6.internode.on.net [150.101.137.100]) by cuda.sgi.com with ESMTP id 2RYEFgjG79jlHagF for ; Mon, 03 Aug 2009 19:55:08 -0700 (PDT) Received: from [192.168.1.100] (unverified [118.208.214.7]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 3263066-1927428 for ; Tue, 04 Aug 2009 12:15:46 +0930 (CST) X-ASG-Orig-Subj: odd side-benefit from dynamic pmns changes Subject: odd side-benefit from dynamic pmns changes From: Ken McDonell Reply-To: kenj@internode.on.net To: pcp@oss.sgi.com Content-Type: text/plain Date: Tue, 04 Aug 2009 12:45:42 +1000 Message-Id: <1249353942.6768.10.camel@bozo> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: bld-mail15.adl6.internode.on.net[150.101.137.100] X-Barracuda-Start-Time: 1249354510 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0049 1.0000 -1.9887 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.99 X-Barracuda-Spam-Status: No, SCORE=-1.99 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5228 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean The dynamic pmns stuff is quite a bit trickier than I originally postulated (why, in retrospect, is that not a surprise?). Any way I have it working for the DSO PMDA case (daemon case is a straightforward, if tedious, extension). Max Matveev observed yesterday that he'd like to be able to have one PMDA use the dynamic PMNS features to return a PMID within its own domain sometime, but at other times (depending on some global configuration set up) have the same metric name translated into a PMID that belongs to another PMDA. This is (a) odd, and (b) even more amazing that he has a legitimate need for this! Well, after a short discussion, we postulated that it should "just work" (tm) ... so I tried it. $ pminfo -m | grep 2.4.1 pmcd.agent.status PMID: 2.4.1 sampledso.secret.foo.bar.max.redirect PMID: 2.4.1 sampledso.secret is a subtree of dynamic metric names known only to the sample PMDA, but sampledso.secret.foo.bar.max.redirect maps to the PMID of a metric exported from the pmcd PMDA. So, ... $ pminfo -f sampledso.secret.foo.bar.max.redirect sampledso.secret.foo.bar.max.redirect inst [2 or "pmcd"] value 0 inst [10 or "trace"] value 0 inst [15 or "sendmail"] value 0 inst [29 or "sample"] value 0 inst [30 or "sampledso"] value 0 inst [60 or "linux"] value 0 inst [250 or "trivial"] value 4 inst [253 or "simple"] value 0 8^)> From goodwinos@gmail.com Mon Aug 3 23:31:56 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n744Vte9141519 for ; Mon, 3 Aug 2009 23:31:56 -0500 X-ASG-Debug-ID: 1249360925-570800660000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mx2.redhat.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 168B4AE1A34 for ; Mon, 3 Aug 2009 21:42:05 -0700 (PDT) Received: from mx2.redhat.com (mx2.redhat.com [66.187.237.31]) by cuda.sgi.com with ESMTP id 9QnPcdQjBpCTwDSC for ; Mon, 03 Aug 2009 21:42:05 -0700 (PDT) Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n744Wfds031430; Tue, 4 Aug 2009 00:32:41 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n744WeAi016015; Tue, 4 Aug 2009 00:32:40 -0400 Received: from [10.64.176.217] (dhcp-176-217.mel.redhat.com [10.64.176.217]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n744WcCm010157; Tue, 4 Aug 2009 00:32:39 -0400 Message-ID: <4A77B9E6.6000300@gmail.com> Date: Tue, 04 Aug 2009 14:32:38 +1000 From: Mark Goodwin User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: kenj@internode.on.net CC: pcp@oss.sgi.com X-ASG-Orig-Subj: Re: [pcp] odd side-benefit from dynamic pmns changes Subject: Re: [pcp] odd side-benefit from dynamic pmns changes References: <1249353942.6768.10.camel@bozo> In-Reply-To: <1249353942.6768.10.camel@bozo> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-Barracuda-Connect: mx2.redhat.com[66.187.237.31] X-Barracuda-Start-Time: 1249360926 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5236 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean Ken McDonell wrote: > The dynamic pmns stuff is quite a bit trickier than I originally > postulated (why, in retrospect, is that not a surprise?). so how did the pmID pad field out in the end? > > Any way I have it working for the DSO PMDA case (daemon case is a > straightforward, if tedious, extension). > > Max Matveev observed yesterday that he'd like to be able to have one > PMDA use the dynamic PMNS features to return a PMID within its own > domain sometime, but at other times (depending on some global > configuration set up) have the same metric name translated into a PMID > that belongs to another PMDA. > > This is (a) odd, and (b) even more amazing that he has a legitimate need > for this! Some uses I can think of that we've struggled with in the past: 1. deprecate a PMDA, but keep some of it's namespace in the replacement 2. conditional support for certain metrics, e.g. standard or premium value-plus varieties 3. conditionally enabled metrics or instance domains e.g. via pmie rules, etc 4. alternative instance domains and/or semantics, e.g. redirect parts of the standard namespace to the cluster PMDA 5. multiple domains in the one PMDA (urk) I'm getting carried away a bit ... Cheers -- Mark > > Well, after a short discussion, we postulated that it should "just > work" (tm) ... so I tried it. > > $ pminfo -m | grep 2.4.1 > pmcd.agent.status PMID: 2.4.1 > sampledso.secret.foo.bar.max.redirect PMID: 2.4.1 > > sampledso.secret is a subtree of dynamic metric names known only to the > sample PMDA, but sampledso.secret.foo.bar.max.redirect maps to the PMID > of a metric exported from the pmcd PMDA. > > So, ... > $ pminfo -f sampledso.secret.foo.bar.max.redirect > > sampledso.secret.foo.bar.max.redirect > inst [2 or "pmcd"] value 0 > inst [10 or "trace"] value 0 > inst [15 or "sendmail"] value 0 > inst [29 or "sample"] value 0 > inst [30 or "sampledso"] value 0 > inst [60 or "linux"] value 0 > inst [250 or "trivial"] value 4 > inst [253 or "simple"] value 0 > > 8^)> > > _______________________________________________ > pcp mailing list > pcp@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/pcp From mort@bork.org Tue Aug 4 13:59:18 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n74IxIsn187623 for ; Tue, 4 Aug 2009 13:59:18 -0500 X-ASG-Debug-ID: 1249412389-041800250000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from darwin.bork.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id B41D33A56DB for ; Tue, 4 Aug 2009 11:59:49 -0700 (PDT) Received: from darwin.bork.org (darwin.bork.org [65.49.60.145]) by cuda.sgi.com with ESMTP id A801F4aVHpBzHvmS for ; Tue, 04 Aug 2009 11:59:49 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by darwin.bork.org (Postfix) with ESMTP id 0DA00193C0 for ; Tue, 4 Aug 2009 14:55:31 -0400 (EDT) Received: from darwin.bork.org ([127.0.0.1]) by localhost (darwin.bork.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FcyEBSMdve7V for ; Tue, 4 Aug 2009 14:55:30 -0400 (EDT) Received: from laplace.bork.org (laplace.bork.org [IPv6:2001:470:1f11:499:21a:a0ff:feec:57ab]) by darwin.bork.org (Postfix) with ESMTP id CEC6F1921E for ; Tue, 4 Aug 2009 14:55:30 -0400 (EDT) Received: by laplace.bork.org (Postfix, from userid 1000) id 3D7B2538C4; Tue, 4 Aug 2009 14:59:48 -0400 (EDT) Date: Tue, 4 Aug 2009 14:59:48 -0400 From: Martin Hicks To: pcp@oss.sgi.com X-ASG-Orig-Subj: Updates to python-pcp Subject: Updates to python-pcp Message-ID: <20090804185948.GF13193@laplace.bork.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Barracuda-Connect: darwin.bork.org[65.49.60.145] X-Barracuda-Start-Time: 1249412390 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.52 X-Barracuda-Spam-Status: No, SCORE=-1.52 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5292 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean I've pushed a couple fixes that make the demo work for me to my git tree on oss: git://oss.sgi.com/mort/python-pcp.git commit 0b6e6bd2a4b0b3bb8ce4a26f0543a6b2a7e2df29 Author: Martin Hicks Date: Tue Aug 4 14:54:34 2009 -0400 Implement copy() and deepcopy() for pmUnits objects I was getting errors in the dofetch.py example because the copy.deepcopy() function wasn't actually doing any copying. This fixes the problem for me. commit 3f0636f78c66b550e39f50a4538300365d7062ea Author: Martin Hicks Date: Tue Aug 4 14:49:15 2009 -0400 Fix a sign extension problem on 64 bit A few macros that are 0xffffffff (PM_INDOM_NULL, for example), were being incorrectly sign-extended to a 64bit ~0 value because they were incorrectly being passed as integers when they should be passed as unsigned int. Also add a comment that the -1 in the hash, that looks a lot like it should be PM_INDOM_NULL, is necessary to match the python-mangled return value from pmFetch() -- Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE From kenj@internode.on.net Tue Aug 4 16:20:20 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n74LKJXb193709 for ; Tue, 4 Aug 2009 16:20:20 -0500 X-ASG-Debug-ID: 1249420867-3f0f03d10000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id D6E4A3A639A for ; Tue, 4 Aug 2009 14:21:07 -0700 (PDT) Received: from mail.internode.on.net (bld-mail17.adl2.internode.on.net [150.101.137.102]) by cuda.sgi.com with ESMTP id KBCNJrehytXLJBDH for ; Tue, 04 Aug 2009 14:21:07 -0700 (PDT) Received: from [192.168.1.100] (unverified [118.208.214.7]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 3228245-1927428 for multiple; Wed, 05 Aug 2009 06:51:05 +0930 (CST) X-ASG-Orig-Subj: Re: [pcp] odd side-benefit from dynamic pmns changes Subject: Re: [pcp] odd side-benefit from dynamic pmns changes From: Ken McDonell Reply-To: kenj@internode.on.net To: Mark Goodwin Cc: pcp@oss.sgi.com In-Reply-To: <4A77B9E6.6000300@gmail.com> References: <1249353942.6768.10.camel@bozo> <4A77B9E6.6000300@gmail.com> Content-Type: text/plain Date: Wed, 05 Aug 2009 07:21:00 +1000 Message-Id: <1249420860.2087.2.camel@bozo> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: bld-mail17.adl2.internode.on.net[150.101.137.102] X-Barracuda-Start-Time: 1249420869 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0004 1.0000 -2.0186 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5301 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean On Tue, 2009-08-04 at 14:32 +1000, Mark Goodwin wrote: > Ken McDonell wrote: > > The dynamic pmns stuff is quite a bit trickier than I originally > > postulated (why, in retrospect, is that not a surprise?). > > so how did the pmID pad field out in the end? I'm currently using this definition of a pmid /* * Internally, this is how to decode a PMID! * - flag is to denote state internally in some operations * - domain is usually the unique domain number of a PMDA, but DYNAMIC_PMID * (number 511) is reserved for PMIDs representing the root of a * dynamic subtree in the PMNS (and in this case the real domain number * is encoded in the cluster field) * - cluster and item together uniquely identify a metric within a domain */ #define DYNAMIC_PMID 511 typedef struct { #ifdef HAVE_BITFIELDS_LTOR unsigned int flag : 1; unsigned int domain : 9; unsigned int cluster : 12; unsigned int item : 10; #else unsigned int item : 10; unsigned int cluster : 12; unsigned int domain : 9; unsigned int flag : 1; #endif } __pmID_int; So pad has gone, flag is explicitly used as, er, a flag bit, and domain is 9 bits long ... domain 511 (DYNAMIC_PMID) is special and reserved. From kenj@internode.on.net Wed Aug 5 23:20:28 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43 autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n764KQWA026478 for ; Wed, 5 Aug 2009 23:20:27 -0500 X-ASG-Debug-ID: 1249533046-052202260000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 31B8114A4127 for ; Wed, 5 Aug 2009 21:30:47 -0700 (PDT) Received: from mail.internode.on.net (bld-mail14.adl6.internode.on.net [150.101.137.99]) by cuda.sgi.com with ESMTP id pEfxFdaXJUqiqmHk for ; Wed, 05 Aug 2009 21:30:47 -0700 (PDT) Received: from [192.168.1.100] (unverified [118.208.214.7]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 3372949-1927428 for ; Thu, 06 Aug 2009 13:51:14 +0930 (CST) X-ASG-Orig-Subj: problem with perl pmdas Subject: problem with perl pmdas From: Ken McDonell Reply-To: kenj@internode.on.net To: pcp@oss.sgi.com Content-Type: multipart/mixed; boundary="=-jQK9vg+Z3/kix4+ei6uz" Date: Thu, 06 Aug 2009 14:21:07 +1000 Message-Id: <1249532467.14280.389.camel@bozo> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-Barracuda-Connect: bld-mail14.adl6.internode.on.net[150.101.137.99] X-Barracuda-Start-Time: 1249533049 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5416 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean --=-jQK9vg+Z3/kix4+ei6uz Content-Type: text/plain Content-Transfer-Encoding: 7bit There is a serious problem with the perl pmdas ... first noticed with qa 162 where the qa controlling script (check) receives a SIGTERM when the qa test is run!!! Tracked down to the news pmda install. Further digging shows a we end up here /* take out any children we created */ __pmProcessTerminate(0, 0); in the cpan/local.c code. Now over in libpcp this translates to ... kill(0, SIGTERM) ... which on Linux takes out the whole process group (not the children) ... BANG. Now kill(0, ...) is sufficiently evil that I have a good mind to guard against that in libpcp, especially since the only other user of this is pmcd who would appear to have a real process id to use as the first argument. Based on an almost total lack on perl knowledge, the perl code needs to either (a) keep track of spawned children pids and destroy them explicitly, or (b) detach itself into its own process group so kill(0,..) is safe. But, even (b) does not work, because if kill(0,...) is confined to a new process group for just the pmda, this will still whack the pmda with a SIGTERM ... and that means things like stdio buffers don't get flushed ... so these parts of the installation script PCP_PERL_DOMAIN=1 perl /var/lib/pcp/pmdas/news/pmdanews.pl and PCP_PERL_PMNS=1 perl /var/lib/pcp/pmdas/news/pmdanews.pl produce zero length files domain.h and pmns files and the install fails miserably. So, I've gone ahead with the attached patch to libpcp/src/util.c and leave the perl bog to someone who knows better ... 8^)> --=-jQK9vg+Z3/kix4+ei6uz Content-Disposition: attachment; filename="eek" Content-Type: text/x-patch; name="eek"; charset="UTF-8" Content-Transfer-Encoding: 7bit diff --git a/src/libpcp/src/util.c b/src/libpcp/src/util.c index a09aa97..052c900 100644 --- a/src/libpcp/src/util.c +++ b/src/libpcp/src/util.c @@ -1157,7 +1157,16 @@ __pmProcessExists(pid_t pid) int __pmProcessTerminate(pid_t pid, int force) { - return kill(pid, force ? SIGKILL : SIGTERM); + if (pid != 0 && pid != -1) + return kill(pid, force ? SIGKILL : SIGTERM); + else { + /* + * sending KILL or TERM to all processes in a process group + * is just too dangerous ... + */ + return -EINVAL; + } + } #elif !defined(IS_MINGW) !bozo! --=-jQK9vg+Z3/kix4+ei6uz-- From nscott@aconex.com Thu Aug 6 00:05:33 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7655XY7030652 for ; Thu, 6 Aug 2009 00:05:33 -0500 X-ASG-Debug-ID: 1249535182-414a00fc0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 7F2663AB9AA for ; Wed, 5 Aug 2009 22:06:23 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id 1Y66vqV3nHpMLhqN for ; Wed, 05 Aug 2009 22:06:23 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id C713D272837; Thu, 6 Aug 2009 15:06:20 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id r41hmdWnRPbZG3ab; Thu, 06 Aug 2009 15:06:20 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 4FDB5A502B6; Thu, 6 Aug 2009 15:05:34 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id A55554FD85; Thu, 6 Aug 2009 15:06:20 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3XRpU3F2mODT; Thu, 6 Aug 2009 15:06:15 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id BB6444FD82; Thu, 6 Aug 2009 15:06:15 +1000 (EST) Date: Thu, 6 Aug 2009 15:06:15 +1000 (EST) From: Nathan Scott To: kenj@internode.on.net Cc: pcp@oss.sgi.com Message-ID: <811371251.1818361249535175673.JavaMail.root@mail-au.aconex.com> In-Reply-To: <1247727821.1818341249535138211.JavaMail.root@mail-au.aconex.com> X-ASG-Orig-Subj: Re: [pcp] problem with perl pmdas Subject: Re: [pcp] problem with perl pmdas MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.13_GA_2791.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.13_GA_2791.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1249535184 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5420 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean ----- "Ken McDonell" wrote: > There is a serious problem with the perl pmdas ... first noticed with > qa > 162 where the qa controlling script (check) receives a SIGTERM when > the > qa test is run!!! > > Tracked down to the news pmda install. > ... > So, I've gone ahead with the attached patch to libpcp/src/util.c and > leave the perl bog to someone who knows better ... 8^)> This was fixed two or three weeks back (sorry!). pcp-2.9.0 has the fix (IIRC, pcp-2.8.10(or so?) introduced the regression). cheers. ps: there was much discussion on the #pcp irc channel on this one, I shoulda sent a summary to the list (hi Jonathan!) but it dropped off my radar - apologies! -- Nathan From kenj@internode.on.net Thu Aug 6 03:32:04 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n768W3tv040426 for ; Thu, 6 Aug 2009 03:32:04 -0500 X-ASG-Debug-ID: 1249548144-3dd7018a0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 8A200B02373 for ; Thu, 6 Aug 2009 01:42:24 -0700 (PDT) Received: from mail.internode.on.net (bld-mail19.adl2.internode.on.net [150.101.137.104]) by cuda.sgi.com with ESMTP id 01DMC3ZC7zLvGb80 for ; Thu, 06 Aug 2009 01:42:24 -0700 (PDT) Received: from [192.168.1.100] (unverified [118.208.214.7]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 3308698-1927428 for multiple; Thu, 06 Aug 2009 18:02:51 +0930 (CST) X-ASG-Orig-Subj: Re: [pcp] problem with perl pmdas Subject: Re: [pcp] problem with perl pmdas From: Ken McDonell Reply-To: kenj@internode.on.net To: Nathan Scott Cc: pcp@oss.sgi.com In-Reply-To: <811371251.1818361249535175673.JavaMail.root@mail-au.aconex.com> References: <811371251.1818361249535175673.JavaMail.root@mail-au.aconex.com> Content-Type: text/plain Date: Thu, 06 Aug 2009 18:32:44 +1000 Message-Id: <1249547564.14233.4.camel@bozo> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: bld-mail19.adl2.internode.on.net[150.101.137.104] X-Barracuda-Start-Time: 1249548146 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5434 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean OK, but I'm still going to push for my libcp patch. On Thu, 2009-08-06 at 15:06 +1000, Nathan Scott wrote: > ----- "Ken McDonell" wrote: > > > There is a serious problem with the perl pmdas ... first noticed with > > qa > > 162 where the qa controlling script (check) receives a SIGTERM when > > the > > qa test is run!!! > > > > Tracked down to the news pmda install. > > ... > > So, I've gone ahead with the attached patch to libpcp/src/util.c and > > leave the perl bog to someone who knows better ... 8^)> > > This was fixed two or three weeks back (sorry!). pcp-2.9.0 has the > fix (IIRC, pcp-2.8.10(or so?) introduced the regression). > > cheers. > > ps: there was much discussion on the #pcp irc channel on this one, > I shoulda sent a summary to the list (hi Jonathan!) but it dropped > off my radar - apologies! > From mort@sgi.com Thu Aug 6 12:53:52 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_44 autolearn=no version=3.3.0-rupdated Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n76Hrqov076908 for ; Thu, 6 Aug 2009 12:53:52 -0500 Received: from attica.americas.sgi.com (attica.americas.sgi.com [128.162.236.44]) by relay3.corp.sgi.com (Postfix) with ESMTP id 23CD7AC017 for ; Thu, 6 Aug 2009 10:54:41 -0700 (PDT) Received: by attica.americas.sgi.com (Postfix, from userid 44682) id A9CE5A756DBA; Thu, 6 Aug 2009 12:54:40 -0500 (CDT) Date: Thu, 6 Aug 2009 12:54:40 -0500 From: Martin Hicks To: pcp@oss.sgi.com Subject: Question about Linux's kernel.all.cpu.* metrics Message-ID: <20090806175440.GI27557@alcatraz.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean I went looking today at these metrics, and I'm a bit confused by the values that are printed out. For example: case 23: /* kernel.all.cpu.idle */ _pm_assign_utype(_pm_idletime_size, atom, 1000 * (double)proc_stat.idle / proc_stat.hz); break; What's the goal of the multiplication and division by HZ? This just looks plain wrong to me, but maybe I'm missing something. Additional support for this is that the idle metric in PCP advances by 10x what it should (200/sec): mort@laplace:~$ pmdumptext -t 1 kernel.all.cpu.idle Thu Aug 6 13:52:34 ? Thu Aug 6 13:52:35 1989.809 Thu Aug 6 13:52:36 2000.010 mort@laplace:~$ pminfo -f kernel.all.hz hinv.ncpu kernel.all.hz value 100 hinv.ncpu value 2 mh From mort@bork.org Thu Aug 6 15:00:41 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n76K0fQR084841 for ; Thu, 6 Aug 2009 15:00:41 -0500 X-ASG-Debug-ID: 1249588891-413b03730000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from darwin.bork.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 03DCF146424D for ; Thu, 6 Aug 2009 13:01:31 -0700 (PDT) Received: from darwin.bork.org (darwin.bork.org [65.49.60.145]) by cuda.sgi.com with ESMTP id HeGZ39q2XCjWVBwr for ; Thu, 06 Aug 2009 13:01:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by darwin.bork.org (Postfix) with ESMTP id 7AC6F193C0 for ; Thu, 6 Aug 2009 15:57:08 -0400 (EDT) Received: from darwin.bork.org ([127.0.0.1]) by localhost (darwin.bork.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NEPPFhnaEftP for ; Thu, 6 Aug 2009 15:57:08 -0400 (EDT) Received: from laplace.bork.org (laplace.bork.org [IPv6:2001:470:1f11:499:21a:a0ff:feec:57ab]) by darwin.bork.org (Postfix) with ESMTP id 509991934F for ; Thu, 6 Aug 2009 15:57:08 -0400 (EDT) Received: by laplace.bork.org (Postfix, from userid 1000) id 9E279538C4; Thu, 6 Aug 2009 16:01:04 -0400 (EDT) Date: Thu, 6 Aug 2009 16:01:04 -0400 From: Martin Hicks To: pcp@oss.sgi.com X-ASG-Orig-Subj: pcp updates Subject: pcp updates Message-ID: <20090806200104.GP13193@laplace.bork.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Barracuda-Connect: darwin.bork.org[65.49.60.145] X-Barracuda-Start-Time: 1249588893 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5478 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean Changes committed to git://oss.sgi.com/mort/pcp.git man/man1/pmdaib.1 | 12 +++++++++++- man/man3/pmnewcontext.3 | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) commit 27ed44a74cdf6a15e05e6253895d7103ef1e590e Author: Martin Hicks Date: Thu Aug 6 15:43:26 2009 -0400 Mention that the IB PMDA support PM_CONTEXT_LOCAL Just set an environment variable to make use of the Evil. -- Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE From kenj@internode.on.net Thu Aug 6 16:37:54 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_44 autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n76LbrHJ088549 for ; Thu, 6 Aug 2009 16:37:54 -0500 X-ASG-Debug-ID: 1249594722-7b7801cf0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 0AC363AF2EA for ; Thu, 6 Aug 2009 14:38:43 -0700 (PDT) Received: from mail.internode.on.net (bld-mail12.adl6.internode.on.net [150.101.137.97]) by cuda.sgi.com with ESMTP id 9s1XBvqIF9JneOFS for ; Thu, 06 Aug 2009 14:38:43 -0700 (PDT) Received: from [192.168.1.100] (unverified [118.208.214.7]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 3352725-1927428 for multiple; Fri, 07 Aug 2009 07:08:41 +0930 (CST) X-ASG-Orig-Subj: Re: [pcp] Question about Linux's kernel.all.cpu.* metrics Subject: Re: [pcp] Question about Linux's kernel.all.cpu.* metrics From: Ken McDonell Reply-To: kenj@internode.on.net To: Martin Hicks Cc: pcp@oss.sgi.com In-Reply-To: <20090806175440.GI27557@alcatraz.americas.sgi.com> References: <20090806175440.GI27557@alcatraz.americas.sgi.com> Content-Type: text/plain Date: Fri, 07 Aug 2009 07:38:34 +1000 Message-Id: <1249594714.5430.7.camel@bozo> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: bld-mail12.adl6.internode.on.net[150.101.137.97] X-Barracuda-Start-Time: 1249594725 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5484 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean PCP does not accept the unit of "tick" is a sane measure of time because it has changed several times over the life of PCP (and changed even more times over my lifetime). All the cpu times are exported in milliseconds, ... $ pminfo -d kernel.all.cpu.idle kernel.all.cpu.idle Data Type: 64-bit unsigned int InDom: PM_INDOM_NULL 0xffffffff Semantics: counter Units: millisec The other wrinkle is that the *all* cpu metrics are summed over all CPUs, so the sum of the *all* counters (idle, user, sys, etc) on an N CPU system goes up at N seconds per second (because we're purning N seconds of CPU time every second). So, if you have 2 CPUs and are sampling once per second, expect the counter kernel.all.cpu.idle to go up by 2000 per second, so the rate converted value is 2000 milliseconds per second which is correct. The conversion breaks down as / hz -> seconds * 1000 -> milliseconds This is a common misunderstanding ... it should be captured in a FAQ somewhere I guess. On Thu, 2009-08-06 at 12:54 -0500, Martin Hicks wrote: > I went looking today at these metrics, and I'm a bit confused by the > values that are printed out. For example: > > case 23: /* kernel.all.cpu.idle */ > _pm_assign_utype(_pm_idletime_size, atom, > 1000 * (double)proc_stat.idle / proc_stat.hz); > break; > > > What's the goal of the multiplication and division by HZ? This just > looks plain wrong to me, but maybe I'm missing something. Additional > support for this is that the idle metric in PCP advances by 10x what it > should (200/sec): > > mort@laplace:~$ pmdumptext -t 1 kernel.all.cpu.idle > Thu Aug 6 13:52:34 ? > Thu Aug 6 13:52:35 1989.809 > Thu Aug 6 13:52:36 2000.010 > > mort@laplace:~$ pminfo -f kernel.all.hz hinv.ncpu > > kernel.all.hz > value 100 > > hinv.ncpu > value 2 > > > mh > > _______________________________________________ > pcp mailing list > pcp@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/pcp From nscott@aconex.com Thu Aug 6 19:17:21 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n770HKHs096191 for ; Thu, 6 Aug 2009 19:17:20 -0500 X-ASG-Debug-ID: 1249604866-3c9000d10000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C13A1B0DCEB for ; Thu, 6 Aug 2009 17:27:46 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id 3SJETfrbOBjsIiSc for ; Thu, 06 Aug 2009 17:27:46 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id F3A65279BD6; Fri, 7 Aug 2009 10:18:08 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id QhCd30SS2tv8I4C6; Fri, 07 Aug 2009 10:18:08 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 202E1A502BF; Fri, 7 Aug 2009 10:17:22 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id D85924FD86; Fri, 7 Aug 2009 10:18:08 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HPtZnRDwHjVJ; Fri, 7 Aug 2009 10:18:05 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 95B544FD82; Fri, 7 Aug 2009 10:18:05 +1000 (EST) Date: Fri, 7 Aug 2009 10:18:05 +1000 (EST) From: Nathan Scott To: kenj@internode.on.net Cc: pcp@oss.sgi.com Message-ID: <1205276153.1845531249604285361.JavaMail.root@mail-au.aconex.com> In-Reply-To: <1249547564.14233.4.camel@bozo> X-ASG-Orig-Subj: Re: [pcp] problem with perl pmdas Subject: Re: [pcp] problem with perl pmdas MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.13_GA_2791.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.13_GA_2791.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1249604867 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5494 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean ----- "Ken McDonell" wrote: > OK, but I'm still going to push for my libcp patch. The Perl PMDAs run in their own process group, and use the pid == 0 argument to ensure all children are terminated (we don't necessarily have pids to explicitly kill them, so it signals the group). cheers. -- Nathan From mort@bork.org Thu Aug 6 20:15:41 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_44 autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n771FfWR098620 for ; Thu, 6 Aug 2009 20:15:41 -0500 X-ASG-Debug-ID: 1249607792-3a0a01b50000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from darwin.bork.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 08BD214671C6 for ; Thu, 6 Aug 2009 18:16:32 -0700 (PDT) Received: from darwin.bork.org (darwin.bork.org [65.49.60.145]) by cuda.sgi.com with ESMTP id wg9cLI57zT21n1mn for ; Thu, 06 Aug 2009 18:16:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by darwin.bork.org (Postfix) with ESMTP id E935A193C0; Thu, 6 Aug 2009 21:12:08 -0400 (EDT) Received: from darwin.bork.org ([127.0.0.1]) by localhost (darwin.bork.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O1+w7Fz5GL5b; Thu, 6 Aug 2009 21:12:08 -0400 (EDT) Received: from socrates.bork.org (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "socrates.bork.org", Issuer "Bork Consulting CA" (not verified)) by darwin.bork.org (Postfix) with ESMTPS id DEC731934F; Thu, 6 Aug 2009 21:12:07 -0400 (EDT) Received: by socrates.bork.org (Postfix, from userid 1000) id 5FEA1CBA79; Thu, 6 Aug 2009 21:09:26 -0400 (EDT) Date: Thu, 6 Aug 2009 21:09:26 -0400 From: Martin Hicks To: Ken McDonell Cc: Martin Hicks , pcp@oss.sgi.com X-ASG-Orig-Subj: Re: [pcp] Question about Linux's kernel.all.cpu.* metrics Subject: Re: [pcp] Question about Linux's kernel.all.cpu.* metrics Message-ID: <20090807010926.GA5404@socrates.bork.org> References: <20090806175440.GI27557@alcatraz.americas.sgi.com> <1249594714.5430.7.camel@bozo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1249594714.5430.7.camel@bozo> User-Agent: Mutt/1.5.18 (2008-05-17) X-Barracuda-Connect: darwin.bork.org[65.49.60.145] X-Barracuda-Start-Time: 1249607793 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5497 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean On Fri, Aug 07, 2009 at 07:38:34AM +1000, Ken McDonell wrote: > > So, if you have 2 CPUs and are sampling once per second, expect the > counter kernel.all.cpu.idle to go up by 2000 per second, so the rate > converted value is 2000 milliseconds per second which is correct. > > The conversion breaks down as > > / hz -> seconds > * 1000 -> milliseconds > > This is a common misunderstanding ... it should be captured in a FAQ > somewhere I guess. Thanks. Makes perfect sense. mh > > On Thu, 2009-08-06 at 12:54 -0500, Martin Hicks wrote: > > I went looking today at these metrics, and I'm a bit confused by the > > values that are printed out. For example: > > > > case 23: /* kernel.all.cpu.idle */ > > _pm_assign_utype(_pm_idletime_size, atom, > > 1000 * (double)proc_stat.idle / proc_stat.hz); > > break; > > > > > > What's the goal of the multiplication and division by HZ? This just > > looks plain wrong to me, but maybe I'm missing something. Additional > > support for this is that the idle metric in PCP advances by 10x what it > > should (200/sec): > > > > mort@laplace:~$ pmdumptext -t 1 kernel.all.cpu.idle > > Thu Aug 6 13:52:34 ? > > Thu Aug 6 13:52:35 1989.809 > > Thu Aug 6 13:52:36 2000.010 > > > > mort@laplace:~$ pminfo -f kernel.all.hz hinv.ncpu > > > > kernel.all.hz > > value 100 > > > > hinv.ncpu > > value 2 > > > > > > mh > > > > _______________________________________________ > > pcp mailing list > > pcp@oss.sgi.com > > http://oss.sgi.com/mailman/listinfo/pcp > > _______________________________________________ > pcp mailing list > pcp@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/pcp From kenj@internode.on.net Thu Aug 6 20:23:43 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n771Nfmx098966 for ; Thu, 6 Aug 2009 20:23:43 -0500 X-ASG-Debug-ID: 1249608847-3c8b01ba0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 45C11B0DF37 for ; Thu, 6 Aug 2009 18:34:08 -0700 (PDT) Received: from mail.internode.on.net (bld-mail13.adl6.internode.on.net [150.101.137.98]) by cuda.sgi.com with ESMTP id 3rfBw28A4Ahc4FlB for ; Thu, 06 Aug 2009 18:34:08 -0700 (PDT) Received: from [192.168.1.100] (unverified [118.208.214.7]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 3459287-1927428 for multiple; Fri, 07 Aug 2009 10:54:30 +0930 (CST) X-ASG-Orig-Subj: Re: [pcp] problem with perl pmdas Subject: Re: [pcp] problem with perl pmdas From: Ken McDonell Reply-To: kenj@internode.on.net To: Nathan Scott Cc: pcp@oss.sgi.com In-Reply-To: <1205276153.1845531249604285361.JavaMail.root@mail-au.aconex.com> References: <1205276153.1845531249604285361.JavaMail.root@mail-au.aconex.com> Content-Type: text/plain Date: Fri, 07 Aug 2009 11:24:23 +1000 Message-Id: <1249608263.5430.8.camel@bozo> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: bld-mail13.adl6.internode.on.net[150.101.137.98] X-Barracuda-Start-Time: 1249608849 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5497 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean OK, I've reverted my change. On Fri, 2009-08-07 at 10:18 +1000, Nathan Scott wrote: > ----- "Ken McDonell" wrote: > > > OK, but I'm still going to push for my libcp patch. > > The Perl PMDAs run in their own process group, and use the > pid == 0 argument to ensure all children are terminated (we > don't necessarily have pids to explicitly kill them, so it > signals the group). > > cheers. > From greg.siekas@boeing.com Tue Aug 11 10:52:05 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7BFpjTG144237 for ; Tue, 11 Aug 2009 10:51:55 -0500 X-ASG-Debug-ID: 1250005926-1ce2029a0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from slb-smtpout-01.boeing.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 209791486CF5 for ; Tue, 11 Aug 2009 08:52:06 -0700 (PDT) Received: from slb-smtpout-01.boeing.com (slb-smtpout-01.boeing.com [130.76.64.48]) by cuda.sgi.com with ESMTP id IZMUBRcEwePg1TGK for ; Tue, 11 Aug 2009 08:52:06 -0700 (PDT) Received: from blv-av-01.boeing.com (blv-av-01.boeing.com [130.247.48.231]) by slb-smtpout-01.ns.cs.boeing.com (8.14.0/8.14.0/8.14.0/SMTPOUT) with ESMTP id n7BFq5xl027347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Aug 2009 08:52:06 -0700 (PDT) Received: from blv-av-01.boeing.com (localhost [127.0.0.1]) by blv-av-01.boeing.com (8.14.0/8.14.0/DOWNSTREAM_RELAY) with ESMTP id n7BFq2K3007188 for ; Tue, 11 Aug 2009 08:52:02 -0700 (PDT) Received: from XCH-NWBH-11.nw.nos.boeing.com (xch-nwbh-11.nw.nos.boeing.com [130.247.55.84]) by blv-av-01.boeing.com (8.14.0/8.14.0/UPSTREAM_RELAY) with ESMTP id n7BFq2xX007182 for ; Tue, 11 Aug 2009 08:52:02 -0700 (PDT) Received: from XCH-NW-7V2.nw.nos.boeing.com ([130.247.54.35]) by XCH-NWBH-11.nw.nos.boeing.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 11 Aug 2009 08:51:59 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-ASG-Orig-Subj: network.inteface.in.bytes problem Subject: network.inteface.in.bytes problem Date: Tue, 11 Aug 2009 08:51:48 -0700 Message-ID: <258BABDDC780384FBF0FF15CCFDFABE1082625A5@XCH-NW-7V2.nw.nos.boeing.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: network.inteface.in.bytes problem Thread-Index: Acoam6Jt4BZJY/KWSZSOz0YpDVeTzg== From: "Siekas, Greg" To: X-OriginalArrivalTime: 11 Aug 2009 15:51:59.0854 (UTC) FILETIME=[A971C8E0:01CA1A9B] X-Barracuda-Connect: slb-smtpout-01.boeing.com[130.76.64.48] X-Barracuda-Start-Time: 1250005947 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0017 1.0000 -2.0096 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.01 X-Barracuda-Spam-Status: No, SCORE=-2.01 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5915 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean I noticed something odd when using pmchart. It displays ever increasing bytes when displayin network.interface.in.bytes. It's now in the TB range and growing. I'm using pcp 2.9.0 and pcp-gui 1.4.4. pminfo on the system shows the following . network.interface.in.bytes inst [0 or "lo"] value 513781 inst [1 or "eth0"] value 1825297261184 inst [2 or "eth1"] value 1589361196791 inst [3 or "bond0"] value 3414658457975 Have these values overflowed something? thanks, Greg From nscott@aconex.com Tue Aug 11 18:28:32 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7BNSBkw163276 for ; Tue, 11 Aug 2009 18:28:21 -0500 X-ASG-Debug-ID: 1250033310-2407016f0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 551701488DD1 for ; Tue, 11 Aug 2009 16:28:31 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id fdL0tXnYAeAkfIHH for ; Tue, 11 Aug 2009 16:28:31 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id B8D427E61F4; Wed, 12 Aug 2009 09:28:26 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id rnUBWzwRTzPPNa91; Wed, 12 Aug 2009 09:28:26 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 33C62A50123; Wed, 12 Aug 2009 09:27:37 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id 9A0EC4FD88; Wed, 12 Aug 2009 09:28:26 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M8QSVyBF-vvA; Wed, 12 Aug 2009 09:28:21 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id DF9C54FD84; Wed, 12 Aug 2009 09:28:21 +1000 (EST) Date: Wed, 12 Aug 2009 09:28:21 +1000 (EST) From: Nathan Scott To: Greg Siekas Cc: pcp@oss.sgi.com Message-ID: <1516215870.2082261250033301842.JavaMail.root@mail-au.aconex.com> In-Reply-To: <457315930.2081961250033018978.JavaMail.root@mail-au.aconex.com> X-ASG-Orig-Subj: Re: [pcp] network.inteface.in.bytes problem Subject: Re: [pcp] network.inteface.in.bytes problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.13_GA_2791.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.13_GA_2791.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1250033336 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0005 1.0000 -2.0177 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.5945 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean ----- "Greg Siekas" wrote: > I noticed something odd when using pmchart. It displays ever > increasing > bytes when displayin network.interface.in.bytes. It's now in the TB > range and growing. I'm using pcp 2.9.0 and pcp-gui 1.4.4. pmchart in 1.4.4 contains a new feature which allows rate conversion for counter metrics to be switched off. This is non-default however and cannot be saved in views (as yet, if ever). The checkbox is on the "new chart" dialog box, in the "Chart" tab. It sounds like you may have unchecked that when creating the chart? Its checked by default, I just double-checked ... (thats alot of checks!). cheers. -- Nathan From jeffpc@josefsipek.net Sun Aug 16 15:20:56 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_44 autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7GKKYrs015883 for ; Sun, 16 Aug 2009 15:20:46 -0500 X-ASG-Debug-ID: 1250454051-2de903ae0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from josefsipek.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 2E13C3D49DA for ; Sun, 16 Aug 2009 13:20:51 -0700 (PDT) Received: from josefsipek.net (josefsipek.net [141.212.112.196]) by cuda.sgi.com with ESMTP id aDxBExr89OXPHSmG for ; Sun, 16 Aug 2009 13:20:51 -0700 (PDT) Received: by josefsipek.net (Postfix, from userid 1000) id E13101C00DFC; Sun, 16 Aug 2009 16:20:19 -0400 (EDT) From: "Josef 'Jeff' Sipek" To: pcp@oss.sgi.com Cc: "Josef 'Jeff' Sipek" , nathans@debian.org X-ASG-Orig-Subj: [PATCH] Add a new PMDA exporting the Postfix queue lengths Subject: [PATCH] Add a new PMDA exporting the Postfix queue lengths Date: Sun, 16 Aug 2009 16:20:19 -0400 Message-Id: <1250454019-26737-1-git-send-email-jeffpc@josefsipek.net> X-Mailer: git-send-email 1.6.2.4 X-Barracuda-Connect: josefsipek.net[141.212.112.196] X-Barracuda-Start-Time: 1250454078 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.6394 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean Cc: nathans@debian.org Signed-off-by: Josef 'Jeff' Sipek --- src/pmdas/GNUmakefile | 2 +- src/pmdas/postfix/.gitignore | 2 + src/pmdas/postfix/GNUmakefile | 45 ++++++++++ src/pmdas/postfix/Install | 27 ++++++ src/pmdas/postfix/Remove | 25 ++++++ src/pmdas/postfix/pmdapostfix.pl | 164 ++++++++++++++++++++++++++++++++++++++ src/pmns/stdpmid.pcp | 1 + 7 files changed, 265 insertions(+), 1 deletions(-) create mode 100644 src/pmdas/postfix/.gitignore create mode 100644 src/pmdas/postfix/GNUmakefile create mode 100755 src/pmdas/postfix/Install create mode 100755 src/pmdas/postfix/Remove create mode 100644 src/pmdas/postfix/pmdapostfix.pl diff --git a/src/pmdas/GNUmakefile b/src/pmdas/GNUmakefile index 8230be9..161ea65 100644 --- a/src/pmdas/GNUmakefile +++ b/src/pmdas/GNUmakefile @@ -22,7 +22,7 @@ SUBDIRS = pmcd linux solaris aix darwin windows \ lmsensors process roomtemp summary hotproc jstat \ dbping memcache systemtap mysql vmware kvm ib \ bonding cluster lustrecomm mmv netfilter zimbra \ - named pdns + named pdns postfix LDIRT = pmcd.conf diff --git a/src/pmdas/postfix/.gitignore b/src/pmdas/postfix/.gitignore new file mode 100644 index 0000000..9515eb3 --- /dev/null +++ b/src/pmdas/postfix/.gitignore @@ -0,0 +1,2 @@ +pmdapostfix.1 +pmdapostfix.1.gz diff --git a/src/pmdas/postfix/GNUmakefile b/src/pmdas/postfix/GNUmakefile new file mode 100644 index 0000000..535e07e --- /dev/null +++ b/src/pmdas/postfix/GNUmakefile @@ -0,0 +1,45 @@ +#!gmake +# +# Copyright (c) 2009 Josef 'Jeff' Sipek +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# + +TOPDIR = ../../.. +include $(TOPDIR)/src/include/builddefs + +IAM = postfix +PMDADIR = $(PCP_PMDAS_DIR)/$(IAM) +LSRCFILES = Install Remove pmda$(IAM).pl +LDIRT = domain.h root pmns *.log $(MAN_PAGES) + +ifneq ($(POD2MAN),) +MAN_SECTION = 1 +MAN_PAGES = pmda$(IAM).$(MAN_SECTION) +MAN_DEST = $(PCP_MAN_DIR)/man$(MAN_SECTION) +endif + +default: $(MAN_PAGES) + +pmda$(IAM).1: pmda$(IAM).pl + $(POD_MAKERULE) + +include $(BUILDRULES) + +install: default + $(INSTALL) -m 755 -d $(PMDADIR) + $(INSTALL) -m 755 Install Remove $(PMDADIR) + $(INSTALL) -m 644 pmda$(IAM).pl $(PMDADIR)/pmda$(IAM).pl + @$(INSTALL_MAN) + +default_pcp : default + +install_pcp : install diff --git a/src/pmdas/postfix/Install b/src/pmdas/postfix/Install new file mode 100755 index 0000000..85477c8 --- /dev/null +++ b/src/pmdas/postfix/Install @@ -0,0 +1,27 @@ +#! /bin/sh +# +# Copyright (c) 2009 Josef 'Jeff' Sipek +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# Install the postfix PMDA +# + +. $PCP_DIR/etc/pcp.env +. $PCP_SHARE_DIR/lib/pmdaproc.sh + +iam=postfix +perl_opt=true +daemon_opt=false + +pmdaSetup +pmdaInstall +exit 0 diff --git a/src/pmdas/postfix/Remove b/src/pmdas/postfix/Remove new file mode 100755 index 0000000..5d06c62 --- /dev/null +++ b/src/pmdas/postfix/Remove @@ -0,0 +1,25 @@ +#! /bin/sh +# +# Copyright (c) 2009 Josef 'Jeff' Sipek +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# Remove the postfix PMDA +# + +. $PCP_DIR/etc/pcp.env +. $PCP_SHARE_DIR/lib/pmdaproc.sh + +iam=postfix + +pmdaSetup +pmdaRemove +exit 0 diff --git a/src/pmdas/postfix/pmdapostfix.pl b/src/pmdas/postfix/pmdapostfix.pl new file mode 100644 index 0000000..3f15f59 --- /dev/null +++ b/src/pmdas/postfix/pmdapostfix.pl @@ -0,0 +1,164 @@ +# +# Copyright (c) 2009 Josef 'Jeff' Sipek +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# + +use strict; +use warnings; +use PCP::PMDA; +use Time::HiRes qw ( time ); + +use vars qw( $pmda ); +use vars qw( %caches ); +my $qshape = 'qshape -b 10 -t 5'; +my $refresh = 5; # 5 seconds between refreshes + +sub postfix_timer_callback +{ + my @items; + + foreach my $qname ("maildrop", "incoming", "hold", "active", "deferred") { + open(PIPE, "$qshape $qname |") || die "couldn't execute '$qshape $qname'"; + while() { + last if (/^[\t ]*TOTAL /); + } + close PIPE; + + die "malformed output for '$qshape $qname'" unless (/^[\t ]*TOTAL /); + + s/^[\t ]*//; + s/[\t ]+/ /g; + + @items = split(/ /); + + $caches{$qname}{0} = $items[1]; + $caches{$qname}{1} = $items[2]; + $caches{$qname}{2} = $items[3]; + $caches{$qname}{3} = $items[4]; + $caches{$qname}{4} = $items[5]; + $caches{$qname}{5} = $items[6]; + $caches{$qname}{6} = $items[7]; + $caches{$qname}{7} = $items[8]; + $caches{$qname}{8} = $items[9]; + $caches{$qname}{9} = $items[10]; + $caches{$qname}{10} = $items[11]; + } +} + +sub postfix_fetch_callback +{ + my ($cluster, $item, $inst) = @_; + my $metric_name = pmda_pmid_name($cluster, $item); + my ($qname); + + # $pmda->log("postfix_fetch_callback $metric_name $cluster:$item ($inst)\n"); + + if (!defined($metric_name)) { return (PM_ERR_PMID, 0); } + + if ($cluster == 0) { + $qname = $metric_name; + $qname =~ s/^postfix\.queues\.//; + + return (PM_ERR_AGAIN, 0) unless defined($caches{$qname}); + return ($caches{$qname}{$inst}, 1); + } + + return (PM_ERR_PMID, 0); +} + +my $postfix_queues_indom = 0; +my @postfix_queues_dom = ( 0 => 'total', + 1 => '0-5 mins', + 2 => '5-10 mins', + 3 => '10-20 mins', + 4 => '20-40 mins', + 5 => '40-80 mins', + 6 => '80-160 mins', + 7 => '160-320 mins', + 8 => '320-640 mins', + 9 => '640-1280 mins', + 10=> '1280+ mins', + ); + +$pmda = PCP::PMDA->new('postfix', 102); + +$pmda->add_metric(pmda_pmid(0,0), PM_TYPE_U32, $postfix_queues_indom, PM_SEM_INSTANT, + pmda_units(0,0,1,0,0,PM_COUNT_ONE), + "postfix.queues.maildrop", '', ''); +$pmda->add_metric(pmda_pmid(0,1), PM_TYPE_U32, $postfix_queues_indom, PM_SEM_INSTANT, + pmda_units(0,0,1,0,0,PM_COUNT_ONE), + "postfix.queues.incoming", '', ''); +$pmda->add_metric(pmda_pmid(0,2), PM_TYPE_U32, $postfix_queues_indom, PM_SEM_INSTANT, + pmda_units(0,0,1,0,0,PM_COUNT_ONE), + "postfix.queues.hold", '', ''); +$pmda->add_metric(pmda_pmid(0,3), PM_TYPE_U32, $postfix_queues_indom, PM_SEM_INSTANT, + pmda_units(0,0,1,0,0,PM_COUNT_ONE), + "postfix.queues.active", '', ''); +$pmda->add_metric(pmda_pmid(0,4), PM_TYPE_U32, $postfix_queues_indom, PM_SEM_INSTANT, + pmda_units(0,0,1,0,0,PM_COUNT_ONE), + "postfix.queues.deferred", '', ''); + +$pmda->add_indom($postfix_queues_indom, \@postfix_queues_dom, '', ''); + +$pmda->add_timer($refresh, \&postfix_timer_callback, 0); +$pmda->set_fetch_callback(\&postfix_fetch_callback); +$pmda->run; + +=pod + +=head1 NAME + +pmdapostfix - Postfix performance metrics domain agent (PMDA) + +=head1 DESCRIPTION + +B is a Performance Metrics Domain Agent (PMDA) which exports +mail queue sizes as reported by qshape(1). + +=head1 INSTALLATION + +If you want access to the names and values for the Postfix performance +metrics, do the following as root: + + # cd $PCP_PMDAS_DIR/postfix + # ./Install + +If you want to undo the installation, do the following as root: + + # cd $PCP_PMDAS_DIR/postfix + # ./Remove + +B is launched by pmcd(1) and should never be executed +directly. The Install and Remove scripts notify pmcd(1) when +the agent is installed or removed. + +=head1 FILES + +=over + +=item $PCP_PMDAS_DIR/postfix/Install + +installation script for the B agent + +=item $PCP_PMDAS_DIR/postfix/Remove + +undo installation script for the B agent + +=item $PCP_LOG_DIR/pmcd/postfix.log + +default log file for error messages from B + +=back + +=head1 SEE ALSO + +pmcd(1) and qshape(1). diff --git a/src/pmns/stdpmid.pcp b/src/pmns/stdpmid.pcp index 6f9a493..e4bbb09 100644 --- a/src/pmns/stdpmid.pcp +++ b/src/pmns/stdpmid.pcp @@ -78,6 +78,7 @@ ZIMBRA 98 UV 99 NAMED 100 PDNS 101 +POSTFIX 102 ### NEXT FREE SLOT ### DBPING 244 COUNTD 245 -- 1.6.2.4 From makc@iinet.net.au Mon Aug 17 07:50:08 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7HCnlZh071345 for ; Mon, 17 Aug 2009 07:49:58 -0500 X-ASG-Debug-ID: 1250513408-337501530000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from outbound.icp-qv1-irony-out1.iinet.net.au (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 4C54D3D6638 for ; Mon, 17 Aug 2009 05:50:09 -0700 (PDT) Received: from outbound.icp-qv1-irony-out1.iinet.net.au (outbound.icp-qv1-irony-out1.iinet.net.au [203.59.1.106]) by cuda.sgi.com with ESMTP id Iugu6pj9PsLQlo0v for ; Mon, 17 Aug 2009 05:50:09 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar8HAJvuiErL2Rwk/2dsb2JhbACWQL9JhBkFgU0 X-IronPort-AV: E=Sophos;i="4.43,396,1246809600"; d="scan'208";a="570762506" Received: from unknown (HELO alma.crabbed.net) ([203.217.28.36]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP; 17 Aug 2009 20:50:02 +0800 Received: by alma.crabbed.net (Postfix, from userid 501) id C996D3BA51E; Mon, 17 Aug 2009 22:49:42 +1000 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19081.20966.701444.175639@iinet.net.au> Date: Mon, 17 Aug 2009 22:49:42 +1000 From: Max Matveev To: pcp@oss.sgi.com X-ASG-Orig-Subj: Changes to Solaris PMDA Subject: Changes to Solaris PMDA X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Barracuda-Connect: outbound.icp-qv1-irony-out1.iinet.net.au[203.59.1.106] X-Barracuda-Start-Time: 1250513432 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.52 X-Barracuda-Spam-Status: No, SCORE=-1.52 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.6455 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean I've made some changes to Solaris PMDA to export information about ZFS "things" and some network related stats. The following is in my git repository on oss: commit 3db8e4f3626241cb40e52f36a691263c8aaa34ff Author: Max Matveev Date: Mon Aug 17 18:52:49 2009 +1000 Release zpool resources when finished updates It's not documented but it's obvious that zpool_iter expects the callback to call zpool_close to release resources associated with the zpool - it's not a problem for short-lived commands like zpool(1) but it leaks memory like a firehose. commit 758b2b7039e878189b42fab6d8d3a789a27810d1 Author: Max Matveev Date: Wed Aug 12 00:01:59 2009 +1000 Eliminate incidents of crime against whitespace commit 012af5fa4e16029513c6d1c2ff7c7a3d4a3069e3 Author: Max Matveev Date: Tue Aug 11 23:55:59 2009 +1000 Hide instances for destroyed pools and filesystems In Solaris PMDA if a zpool or a zfs is removed make sure that the corresponding instance disappears from the list of instances returned on fetch. commit 4bc076258e025f86b6215783933f7adcb77ace90 Author: Max Matveev Date: Wed Aug 5 02:10:37 2009 +1000 Add network metrics to Solaris PMDA Use MIB2 interface available via TI to extract IPv4 interfaces and UDP stats from the kernel. The good/bad fetch is on the whole group - if any of the sources fail (even if we don't use them like IPv6 interface stats) then whole fetch will return no data. Fetch callback still uses offset for the metrics which have indoms, for singular metrics a pointer to the global storage is used whence the change of type in md_offset. commit 234ffe3f3badbf73768f114fa692eac0dd7ec079 Author: Max Matveev Date: Mon Aug 3 10:33:41 2009 +1000 Report ZFS statistics from Solaris PMDA Use libzfs interfaces to extract some data about ZFS "dataset". Datasets are filesystems, snapshots and volumes, the reported data include information about used and available space, compression ratios, number of copies, reserved space per dataset. Space utilization is additionally broken down into space used by children, space used by snapshot and space used by the dataset itself. commit 5da67384ae7719254afd7d76d8b10558b9d3de07 Author: Max Matveev Date: Mon Aug 3 01:59:01 2009 +1000 Export zpool stats from Solaris PMDA Use libzfs to extract zpool stats like capacity, iops, bandwidth etc commit 684232a1b6178de4a07edbd0e3308f49789992fb Author: Max Matveev Date: Sun Aug 2 23:05:11 2009 +1000 Put 64 bit libraries into the right place on Solaris Solaris keeps its 64 bit shared libraries in /usr/lib/64 - use the pointer size to decide if we're building 32 or 64 bit version and push the library in the right place. commit 3cf745f62c0099577265994de97c0a755cb06f9b Author: Max Matveev Date: Sun Aug 2 04:11:32 2009 +1000 Generate packages for Solaris commit 74c7543c88bc3776b81ae8a5eab4de940537ffdd Author: Max Matveev Date: Sun Aug 2 03:03:35 2009 +1000 Allow user to choose her compiler New autoconf attempts to compile the headers as part of AC_HEADER_CHECK. It AC_PROG_CC is not called then AC_HEADER_CHECK generates scary warning - just call AC_PROG_CC unconditionally: it will honour CC from the environment but it will also do the right things about later checks. On Solaris if the alternative compiler is not GCC then don't feed it GNU options. The following changes since commit f2866c9e1bf8c9a70213ed4cd859d437b9af6bad: Mark Goodwin (1): Bump version to 2.9.0. are available in the git repository at: git://oss.sgi.com/makc/pcp solaris Max Matveev (9): Allow user to choose her compiler Generate packages for Solaris Put 64 bit libraries into the right place on Solaris Export zpool stats from Solaris PMDA Report ZFS statistics from Solaris PMDA Add network metrics to Solaris PMDA Hide instances for destroyed pools and filesystems Eliminate incidents of crime against whitespace Release zpool resources when finished updates build/GNUmakefile | 3 + build/sun/GNUmakefile | 51 ++++++ configure.in | 24 +++- src/include/builddefs.in | 9 +- src/pmdas/solaris/GNUmakefile | 9 +- src/pmdas/solaris/common.h | 14 ++- src/pmdas/solaris/data.c | 198 +++++++++++++++++++++++-- src/pmdas/solaris/help | 95 +++++++++++- src/pmdas/solaris/netmib2.c | 328 ++++++++++++++++++++++++++++++++++++++++ src/pmdas/solaris/netmib2.h | 54 +++++++ src/pmdas/solaris/pmns.network | 31 ++++ src/pmdas/solaris/pmns.zfs | 15 ++ src/pmdas/solaris/pmns.zpool | 20 +++ src/pmdas/solaris/root | 5 +- src/pmdas/solaris/solaris.c | 7 +- src/pmdas/solaris/zfs.c | 134 ++++++++++++++++ src/pmdas/solaris/zpool.c | 144 ++++++++++++++++++ 17 files changed, 1112 insertions(+), 29 deletions(-) create mode 100644 build/sun/GNUmakefile create mode 100644 src/pmdas/solaris/netmib2.c create mode 100644 src/pmdas/solaris/netmib2.h create mode 100644 src/pmdas/solaris/pmns.zfs create mode 100644 src/pmdas/solaris/pmns.zpool create mode 100644 src/pmdas/solaris/zfs.c create mode 100644 src/pmdas/solaris/zpool.c What's the current protocol for getting the changes into mainline? max From nscott@aconex.com Mon Aug 17 18:42:54 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7HNgXiu100108 for ; Mon, 17 Aug 2009 18:42:44 -0500 X-ASG-Debug-ID: 1250552595-50fc02f90000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id CE4613D9469 for ; Mon, 17 Aug 2009 16:43:15 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id BVkGywTmsCJGHp0f for ; Mon, 17 Aug 2009 16:43:15 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id 2B1547F2F0B; Tue, 18 Aug 2009 09:42:58 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id eGdznTXAlhJ1LOr3; Tue, 18 Aug 2009 09:42:58 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 7E483A503EA; Tue, 18 Aug 2009 09:42:05 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id 1DDDB4FD82; Tue, 18 Aug 2009 09:42:58 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DmkMC0FuZAaM; Tue, 18 Aug 2009 09:42:53 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 659F84FD84; Tue, 18 Aug 2009 09:42:53 +1000 (EST) Date: Tue, 18 Aug 2009 09:42:53 +1000 (EST) From: Nathan Scott To: Max Matveev Cc: pcp@oss.sgi.com Message-ID: <725672190.2312431250552573373.JavaMail.root@mail-au.aconex.com> In-Reply-To: <19081.20966.701444.175639@iinet.net.au> X-ASG-Orig-Subj: Re: [pcp] Changes to Solaris PMDA Subject: Re: [pcp] Changes to Solaris PMDA MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.13_GA_2791.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.13_GA_2791.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1250552598 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.6496 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean ----- "Max Matveev" wrote: > I've made some changes to Solaris PMDA to export information about > ZFS "things" and some network related stats. The following is in my > git repository on oss: > ... > > What's the current protocol for getting the changes into mainline? > I'll pull it into my branch when I get some time (later today hopefully) - Mark would like another 2.9.x point release before his 3.0 release, so will try to do that this week - I'd like to spend some time on pcpqa too before that, so need to find a chunk of time ... after that will push it into the master branch as next point release. It'd be great if you (and Ken) could drop by the #pcp IRC channel where these things get discussed too - its pretty low traffic volume ... :) Might be a good idea to put pre-built Solaris packages on oss too? If so, we should coordinate the release a bit better & get the "RC" source agreed on for building everywhere as early as possible. cheers. -- Nathan From makc@iinet.net.au Thu Aug 20 09:07:37 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7KE7GSD098330 for ; Thu, 20 Aug 2009 09:07:27 -0500 X-ASG-Debug-ID: 1250777253-327b02760000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from outbound.icp-qv1-irony-out1.iinet.net.au (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 4C8CC14F7530 for ; Thu, 20 Aug 2009 07:07:34 -0700 (PDT) Received: from outbound.icp-qv1-irony-out1.iinet.net.au (outbound.icp-qv1-irony-out1.iinet.net.au [203.59.1.106]) by cuda.sgi.com with ESMTP id AY57QGwlMcsLv9Ns for ; Thu, 20 Aug 2009 07:07:34 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEANv1jErL2Rwk/2dsb2JhbADXXIQYBQ X-IronPort-AV: E=Sophos;i="4.43,414,1246809600"; d="scan'208";a="572530393" Received: from unknown (HELO alma.crabbed.net) ([203.217.28.36]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP; 20 Aug 2009 22:07:29 +0800 Received: by alma.crabbed.net (Postfix, from userid 501) id F181D3BAA29; Fri, 21 Aug 2009 00:07:02 +1000 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19085.22662.937535.628551@iinet.net.au> Date: Fri, 21 Aug 2009 00:07:02 +1000 From: Max Matveev To: Nathan Scott Cc: pcp@oss.sgi.com X-ASG-Orig-Subj: Re: [pcp] Changes to Solaris PMDA Subject: Re: [pcp] Changes to Solaris PMDA In-Reply-To: <725672190.2312431250552573373.JavaMail.root@mail-au.aconex.com> References: <19081.20966.701444.175639@iinet.net.au> <725672190.2312431250552573373.JavaMail.root@mail-au.aconex.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Barracuda-Connect: outbound.icp-qv1-irony-out1.iinet.net.au[203.59.1.106] X-Barracuda-Start-Time: 1250777282 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.6733 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean On Tue, 18 Aug 2009 09:42:53 +1000 (EST), Nathan Scott wrote: nscott> I'll pull it into my branch when I get some time (later today nscott> hopefully) - Mark would like another 2.9.x point release nscott> before his 3.0 release, so will try to do that this week - nscott> I'd like to spend some time on pcpqa too before that, so need nscott> to find a chunk of time ... after that will push it into the nscott> master branch as next point release. Next two weeks are going to be crazy for me, I'm not sure I can do much other them simple things like kicking the build now and then. nscott> It'd be great if you (and Ken) could drop by the #pcp IRC nscott> channel where these things get discussed too - its pretty low nscott> traffic volume ... :) I did but there is nobody there... nscott> Might be a good idea to put pre-built Solaris packages on oss nscott> too? Solaris package right now is pretty basic - no dependencies, not pre/post scripts, just put bits on disk and let user do her "stuff". I can build them on OpenSolaris 2009.06 with either GCC or SunStudio Express compilers - it's not a lot of work. There is one issue with dbpmda which have been bugging me for some time - I get no prompt on Solaris but I have had no time to dig into it. And I've never run any pcpqa on Solaris either but pcp does get some use in our daily grind. max From nscott@aconex.com Thu Aug 20 19:02:16 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7L01unG130089 for ; Thu, 20 Aug 2009 19:02:06 -0500 X-ASG-Debug-ID: 1250812938-799c02950000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 713BE1502D06 for ; Thu, 20 Aug 2009 17:02:19 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id aDD74Btvew87Ax8u for ; Thu, 20 Aug 2009 17:02:19 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id 7AF3B2E3EA1; Fri, 21 Aug 2009 10:01:57 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id lcDAUXXswHDGkhds; Fri, 21 Aug 2009 10:01:57 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 310D2A502B5; Fri, 21 Aug 2009 10:01:03 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id 630544FD82; Fri, 21 Aug 2009 10:01:57 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sdZEuY0DANGC; Fri, 21 Aug 2009 10:01:53 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 6032B4FD85; Fri, 21 Aug 2009 10:01:53 +1000 (EST) Date: Fri, 21 Aug 2009 10:01:53 +1000 (EST) From: Nathan Scott To: Max Matveev Cc: pcp@oss.sgi.com Message-ID: <2124428364.2507821250812913256.JavaMail.root@mail-au.aconex.com> In-Reply-To: <19085.22662.937535.628551@iinet.net.au> X-ASG-Orig-Subj: Re: [pcp] Changes to Solaris PMDA Subject: Re: [pcp] Changes to Solaris PMDA MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.13_GA_2791.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.13_GA_2791.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1250812962 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.6773 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean ----- "Max Matveev" wrote: > On Tue, 18 Aug 2009 09:42:53 +1000 (EST), Nathan Scott wrote: > > nscott> I'll pull it into my branch when I get some time (later > today > nscott> hopefully) - Mark would like another 2.9.x point release > nscott> before his 3.0 release, so will try to do that this week - > nscott> I'd like to spend some time on pcpqa too before that, so > need > nscott> to find a chunk of time ... after that will push it into the > nscott> master branch as next point release. > > Next two weeks are going to be crazy for me, I'm not sure I can do > much other them simple things like kicking the build now and then. > > nscott> It'd be great if you (and Ken) could drop by the #pcp IRC > nscott> channel where these things get discussed too - its pretty > low > nscott> traffic volume ... :) Not sure how that goal is going - next week might be better for me too (haven't heard much else from Mark this week either). > I did but there is nobody there... Heh, you found the old one I think (_really_ low volume there!) ... everyone hangs out on #pcp on freenode.net nowadays (as described on the pcp web pages). > nscott> Might be a good idea to put pre-built Solaris packages on > oss > nscott> too? > > Solaris package right now is pretty basic - no dependencies, not > pre/post scripts, just put bits on disk and let user do her "stuff". > I > can build them on OpenSolaris 2009.06 with either GCC or SunStudio > Express compilers - it's not a lot of work. > > There is one issue with dbpmda which have been bugging me for some > time - I get no prompt on Solaris but I have had no time to dig into > it. Run it with "-i"? Probably isatty(3) returning something unexpected for stdin on Solaris? Windows is in a similar boat (works under the DOS prompt, but the more "exotic" shells, like msys, mishandle this API call somehow). > And I've never run any pcpqa on Solaris either but pcp does get some > use in our daily grind. OK cool, thanks Max. cheers. -- Nathan From nscott@aconex.com Sun Aug 23 20:08:14 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7O17sdS090510 for ; Sun, 23 Aug 2009 20:08:04 -0500 X-ASG-Debug-ID: 1251076100-2b9601230000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 012873F0451 for ; Sun, 23 Aug 2009 18:08:20 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id ftRAcq1Y7dT1iUg8 for ; Sun, 23 Aug 2009 18:08:20 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id 6538B650186 for ; Mon, 24 Aug 2009 11:08:15 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id DgA7cBYnDJMuL8uM for ; Mon, 24 Aug 2009 11:08:15 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 6E44BA50296 for ; Mon, 24 Aug 2009 11:07:19 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id 469964FD87 for ; Mon, 24 Aug 2009 11:08:15 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YAP1FO9IR-Ft for ; Mon, 24 Aug 2009 11:08:11 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 996A34FD84 for ; Mon, 24 Aug 2009 11:08:11 +1000 (EST) Date: Mon, 24 Aug 2009 11:08:11 +1000 (EST) From: Nathan Scott To: pcp@oss.sgi.com Message-ID: <1466362483.15041251076091570.JavaMail.root@mail-au.aconex.com> X-ASG-Orig-Subj: pcp updates Subject: pcp updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.18_GA_3011.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.18_GA_3011.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1251076123 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.52 X-Barracuda-Spam-Status: No, SCORE=-1.52 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.7053 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-Virus-Status: Clean Changes committed to git://oss.sgi.com/nathans/pcp.git src/cpan/MMV/Changes | 7 ++++ src/cpan/MMV/MMV.pm | 6 +-- src/cpan/MMV/MMV.xs | 41 +++++++++++++++++++------- src/cpan/MMV/server.pl | 17 ++++++++-- src/cpan/PMDA/Changes | 3 + src/cpan/PMDA/PMDA.pm | 4 +- src/cpan/PMDA/PMDA.xs | 20 ++++++++++++ src/include/mmv_stats.h | 2 + src/libpcp_mmv/src/mmv_stats.c | 64 ++++++++++++++++++++++++++++------------- 10 files changed, 127 insertions(+), 40 deletions(-) commit 309e7be90719ebc12bc66e9a06999909e7f66c16 Author: Nathan Scott Date: Mon Aug 24 09:03:19 2009 +1000 Add PCP::PMDA helper routines for determining native long sizes. commit 90e8cd865a6bfabf91315feea3743054a1511111 Author: Nathan Scott Date: Mon Aug 24 09:01:38 2009 +1000 Extend MMV to allow teardown of MMV file, and set errno on failure. Setting errno helps alot with diagnosing mmv_stats_init() failures. commit d4732eb5d60d8d31bb6eba69daa2787befb34325 Author: Nathan Scott Date: Mon Aug 24 08:56:24 2009 +1000 Initial stable (1.00) version of MMV Perl interface. Changes include: - added stop interface - added stats_set interface - fixed incorrect memory free on init - extend server.pl example to report idle time - fixed use of av_len return codes (off by one) commit b8cb2dd7c9b5d33e473bf0d89a64da3c2b2eec92 Merge: 1c47a24 684232a Author: Nathan Scott Date: Wed Aug 5 16:52:11 2009 +1000 Merge branch 'solaris' of git://oss.sgi.com/makc/pcp into dev -- Nathan From nscott@aconex.com Wed Aug 26 19:29:24 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73 autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7R0T4dT052171 for ; Wed, 26 Aug 2009 19:29:14 -0500 X-ASG-Debug-ID: 1251332964-3f8e02400000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 302A115513AA for ; Wed, 26 Aug 2009 17:29:25 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id CmKnKNv5CC2tFPrv for ; Wed, 26 Aug 2009 17:29:25 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id B82C130B6AE for ; Thu, 27 Aug 2009 10:29:03 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id M5KX59GK9zsYxU96 for ; Thu, 27 Aug 2009 10:29:03 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 26872A50296 for ; Thu, 27 Aug 2009 10:28:06 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id 886274FD82 for ; Thu, 27 Aug 2009 10:29:03 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xow3M0Kpu746 for ; Thu, 27 Aug 2009 10:28:59 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id BD2834FD84 for ; Thu, 27 Aug 2009 10:28:59 +1000 (EST) Date: Thu, 27 Aug 2009 10:28:59 +1000 (EST) From: Nathan Scott To: pcp@oss.sgi.com Message-ID: <390719081.72691251332939678.JavaMail.root@mail-au.aconex.com> X-ASG-Orig-Subj: pcp updates Subject: pcp updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.18_GA_3011.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.18_GA_3011.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1251332994 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0209 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.52 X-Barracuda-Spam-Status: No, SCORE=-1.52 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.7313 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-Virus-Status: Clean Changes committed to git://oss.sgi.com/nathans/pcp.git src/pmcd/pmdaproc.sh | 159 +++++++++++++++++++------------------ src/pmdas/samba/.gitignore | 2 src/pmdas/samba/GNUmakefile | 49 +++++++++++ src/pmdas/samba/Install | 43 ++++++++++ src/pmdas/samba/Remove | 25 +++++ src/pmdas/samba/pmdasamba.pl | 181 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 380 insertions(+), 79 deletions(-) commit b0cbeab4df3aec93a2f9749c7912dc8adc0b27ea Author: Nathan Scott Date: Thu Aug 27 10:21:28 2009 +1000 Rearrange platform-specific handling in pmdaproc.sh. Keep everything that does platform-specific stuff in one place now, run early on, instead of all over the shop. The code that handles determining whether the PCP::PMDA Perl module is installed is also reworked to not fail in the case where perl_opt is set, but user doesn't select that option when Install'ing a PMDA. This bit Mark with the simple PMDA, which has both Perl and C variants. commit ac9170cf888639cc731474d39cb100e9d7b2c519 Author: Nathan Scott Date: Thu Aug 27 09:20:14 2009 +1000 Initial version of the (perl-based) Samba PMDA. From nscott@aconex.com Wed Aug 26 23:35:18 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7R4YwHB062219 for ; Wed, 26 Aug 2009 23:35:08 -0500 X-ASG-Debug-ID: 1251347720-63bd00150000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 325DA4019E7 for ; Wed, 26 Aug 2009 21:35:21 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id 7rBpvoodll2CSRAE for ; Wed, 26 Aug 2009 21:35:21 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id A2C6772024A for ; Thu, 27 Aug 2009 14:35:01 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id NSwJsLn7zffJRXfi for ; Thu, 27 Aug 2009 14:35:01 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 08E71A50296 for ; Thu, 27 Aug 2009 14:34:04 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id 817734FD85 for ; Thu, 27 Aug 2009 14:35:01 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WlB+AJH10BPN for ; Thu, 27 Aug 2009 14:34:57 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 83E764FD84 for ; Thu, 27 Aug 2009 14:34:57 +1000 (EST) Date: Thu, 27 Aug 2009 14:34:57 +1000 (EST) From: Nathan Scott To: pcp@oss.sgi.com Message-ID: <1309084559.80131251347697437.JavaMail.root@mail-au.aconex.com> X-ASG-Orig-Subj: pcp updates Subject: pcp updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.18_GA_3011.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.18_GA_3011.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1251347748 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.7328 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean Changes committed to git://oss.sgi.com/nathans/pcp.git src/pmdas/GNUmakefile | 2 src/pmdas/windows/fetch.c | 91 +++++++++++++++++++++++------------------- src/pmdas/windows/libpdh.def | 1 src/pmdas/windows/libpdh.h | 20 +++++++++ src/pmdas/windows/open.c | 11 ++++- src/pmdas/windows/pmda.c | 6 ++ src/pmdas/windows/pmns.kernel | 1 7 files changed, 88 insertions(+), 44 deletions(-) commit 0758690bcbbf26db438560d5b5b94b1644979047 Author: Nathan Scott Date: Thu Aug 27 14:26:32 2009 +1000 Descend into samba PMDA during the build (SUBDIRS update). commit 9e758dd286ee2c49ecd991599a4c87a5520b9892 Author: Nathan Scott Date: Thu Aug 27 14:25:18 2009 +1000 Add kernel.all.uptime to the Windows kernel agent. This code uses the PdhGetFormattedCounterValue API, which we have not used before on Windows, hence the changes to libpdh header and dll definition files. From mort@bork.org Thu Aug 27 10:45:29 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7RFj9R5096925 for ; Thu, 27 Aug 2009 10:45:19 -0500 X-ASG-Debug-ID: 1251387935-18b6025f0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from darwin.bork.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id B208E1B7FAD8 for ; Thu, 27 Aug 2009 08:45:35 -0700 (PDT) Received: from darwin.bork.org (darwin.bork.org [65.49.60.145]) by cuda.sgi.com with ESMTP id GWKTbzAbpRP1RgHL for ; Thu, 27 Aug 2009 08:45:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by darwin.bork.org (Postfix) with ESMTP id 11A05193C5 for ; Thu, 27 Aug 2009 11:40:31 -0400 (EDT) Received: from darwin.bork.org ([127.0.0.1]) by localhost (darwin.bork.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HDiqd20o2s61 for ; Thu, 27 Aug 2009 11:40:30 -0400 (EDT) Received: from laplace.bork.org (laplace.bork.org [IPv6:2001:470:1f11:499:21a:a0ff:feec:57ab]) by darwin.bork.org (Postfix) with ESMTP id D373F1913D for ; Thu, 27 Aug 2009 11:40:30 -0400 (EDT) Received: by laplace.bork.org (Postfix, from userid 1000) id 921C2538C4; Thu, 27 Aug 2009 11:45:33 -0400 (EDT) Date: Thu, 27 Aug 2009 11:45:31 -0400 From: Martin Hicks To: pcp@oss.sgi.com X-ASG-Orig-Subj: Fix QA test 3 for non-highmem machines Subject: Fix QA test 3 for non-highmem machines Message-ID: <20090827154531.GL13193@laplace.bork.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Barracuda-Connect: darwin.bork.org[65.49.60.145] X-Barracuda-Start-Time: 1251387962 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.7371 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean This patch seems to be necessary on my x86_64 workstation to get test 003 to pass. I'll push this up to git://oss.sgi.com/mort/pcpqa.git Subject: [PATCH] Fix test 003 for machines without HIGHMEM Highmem memory stats are lacking on x86_64 workstations --- 003 | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/003 b/003 index b67e2c3..d1ed539 100755 --- a/003 +++ b/003 @@ -60,6 +60,15 @@ linux_filter() sed -e "/mem.vmstat.nr_slab_reclaimable: $unavailable/d" \ -e "/mem.vmstat.nr_slab_unreclaimable: $unavailable/d" \ -e "/mem.vmstat.nr_vmscan_write: $unavailable/d" \ + -e "/mem.vmstat.pgalloc_high: $unavailable/d" \ + -e "/mem.vmstat.pgrefill_high: $unavailable/d" \ + -e "/mem.vmstat.pgscan_direct_high: $unavailable/d" \ + -e "/mem.vmstat.pgscan_kswapd_high: $unavailable/d" \ + -e "/mem.vmstat.pgsteal_high: $unavailable/d" \ + -e "/mem.util.highFree: $unavailable/d" \ + -e "/mem.util.highTotal: $unavailable/d" \ + -e "/mem.util.lowFree: $unavailable/d" \ + -e "/mem.util.lowTotal: $unavailable/d" \ -e "/mem.util.slabReclaimable: $unavailable/d" \ -e "/mem.util.slabUnreclaimable: $unavailable/d" \ -e "/swapdev.free: $unavailable/d" \ -- 1.6.3.1 -- Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE From nscott@aconex.com Sun Aug 30 19:19:08 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_41 autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7V0Immk056046 for ; Sun, 30 Aug 2009 19:18:58 -0500 X-ASG-Debug-ID: 1251677953-182900090000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 7DA9940F096 for ; Sun, 30 Aug 2009 17:19:14 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id pB7k7jd6CbqVW9bt for ; Sun, 30 Aug 2009 17:19:14 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id 5535D322492 for ; Mon, 31 Aug 2009 10:19:09 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id 1PXqRA0BA7e8FVFi for ; Mon, 31 Aug 2009 10:19:09 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 95679A5028C for ; Mon, 31 Aug 2009 10:18:09 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id 1F34AC7A04 for ; Mon, 31 Aug 2009 10:19:09 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gYMdWs5yTyrx for ; Mon, 31 Aug 2009 10:19:04 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 6B067C7B8C for ; Mon, 31 Aug 2009 10:19:04 +1000 (EST) Date: Mon, 31 Aug 2009 10:18:57 +1000 (EST) From: Nathan Scott To: pcp@oss.sgi.com Message-ID: <926743368.122621251677937445.JavaMail.root@mail-au.aconex.com> In-Reply-To: <2flws4l9gxw.fsf@login2.uio.no> X-ASG-Orig-Subj: Missing runlevels and dependencies in init.d scripts Subject: Missing runlevels and dependencies in init.d scripts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.18_GA_3011.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.18_GA_3011.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1251677980 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.7679 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean Anyone have any opinion on this patch? Seems OK to me, if I don't hear anything, I'll merge it shortly (before next point release). thanks. ----- Forwarded Message ----- From: "Petter Reinholdtsen" To: submit@bugs.debian.org Sent: Monday, August 31, 2009 6:37:15 AM GMT +10:00 Canberra / Melbourne / Sydney Subject: Bug#544350: pcp: Missing runlevels and dependencies in init.d scripts Package: pcp Version: 2.7.4-20080306 Severity: important Tags: patch User: initscripts-ng-devel@lists.alioth.debian.org Usertags: incorrect-dependency incorrect-runlevels With dependency based boot sequencing, I discovered what I believe is a bug in the init.d scripts of this package. The list of runlevels to stop in is incomplete. The script should stop in runlevel 1 to make sure the service is started again when switching from runlevel 1 to 2-5. Also, the script should probably stop during halt (0) and reboot (6). The package should start in runlevel 4, just like in runlevels 2, 3 and 5. I suspect the list of dependencies are incomplete. The scripts used to start after the syslog collector was operational, and should probably continue to do so. Also, the scripts need files in /usr/ and should depend on $remote_fs. If the scripts themselves need to start in any specific order, the relationship should be listed explicitly in the LSB header too. Make sure the update-rc.d calls in the postinst reflect this ordering if any such dependencies should exist. This patch implement the proposed change. Without it, the script seem to fail to handle runlevel 0, 1, 4 and 6 properly, and might start to early in the boot. diff -ur pcp-2.9.0/src/pmcd/rc_pcp pcp-2.9.0-pere/src/pmcd/rc_pcp --- pcp-2.9.0/src/pmcd/rc_pcp 2009-07-01 04:32:40.000000000 +0200 +++ pcp-2.9.0-pere/src/pmcd/rc_pcp 2009-08-30 22:29:59.000000000 +0200 @@ -26,10 +26,10 @@ # e.g. SuSE, where chkconfig is a perl script. ### BEGIN INIT INFO # Provides: pcp -# Required-Start: $network $local_fs -# Required-Stop: -# Default-Start: 2 3 5 -# Default-Stop: +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Control pmcd and pmlogger daemons # Description: Configure the Performance Co-Pilot and starts logging. ### END INIT INFO diff -ur pcp-2.9.0/src/pmie/rc_pmie pcp-2.9.0-pere/src/pmie/rc_pmie --- pcp-2.9.0/src/pmie/rc_pmie 2009-04-24 02:20:10.000000000 +0200 +++ pcp-2.9.0-pere/src/pmie/rc_pmie 2009-08-30 22:30:25.000000000 +0200 @@ -20,10 +20,10 @@ # e.g. SuSE, where chkconfig is a perl script. ### BEGIN INIT INFO # Provides: pmie -# Required-Start: $network $local_fs -# Required-Stop: -# Default-Start: 2 3 5 -# Default-Stop: +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Control PCP inference engines # Description: Configures the performance monitoring inference engine ### END INIT INFO diff -ur pcp-2.9.0/src/pmproxy/rc_pmproxy pcp-2.9.0-pere/src/pmproxy/rc_pmproxy --- pcp-2.9.0/src/pmproxy/rc_pmproxy 2009-07-01 04:32:40.000000000 +0200 +++ pcp-2.9.0-pere/src/pmproxy/rc_pmproxy 2009-08-30 22:30:49.000000000 +0200 @@ -26,10 +26,10 @@ # e.g. SuSE, where chkconfig is a perl script. ### BEGIN INIT INFO # Provides: pmproxy -# Required-Start: $network $local_fs -# Required-Stop: -# Default-Start: 2 3 5 -# Default-Stop: +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Control the pmproxy daemon # Description: Control the Performance Co-Pilot protocol proxy daemon ### END INIT INFO Happy hacking, -- Petter Reinholdtsen -- Nathan From nscott@aconex.com Sun Aug 30 22:28:46 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7V3SPFi064886 for ; Sun, 30 Aug 2009 22:28:36 -0500 X-ASG-Debug-ID: 1251689333-0bfa03be0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 2BF4E158AC5C for ; Sun, 30 Aug 2009 20:28:54 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id RKABEeZHXHaRYfSg for ; Sun, 30 Aug 2009 20:28:54 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id C441F3230BF for ; Mon, 31 Aug 2009 13:28:49 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id ZZAbueQ4CePON2z0 for ; Mon, 31 Aug 2009 13:28:49 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id 25E90A5028C for ; Mon, 31 Aug 2009 13:27:50 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id AC0B64FD84 for ; Mon, 31 Aug 2009 13:28:49 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tjGVxM0uKoo8 for ; Mon, 31 Aug 2009 13:28:45 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id C6E904FD82 for ; Mon, 31 Aug 2009 13:28:45 +1000 (EST) Date: Mon, 31 Aug 2009 13:28:45 +1000 (EST) From: Nathan Scott To: pcp@oss.sgi.com Message-ID: <2031902938.136551251689325703.JavaMail.root@mail-au.aconex.com> X-ASG-Orig-Subj: pcp-gui updates Subject: pcp-gui updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.18_GA_3011.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.18_GA_3011.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1251689355 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.7693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean Changes committed to git://oss.sgi.com/nathans/pcp-gui.git src/GNUmakefile | 3 ++- src/chart/chartdialog.cpp | 4 +++- src/view/colorlist.cpp | 4 ++++ src/view/lex.l | 2 +- src/view/pmview.pro.in | 1 + src/view/text.cpp | 4 ++-- src/view/text.h | 2 +- 7 files changed, 14 insertions(+), 6 deletions(-) commit a9ab42af53362a70f40512513b0ea099178e3066 Author: Nathan Scott Date: Mon Aug 31 13:20:55 2009 +1000 On windows, "small" is defined to char in system-headers, use "little". commit d50bc32465a8ba732b3f3a6028bfb65e32d84d5b Author: Nathan Scott Date: Mon Aug 31 13:12:34 2009 +1000 QColor setAllowX11ColorNames() is for X11 platforms only, mark it as such. commit ba8ebae935b9ceacab4f893750c927e89f7c477f Author: Nathan Scott Date: Mon Aug 31 13:11:49 2009 +1000 Add COIN_DLL and SOQT_DLL for Win32 (only) builds of pmview. commit 99bbda704a90b5db6f7ad7bcac3c3bc36ed2a72a Author: Nathan Scott Date: Mon Aug 31 13:11:14 2009 +1000 Add pmview to top level SUBDIRS for devel branch builds. commit 99ef4aef9ac9f51b9bb850864f4fa73db14622fb Author: Nathan Scott Date: Mon Aug 31 13:03:38 2009 +1000 Ensure rateConvert class member is initialised in chart dialog. Could result in unexpected (and randomly so) rate-conversion of new or edited charts. 13:22 nathans@verge /source/git/pcp-gui 131> From nscott@aconex.com Mon Aug 31 18:42:31 2009 X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7VNgBeH131663 for ; Mon, 31 Aug 2009 18:42:21 -0500 X-ASG-Debug-ID: 1251762156-558800780000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 2C9631B26881 for ; Mon, 31 Aug 2009 16:42:37 -0700 (PDT) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id Hhn9X2ss38Pqb8S8 for ; Mon, 31 Aug 2009 16:42:37 -0700 (PDT) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id 05FA780C14E for ; Tue, 1 Sep 2009 09:42:35 +1000 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id SOWZnqgs6rb4IgwX for ; Tue, 01 Sep 2009 09:42:35 +1000 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id E605BA50297 for ; Tue, 1 Sep 2009 09:41:35 +1000 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id ECAEBC7A75 for ; Tue, 1 Sep 2009 09:42:35 +1000 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at gatekeeper.yarra.acx Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tdXiC9tv1vTo for ; Tue, 1 Sep 2009 09:42:32 +1000 (EST) Received: from mail-au.aconex.com (mail-au.aconex.com [192.168.102.12]) by gatekeeper.aconex.com (Postfix) with ESMTP id 2F3CBC7A72 for ; Tue, 1 Sep 2009 09:42:32 +1000 (EST) Date: Tue, 1 Sep 2009 09:42:32 +1000 (EST) From: Nathan Scott To: pcp@oss.sgi.com Message-ID: <1157845423.156341251762152150.JavaMail.root@mail-au.aconex.com> X-ASG-Orig-Subj: pcp-gui updates Subject: pcp-gui updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.192.141] X-Mailer: Zimbra 5.0.18_GA_3011.RHEL5_64 (ZimbraWebClient - [unknown] (Linux)/5.0.18_GA_3011.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1251762180 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.52 X-Barracuda-Spam-Status: No, SCORE=-1.52 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.7768 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-Virus-Status: Clean Changes committed to git://oss.sgi.com/nathans/pcp-gui.git src/view/barobj.cpp | 4 src/view/gram.y | 212 +++++++++++++++++++++---------------------- src/view/lex.l | 218 ++++++++++++++++++++++----------------------- src/view/pmview.pro.in | 2 src/view/pmview.sh.IN | 2 src/view/views/GNUmakefile | 2 src/view/views/clustervis | 2 src/view/views/dkvis | 2 src/view/views/mpvis | 2 src/view/views/nfsvis | 2 src/view/views/osvis | 2 src/view/views/pmview-args | 10 -- src/view/views/weblogvis | 2 src/view/views/webpingvis | 3 src/view/views/webvis | 2 15 files changed, 233 insertions(+), 234 deletions(-) commit 1bec540d4f7c116a19b3f31e57529e9450c6dbc3 Author: Nathan Scott Date: Tue Sep 1 08:39:32 2009 +1000 Link pmview with -lSoQt instead of -lSoQt4 for Win32 builds. commit 8b7a5ff56845c1be28fe4d061c9ff3a07413fa40 Author: Nathan Scott Date: Tue Sep 1 08:37:52 2009 +1000 Make identifiers used in parsing pmview config language unique. On Mac OS X: ALIGN conflicted with system header types. On Windows: GROUP, BOOL, INT, SOCKET, TEXT had conflicts. commit 2453595a6ee4895e747b6995a78a5ca6c41ed48b Author: Nathan Scott Date: Tue Sep 1 08:15:11 2009 +1000 Use more portable 32-bit uint type, for Win32 builds. commit 31269bd53d9c6890e12b9bd44b763e34f5fde240 Author: Nathan Scott Date: Tue Sep 1 08:09:11 2009 +1000 Install pmview frontends with executable bit set. commit b4b64b00e2bfafbc7fed111dc9ce48579ffee55b Author: Nathan Scott Date: Tue Sep 1 08:06:50 2009 +1000 Remove X11-specific arguments from pmview frontends (esp. -xrm). commit 36cf898ecd54212ef0b3eccd7efde7162dac5646 Author: Nathan Scott Date: Tue Sep 1 06:28:11 2009 +1000 Add pmview wrapper script for Mac OS X.