From mtw@corp.theblr.com Fri Apr 1 09:01:53 2005 Received: with ECARTIS (v1.0.0; list pcp); Fri, 01 Apr 2005 09:01:58 -0800 (PST) Received: from corp.theblr.com (corp.theblr.com [216.218.194.200]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j31H1rGr017595 for ; Fri, 1 Apr 2005 09:01:53 -0800 Received: (qmail 25112 invoked by uid 5000); 1 Apr 2005 16:55:44 -0000 Date: Fri, 1 Apr 2005 08:55:43 -0800 From: Mike Werner To: kenmcd@melbourne.sgi.com, markgw@sgi.com Cc: pcp@oss.sgi.com Subject: Re: PMCD-to-client Protocol Spec Message-ID: <20050401085543.A10490@corp.theblr.com> References: <20050331132108.A7227@corp.theblr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2us In-Reply-To: X-Virus-Scanned: ClamAV 0.83/799/Fri Apr 1 02:49:13 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 438 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: mtw@protomagic.com Precedence: bulk X-list: pcp Hi Ken & Mark Thanks for the helpful info. Ken - as to why: I'm exploring some hairbrained ideas for using pcp data without C, e.g. Java. Do you know of any ports for alternate languages? - mtw kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:15:11PM +1000 On Thu, 31 Mar 2005, Mike Werner wrote: > PCP Team, > > Is there a specification (ASN.1 or otherwise) of the > PMCD-to-client protocol, which I might obtain? I can assure you it is _not_ ASN.1 ... PCP is for analyzing performance problems, not creating them ... 8^)> The message protocol and format is not a secret pminfo -D pdu -v will dump out the messages flowing in both directions between the client and pmcd. We don't have any documentation beyond that ... but more to the point I'm kinda curious as to why you're interested in this, as the only sensible way to use the infrastructure is via libpcp and there is detailed documentation available on that API. Roughly, each libpcp call maps onto 1 sent message and 1 received message. From sprzepiora@gmail.com Fri Apr 1 17:27:33 2005 Received: with ECARTIS (v1.0.0; list pcp); Fri, 01 Apr 2005 17:27:39 -0800 (PST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j321RW1o025645 for ; Fri, 1 Apr 2005 17:27:33 -0800 Received: by rproxy.gmail.com with SMTP id a36so75219rnf for ; Fri, 01 Apr 2005 17:27:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=t6DMrso2fr7JXLpLaMEOZ87CXaxqg3AXwBUPH0BYPe+O1UCDKQ4oWq+bl3pza6QgdunUcwGLDuKL4V8mpk/OgJ+4qt+cINzfVPIHRvQ2x/nYhKhTIo1MjCU9q3aepCKI61q6FIgIioj0PWW2IKPxctlagqlwql1wIyd6tF19kUE= Received: by 10.38.104.35 with SMTP id b35mr3052280rnc; Fri, 01 Apr 2005 17:27:32 -0800 (PST) Received: by 10.38.83.80 with HTTP; Fri, 1 Apr 2005 17:27:32 -0800 (PST) Message-ID: Date: Fri, 1 Apr 2005 20:27:32 -0500 From: Stephen Przepiora Reply-To: steve@przepiora.org To: Mike Werner Subject: Re: PMCD-to-client Protocol Spec Cc: kenmcd@melbourne.sgi.com, markgw@sgi.com, pcp@oss.sgi.com In-Reply-To: <20050401085543.A10490@corp.theblr.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1457_25145194.1112405252259" References: <20050331132108.A7227@corp.theblr.com> <20050401085543.A10490@corp.theblr.com> X-Virus-Scanned: ClamAV 0.83/799/Fri Apr 1 02:49:13 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 439 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: sprzepiora@gmail.com Precedence: bulk X-list: pcp ------=_Part_1457_25145194.1112405252259 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Have you tried JNI? I have the beginnings of a JNI implementation, but=20 stopped because I needed to use it in a threaded enviroment. I am currently= =20 reworking how the application will run. Steve On Apr 1, 2005 11:55 AM, Mike Werner wrote: >=20 > Hi Ken & Mark >=20 > Thanks for the helpful info. >=20 > Ken - as to why: I'm exploring some hairbrained ideas > for using pcp data without C, e.g. Java. Do you know > of any ports for alternate languages? >=20 > - mtw >=20 > kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:15:11PM +1000 >=20 > On Thu, 31 Mar 2005, Mike Werner wrote: >=20 > > PCP Team, > > > > Is there a specification (ASN.1 or otherwise) of the > > PMCD-to-client protocol, which I might obtain? >=20 > I can assure you it is _not_ ASN.1 ... PCP is for analyzing performance > problems, not creating them ... 8^)> >=20 > The message protocol and format is not a secret >=20 > pminfo -D pdu -v >=20 > will dump out the messages flowing in both directions between the > client and pmcd. >=20 > We don't have any documentation beyond that ... but more to the point > I'm kinda curious as to why you're interested in this, as the only > sensible way to use the infrastructure is via libpcp and there is > detailed documentation available on that API. >=20 > Roughly, each libpcp call maps onto 1 sent message and 1 received message= . >=20 > ------=_Part_1457_25145194.1112405252259 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Have you tried JNI? I have the beginnings of a JNI implementation, but stopped because I needed to use it in a threaded enviroment. I am currently reworking how the application will run.

Steve

On Apr 1, 2005 11:55 AM, Mike Werner <= mtw@protomagic.com> wrote:
Hi Ken & Mark

Thanks for the helpful info= .

Ken - as to why: I'm exploring some hairbrained ideas
for using= pcp data without C, e.g. Java. Do you know
of any ports for alternate l= anguages?

- mtw

   kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:1= 5:11PM +1000

   On Thu, 31 Mar 2005, Mike Werner wrote:
   > PCP Team,
   >
   > = Is there a specification (ASN.1 or otherwise) of the
   > P= MCD-to-client protocol, which I might obtain?

   I can ass= ure you it is _not_ ASN.1 ... PCP is for analyzing performance
 &nb= sp; problems, not creating them ... 8^)>

   The message= protocol and format is not a secret

     &= nbsp;  pminfo -D pdu -v

   will dump out the mes= sages flowing in both directions between the
   client and pmc= d.

   We don't have any documentation beyond that ... but = more to the point
   I'm kinda curious as to why you're intere= sted in this, as the only
   sensible way to use the infrastru= cture is via libpcp and there is
   detailed documentation ava= ilable on that API.

   Roughly, each libpcp call maps onto= 1 sent message and 1 received message.


------=_Part_1457_25145194.1112405252259-- From mtw@corp.theblr.com Sun Apr 3 10:32:52 2005 Received: with ECARTIS (v1.0.0; list pcp); Sun, 03 Apr 2005 10:32:57 -0700 (PDT) Received: from corp.theblr.com (corp.theblr.com [216.218.194.200]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j33HWq2A004968 for ; Sun, 3 Apr 2005 10:32:52 -0700 Received: (qmail 29376 invoked by uid 5000); 3 Apr 2005 17:25:58 -0000 Date: Sun, 3 Apr 2005 10:25:58 -0700 From: Mike Werner To: steve@przepiora.org Cc: pcp@oss.sgi.com Subject: Java JNI PMAPI [ was Re: PMCD-to-client Protocol Spec] Message-ID: <20050403102558.A18789@corp.theblr.com> References: <20050331132108.A7227@corp.theblr.com> <20050401085543.A10490@corp.theblr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2us In-Reply-To: X-Virus-Scanned: ClamAV 0.83/802/Sat Apr 2 06:49:46 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 440 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: mtw@protomagic.com Precedence: bulk X-list: pcp Hi Steve, Regarding Java, I have just recently begun exploring the idea of a JNI implementation. You seem much further along. Are you planning to release it? Are you interested in collaborating? How complete is your wrapping of the PMAPI? - mtw Stephen Przepiora wrote on Fri, Apr 01, 2005 at 08:27:32PM -0500 Have you tried JNI? I have the beginnings of a JNI implementation, but stopped because I needed to use it in a threaded enviroment. I am currently reworking how the application will run. Steve On Apr 1, 2005 11:55 AM, Mike Werner wrote: > > Hi Ken & Mark > > Thanks for the helpful info. > > Ken - as to why: I'm exploring some hairbrained ideas > for using pcp data without C, e.g. Java. Do you know > of any ports for alternate languages? > > - mtw > > kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:15:11PM +1000 > > On Thu, 31 Mar 2005, Mike Werner wrote: > > > PCP Team, > > > > Is there a specification (ASN.1 or otherwise) of the > > PMCD-to-client protocol, which I might obtain? > > I can assure you it is _not_ ASN.1 ... PCP is for analyzing performance > problems, not creating them ... 8^)> > > The message protocol and format is not a secret > > pminfo -D pdu -v > > will dump out the messages flowing in both directions between the > client and pmcd. > > We don't have any documentation beyond that ... but more to the point > I'm kinda curious as to why you're interested in this, as the only > sensible way to use the infrastructure is via libpcp and there is > detailed documentation available on that API. > > Roughly, each libpcp call maps onto 1 sent message and 1 received message. > > From kenmcd@melbourne.sgi.com Sun Apr 3 16:50:19 2005 Received: with ECARTIS (v1.0.0; list pcp); Sun, 03 Apr 2005 16:50:27 -0700 (PDT) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j33NoH2Q027892 for ; Sun, 3 Apr 2005 16:50:18 -0700 Received: from rattle.melbourne.sgi.com (rattle.melbourne.sgi.com [134.14.55.145]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id JAA05000; Mon, 4 Apr 2005 09:49:41 +1000 Date: Mon, 4 Apr 2005 09:49:41 +1000 From: Ken McDonell To: Mike Werner cc: steve@przepiora.org, Subject: Re: Java JNI PMAPI [ was Re: PMCD-to-client Protocol Spec] In-Reply-To: <20050403102558.A18789@corp.theblr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: ClamAV 0.83/802/Sat Apr 2 06:49:46 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 441 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: kenmcd@melbourne.sgi.com Precedence: bulk X-list: pcp We have an old (dead) Java project within SGI ... we never released this and it is moribund. If there is wider interest, I'd be receptive to any proposals as to how we might be able to assist. On Sun, 3 Apr 2005, Mike Werner wrote: > Hi Steve, > > Regarding Java, I have just recently begun exploring the > idea of a JNI implementation. You seem much further along. > > Are you planning to release it? > Are you interested in collaborating? > How complete is your wrapping of the PMAPI? > > - mtw > > Stephen Przepiora wrote on Fri, Apr 01, 2005 at 08:27:32PM -0500 > > Have you tried JNI? I have the beginnings of a JNI implementation, but > stopped because I needed to use it in a threaded enviroment. I am currently > reworking how the application will run. > > Steve > > On Apr 1, 2005 11:55 AM, Mike Werner wrote: > > > > Hi Ken & Mark > > > > Thanks for the helpful info. > > > > Ken - as to why: I'm exploring some hairbrained ideas > > for using pcp data without C, e.g. Java. Do you know > > of any ports for alternate languages? > > > > - mtw > > > > kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:15:11PM +1000 > > > > On Thu, 31 Mar 2005, Mike Werner wrote: > > > > > PCP Team, > > > > > > Is there a specification (ASN.1 or otherwise) of the > > > PMCD-to-client protocol, which I might obtain? > > > > I can assure you it is _not_ ASN.1 ... PCP is for analyzing performance > > problems, not creating them ... 8^)> > > > > The message protocol and format is not a secret > > > > pminfo -D pdu -v > > > > will dump out the messages flowing in both directions between the > > client and pmcd. > > > > We don't have any documentation beyond that ... but more to the point > > I'm kinda curious as to why you're interested in this, as the only > > sensible way to use the infrastructure is via libpcp and there is > > detailed documentation available on that API. > > > > Roughly, each libpcp call maps onto 1 sent message and 1 received message. > > > > > From mtw@corp.theblr.com Sun Apr 3 21:24:41 2005 Received: with ECARTIS (v1.0.0; list pcp); Sun, 03 Apr 2005 21:24:45 -0700 (PDT) Received: from corp.theblr.com (corp.theblr.com [216.218.194.200]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j344OeJW017041 for ; Sun, 3 Apr 2005 21:24:41 -0700 Received: (qmail 26895 invoked by uid 5000); 4 Apr 2005 04:23:55 -0000 Date: Sun, 3 Apr 2005 21:23:54 -0700 From: Mike Werner To: Ken McDonell Cc: steve@przepiora.org, pcp@oss.sgi.com Subject: Re: Java JNI PMAPI [ was Re: PMCD-to-client Protocol Spec] Message-ID: <20050403212354.A22561@corp.theblr.com> References: <20050403102558.A18789@corp.theblr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2us In-Reply-To: X-Virus-Scanned: ClamAV 0.83/802/Sat Apr 2 06:49:46 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 442 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: mtw@protomagic.com Precedence: bulk X-list: pcp Hi Ken, That's fine news. Is any of that old, dead Java project eligible for release as Open Source? What can you tell about what you have? - mtw Ken McDonell wrote on Mon, Apr 04, 2005 at 09:49:41AM +1000 We have an old (dead) Java project within SGI ... we never released this and it is moribund. If there is wider interest, I'd be receptive to any proposals as to how we might be able to assist. On Sun, 3 Apr 2005, Mike Werner wrote: > Hi Steve, > > Regarding Java, I have just recently begun exploring the > idea of a JNI implementation. You seem much further along. > > Are you planning to release it? > Are you interested in collaborating? > How complete is your wrapping of the PMAPI? > > - mtw > > Stephen Przepiora wrote on Fri, Apr 01, 2005 at 08:27:32PM -0500 > > Have you tried JNI? I have the beginnings of a JNI implementation, but > stopped because I needed to use it in a threaded enviroment. I am currently > reworking how the application will run. > > Steve > > On Apr 1, 2005 11:55 AM, Mike Werner wrote: > > > > Hi Ken & Mark > > > > Thanks for the helpful info. > > > > Ken - as to why: I'm exploring some hairbrained ideas > > for using pcp data without C, e.g. Java. Do you know > > of any ports for alternate languages? > > > > - mtw > > > > kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:15:11PM +1000 > > > > On Thu, 31 Mar 2005, Mike Werner wrote: > > > > > PCP Team, > > > > > > Is there a specification (ASN.1 or otherwise) of the > > > PMCD-to-client protocol, which I might obtain? > > > > I can assure you it is _not_ ASN.1 ... PCP is for analyzing performance > > problems, not creating them ... 8^)> > > > > The message protocol and format is not a secret > > > > pminfo -D pdu -v > > > > will dump out the messages flowing in both directions between the > > client and pmcd. > > > > We don't have any documentation beyond that ... but more to the point > > I'm kinda curious as to why you're interested in this, as the only > > sensible way to use the infrastructure is via libpcp and there is > > detailed documentation available on that API. > > > > Roughly, each libpcp call maps onto 1 sent message and 1 received message. > > > > > From markgw@sgi.com Sun Apr 3 22:03:36 2005 Received: with ECARTIS (v1.0.0; list pcp); Sun, 03 Apr 2005 22:03:41 -0700 (PDT) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j3453Z3L019124 for ; Sun, 3 Apr 2005 22:03:35 -0700 Received: from woolami.melbourne.sgi.com (woolami.melbourne.sgi.com [134.14.55.160]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id PAA12476; Mon, 4 Apr 2005 15:02:58 +1000 Date: Mon, 4 Apr 2005 15:00:12 +1000 (EST) From: Mark Goodwin X-X-Sender: markgw@woolami.melbourne.sgi.com To: Mike Werner cc: Ken McDonell , steve@przepiora.org, pcp@oss.sgi.com Subject: Re: Java JNI PMAPI [ was Re: PMCD-to-client Protocol Spec] In-Reply-To: <20050403212354.A22561@corp.theblr.com> Message-ID: References: <20050403102558.A18789@corp.theblr.com> <20050403212354.A22561@corp.theblr.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: ClamAV 0.83/802/Sat Apr 2 06:49:46 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 443 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: markgw@sgi.com Precedence: bulk X-list: pcp On Sun, 3 Apr 2005, Mike Werner wrote: > I'll answer for Ken since he's currently on vacation for a few days. > Is any of that old, dead Java project eligible for release > as Open Source? probably, but depends on a few things. You'll have to wait a few days for an answer to this. > What can you tell about what you have? we have (yet) another PCP daemon called pmjd ("Performance Metric Java Daemon"). Basically, it bahaves like an inetd service: i.e listens on a socket and forks a daemon to service each client connection. Each instance of the pmjd service daemon responds to PCP commands with an ascii protocol. The commands allow a client using this protocol to perform most of the PMAPI functionality, e.g. create and manipulate PCP contexts (live or archive), walk the name space, fetch metric descriptors, enumerate the instance domain for a metric, and (of course) fetch metric values. It's a very simple protocol. Clients can be written in basically any language supporting a tcp/inet API, e.g. glibc, Perl, PHP, Java, Python, Telnet, whatever. There is also a tiny library and Java class that supports a JNI linkage. This simply passes strings via a function call rather than via a socket and would be used for efficiency with local live contexts, and (especially) for replaying PCP archives. Thanks -- Mark From mtw@corp.theblr.com Wed Apr 6 00:26:51 2005 Received: with ECARTIS (v1.0.0; list pcp); Wed, 06 Apr 2005 00:26:56 -0700 (PDT) Received: from corp.theblr.com (corp.theblr.com [216.218.194.200]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j367Qp47010418 for ; Wed, 6 Apr 2005 00:26:51 -0700 Received: (qmail 2835 invoked by uid 5000); 6 Apr 2005 07:23:46 -0000 Date: Wed, 6 Apr 2005 00:23:45 -0700 From: Mike Werner To: Mark Goodwin Cc: pcp@oss.sgi.com Subject: Re: Java JNI PMAPI [ was Re: PMCD-to-client Protocol Spec] Message-ID: <20050406002345.C26376@corp.theblr.com> References: <20050403102558.A18789@corp.theblr.com> <20050403212354.A22561@corp.theblr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2us In-Reply-To: X-Virus-Scanned: ClamAV 0.83/808/Tue Apr 5 02:54:46 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 444 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: mtw@protomagic.com Precedence: bulk X-list: pcp Hi Mark, Whoa. I hadn't expected that you would have a Java _Server_ lying around. I like the bit about having a simple comm protocol, because my current interests lie on the client side. Having java on the server side causes me some concern regarding performance and dependability. In resource strained scenarios, I would expect pmjd to be more fragile than pmcd. Have you seen so, or differently? - mtw Mark Goodwin wrote on Mon, Apr 04, 2005 at 03:00:12PM +1000 I'll answer for Ken since he's currently on vacation for a few days. On Sun, 3 Apr 2005, Mike Werner wrote: > > Is any of that old, dead Java project eligible for release > as Open Source? probably, but depends on a few things. You'll have to wait a few days for an answer to this. > What can you tell about what you have? we have (yet) another PCP daemon called pmjd ("Performance Metric Java Daemon"). Basically, it bahaves like an inetd service: i.e listens on a socket and forks a daemon to service each client connection. Each instance of the pmjd service daemon responds to PCP commands with an ascii protocol. The commands allow a client using this protocol to perform most of the PMAPI functionality, e.g. create and manipulate PCP contexts (live or archive), walk the name space, fetch metric descriptors, enumerate the instance domain for a metric, and (of course) fetch metric values. It's a very simple protocol. Clients can be written in basically any language supporting a tcp/inet API, e.g. glibc, Perl, PHP, Java, Python, Telnet, whatever. There is also a tiny library and Java class that supports a JNI linkage. This simply passes strings via a function call rather than via a socket and would be used for efficiency with local live contexts, and (especially) for replaying PCP archives. Thanks -- Mark From mtw@corp.theblr.com Fri Apr 8 10:24:24 2005 Received: with ECARTIS (v1.0.0; list pcp); Fri, 08 Apr 2005 10:24:31 -0700 (PDT) Received: from corp.theblr.com (corp.theblr.com [216.218.194.200]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j38HOOCn025712 for ; Fri, 8 Apr 2005 10:24:24 -0700 Received: (qmail 19469 invoked by uid 5000); 8 Apr 2005 17:23:42 -0000 Date: Fri, 8 Apr 2005 10:23:42 -0700 From: Mike Werner To: steve@przepiora.org Cc: pcp@oss.sgi.com Subject: Re: Java JNI PMAPI Message-ID: <20050408102342.A13836@corp.theblr.com> References: <20050331132108.A7227@corp.theblr.com> <20050401085543.A10490@corp.theblr.com> <20050403102558.A18789@corp.theblr.com> <20050406000707.B26376@corp.theblr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2us In-Reply-To: X-Virus-Scanned: ClamAV 0.83/815/Thu Apr 7 12:37:59 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 445 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: mtw@protomagic.com Precedence: bulk X-list: pcp Hi Steve, I'm glad to hear I was mistaken. I'd love to have a look at the JNI/C++ code that you have. Will you send me a tar.gz ? The Tomcat-based system you are describing reminds me of Sun's Management Center product. Users/clients connect to a central server that, in turn, connects to the several target machines. If I remember correctly, the SunMC server is also Java-based. I like that scheme for it's security features. For performance, dependability, and flexibility I prefer a decentralized scheme, a la PCP. Would SGI's jmcd daemon suit your purpose? - mtw Stephen Przepiora wrote on Wed, Apr 06, 2005 at 08:59:27AM -0400 You got me wrong. I allways give short answers :) You can have total control over it as the basic architecture is flawed for me. I _NEED_ to use it in a java multithreaded environment (tomcat). Synchronization would not work as it would slow down collection of the metrics to much. I was going to move into a deamon with a simple protocol much like what Ken talked about. The JNI interface really is simple. It is a basically a wrapper around a bunch of C++ classes I wrote to use the pmapi. I think that is much more interesting than the JNI interface. Moving forward I was planning on dumping the JNI interface, and using the C++ classes to write a daemon that will do the PCP work. Then write some java classes that would connect to the daemon and get the metrics. Steve On Apr 6, 2005 3:07 AM, Mike Werner wrote: > > Hi Steve, > > Ok. The rest seems pretty straightforward from there. > From your short answer I'm guessing that you're not > interested in having any outside involvement. Feel > free to drop me a line if you want to chat or tell > any more. Happy coding. > > Cheers, > > - mtw > > Stephen Przepiora wrote on Mon, Apr 04, 2005 at 06:49:49AM -0500 > > It will fetch metrics. > > On Apr 3, 2005 12:25 PM, Mike Werner wrote: > > > > Hi Steve, > > > > Regarding Java, I have just recently begun exploring the > > idea of a JNI implementation. You seem much further along. > > > > Are you planning to release it? > > Are you interested in collaborating? > > How complete is your wrapping of the PMAPI? > > > > - mtw > > > > Stephen Przepiora wrote on Fri, Apr 01, 2005 at 08:27:32PM -0500 > > > > Have you tried JNI? I have the beginnings of a JNI implementation, but > > stopped because I needed to use it in a threaded enviroment. I am > > currently > > reworking how the application will run. > > > > Steve > > > > On Apr 1, 2005 11:55 AM, Mike Werner wrote: > > > > > > Hi Ken & Mark > > > > > > Thanks for the helpful info. > > > > > > Ken - as to why: I'm exploring some hairbrained ideas > > > for using pcp data without C, e.g. Java. Do you know > > > of any ports for alternate languages? > > > > > > - mtw > > > > > > kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:15:11PM > +1000 > > > > > > On Thu, 31 Mar 2005, Mike Werner wrote: > > > > > > > PCP Team, > > > > > > > > Is there a specification (ASN.1 or otherwise) of the > > > > PMCD-to-client protocol, which I might obtain? > > > > > > I can assure you it is _not_ ASN.1 ... PCP is for analyzing > performance > > > problems, not creating them ... 8^)> > > > > > > The message protocol and format is not a secret > > > > > > pminfo -D pdu -v > > > > > > will dump out the messages flowing in both directions between the > > > client and pmcd. > > > > > > We don't have any documentation beyond that ... but more to the point > > > I'm kinda curious as to why you're interested in this, as the only > > > sensible way to use the infrastructure is via libpcp and there is > > > detailed documentation available on that API. > > > > > > Roughly, each libpcp call maps onto 1 sent message and 1 received > > message. > > > > > > > > > > > > From sprzepiora@gmail.com Fri Apr 8 10:50:04 2005 Received: with ECARTIS (v1.0.0; list pcp); Fri, 08 Apr 2005 10:50:09 -0700 (PDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j38Ho3wV026195 for ; Fri, 8 Apr 2005 10:50:03 -0700 Received: by zproxy.gmail.com with SMTP id 8so223983nzo for ; Fri, 08 Apr 2005 10:49:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=VO/0DqtH9zfK0cF1kNU62Bn4um8dcnWVQY8UnzQx6IdpiTK6Ht6YzBVZXqb1ASf8OPwv0hbdZ5/SteQBCPlVuuJyre4dHnzpE6w8CwcwjXjJZUjT1n5uNa2YvyWvvzO1i8wyKKjAVKiBRevVXvD5O2fa4apD/h1z58KGtbmGXtc= Received: by 10.36.23.1 with SMTP id 1mr99028nzw; Fri, 08 Apr 2005 10:49:57 -0700 (PDT) Received: by 10.36.58.4 with HTTP; Fri, 8 Apr 2005 10:49:57 -0700 (PDT) Message-ID: Date: Fri, 8 Apr 2005 13:49:57 -0400 From: Stephen Przepiora Reply-To: steve@przepiora.org To: Mike Werner Subject: Re: Java JNI PMAPI Cc: pcp@oss.sgi.com In-Reply-To: <20050408102342.A13836@corp.theblr.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14337_28888260.1112982597897" References: <20050331132108.A7227@corp.theblr.com> <20050401085543.A10490@corp.theblr.com> <20050403102558.A18789@corp.theblr.com> <20050406000707.B26376@corp.theblr.com> <20050408102342.A13836@corp.theblr.com> X-Virus-Scanned: ClamAV 0.83/815/Thu Apr 7 12:37:59 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 446 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: sprzepiora@gmail.com Precedence: bulk X-list: pcp ------=_Part_14337_28888260.1112982597897 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline From the short description of jmcd I believe it would. Steve On Apr 8, 2005 1:23 PM, Mike Werner wrote: >=20 > Hi Steve, >=20 > I'm glad to hear I was mistaken. I'd love to have a look at the > JNI/C++ code that you have. Will you send me a tar.gz ? >=20 > The Tomcat-based system you are describing reminds me of Sun's > Management Center product. Users/clients connect to a central > server that, in turn, connects to the several target machines. > If I remember correctly, the SunMC server is also Java-based. > I like that scheme for it's security features. For performance, > dependability, and flexibility I prefer a decentralized scheme, > a la PCP. >=20 > Would SGI's jmcd daemon suit your purpose? >=20 > - mtw >=20 > Stephen Przepiora wrote on Wed, Apr 06, 2005 at 08:59:27AM -0400 >=20 > You got me wrong. I allways give short answers :) You can have total=20 > control > over it as the basic architecture is flawed for me. I _NEED_ to use it in= =20 > a > java multithreaded environment (tomcat). Synchronization would not work a= s > it would slow down collection of the metrics to much. I was going to move > into a deamon with a simple protocol much like what Ken talked about. >=20 > The JNI interface really is simple. It is a basically a wrapper around a > bunch of C++ classes I wrote to use the pmapi. I think that is much more > interesting than the JNI interface. >=20 > Moving forward I was planning on dumping the JNI interface, and using the > C++ classes to write a daemon that will do the PCP work. Then write some > java classes that would connect to the daemon and get the metrics. >=20 > Steve >=20 > On Apr 6, 2005 3:07 AM, Mike Werner wrote: > > > > Hi Steve, > > > > Ok. The rest seems pretty straightforward from there. > > From your short answer I'm guessing that you're not > > interested in having any outside involvement. Feel > > free to drop me a line if you want to chat or tell > > any more. Happy coding. > > > > Cheers, > > > > - mtw > > > > Stephen Przepiora wrote on Mon, Apr 04, 2005 at 06:49:49AM -0500 > > > > It will fetch metrics. > > > > On Apr 3, 2005 12:25 PM, Mike Werner wrote: > > > > > > Hi Steve, > > > > > > Regarding Java, I have just recently begun exploring the > > > idea of a JNI implementation. You seem much further along. > > > > > > Are you planning to release it? > > > Are you interested in collaborating? > > > How complete is your wrapping of the PMAPI? > > > > > > - mtw > > > > > > Stephen Przepiora wrote on Fri, Apr 01, 2005 at 08:27:32PM -0500 > > > > > > Have you tried JNI? I have the beginnings of a JNI implementation, bu= t > > > stopped because I needed to use it in a threaded enviroment. I am > > > currently > > > reworking how the application will run. > > > > > > Steve > > > > > > On Apr 1, 2005 11:55 AM, Mike Werner wrote: > > > > > > > > Hi Ken & Mark > > > > > > > > Thanks for the helpful info. > > > > > > > > Ken - as to why: I'm exploring some hairbrained ideas > > > > for using pcp data without C, e.g. Java. Do you know > > > > of any ports for alternate languages? > > > > > > > > - mtw > > > > > > > > kenmcd@melbourne.sgi.com wrote on Fri, Apr 01, 2005 at 12:15:11PM > > +1000 > > > > > > > > On Thu, 31 Mar 2005, Mike Werner wrote: > > > > > > > > > PCP Team, > > > > > > > > > > Is there a specification (ASN.1 or otherwise) of the > > > > > PMCD-to-client protocol, which I might obtain? > > > > > > > > I can assure you it is _not_ ASN.1 ... PCP is for analyzing > > performance > > > > problems, not creating them ... 8^)> > > > > > > > > The message protocol and format is not a secret > > > > > > > > pminfo -D pdu -v > > > > > > > > will dump out the messages flowing in both directions between the > > > > client and pmcd. > > > > > > > > We don't have any documentation beyond that ... but more to the=20 > point > > > > I'm kinda curious as to why you're interested in this, as the only > > > > sensible way to use the infrastructure is via libpcp and there is > > > > detailed documentation available on that API. > > > > > > > > Roughly, each libpcp call maps onto 1 sent message and 1 received > > > message. > > > > > > > > > > > > > > > > > > >=20 > ------=_Part_14337_28888260.1112982597897 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline From the short description of jmcd I believe it would.

Steve

On Apr 8, 2005 1:23 PM, Mike Werner <mtw@protomagic.com> wrote:
Hi Steve,

I'm glad to hear I was mist= aken.  I'd love to have a look at the
JNI/C++ code that you ha= ve.  Will you send me a tar.gz ?

The Tomcat-based system y= ou are describing reminds me of Sun's
Management Center product. &n= bsp;Users/clients connect to a central
server that, in turn, connects to= the several target machines.
If I remember correctly, the SunMC server = is also Java-based.
I like that scheme for it's security features. =  For performance,
dependability, and flexibility I prefer a decentr= alized scheme,
a la PCP.

Would SGI's jmcd daemon suit your purpos= e?

- mtw

   Stephen Przepiora wrote on Wed, Apr 06,= 2005 at 08:59:27AM -0400

   You got me wrong. I allways g= ive short answers :) You can have total control
   over it as = the basic architecture is flawed for me. I _NEED_ to use it in a
 &= nbsp; java multithreaded environment (tomcat). Synchronization would not wo= rk as
   it would slow down collection of the metrics to much.= I was going to move
   into a deamon with a simple protocol m= uch like what Ken talked about.

   The JNI interface reall= y is simple. It is a basically a wrapper around a
   bunch of = C++ classes I wrote to use the pmapi. I think that is much more
 &n= bsp; interesting than the JNI interface.

   Moving forward= I was planning on dumping the JNI interface, and using the
  = C++ classes to write a daemon that will do the PCP work. Then write some   java classes that would connect to the daemon and get the me= trics.

   Steve

   On Apr 6, 2005 3:07 AM= , Mike Werner <mtw@protomagic.com<= /a>> wrote:
   >
   > Hi Steve,
 = ;  >
   > Ok. The rest seems pretty straightforward= from there.
   > From your short answer I'm guessing that = you're not
   > interested in having any outside involvemen= t. Feel
   > free to drop me a line if you want to chat or = tell
   > any more. Happy coding.
   >
&= nbsp;  > Cheers,
   >
   > - mtw   >
   > Stephen Przepiora wrote on Mon, Apr= 04, 2005 at 06:49:49AM -0500
   >
   > It = will fetch metrics.
   >
   > On Apr 3, 200= 5 12:25 PM, Mike Werner <
mtw@proto= magic.com> wrote:
   > >
   > >= ; Hi Steve,
   > >
   > > Regarding J= ava, I have just recently begun exploring the
   > > ide= a of a JNI implementation. You seem much further along.
   >= ; >
   > > Are you planning to release it?
 &= nbsp; > > Are you interested in collaborating?
   > &= gt; How complete is your wrapping of the PMAPI?
   > >   > > - mtw
   > >
   &g= t; > Stephen Przepiora wrote on Fri, Apr 01, 2005 at 08:27:32PM -0500   > >
   > > Have you tried JNI? I hav= e the beginnings of a JNI implementation, but
   > > sto= pped because I needed to use it in a threaded enviroment. I am
 &nb= sp; > > currently
   > > reworking how the applica= tion will run.
   > >
   > > Steve   > >
   > > On Apr 1, 2005 11:55 AM, = Mike Werner <mtw@protomagic.com> wrote:
   > > >
   > > > = Hi Ken & Mark
   > > >
   > > = > Thanks for the helpful info.
   > > >
 &= nbsp; > > > Ken - as to why: I'm exploring some hairbrained ideas<= br>   > > > for using pcp data without C, e.g. Java. Do = you know
   > > > of any ports for alternate language= s?
   > > >
   > > > - mtw
&= nbsp;  > > >
   > > >
kenmcd@melbourne.sgi.com wrote on Fri, Apr 0= 1, 2005 at 12:15:11PM
   > +1000
   > > = >
   > > > On Thu, 31 Mar 2005, Mike Werner wrote:=
   > > >
   > > > > PCP Tea= m,
   > > > >
   > > > > = Is there a specification (ASN.1 or otherwise) of the
   > &= gt; > > PMCD-to-client protocol, which I might obtain?
  = ; > > >
   > > > I can assure you it is _not= _ ASN.1 ... PCP is for analyzing
   > performance
 =   > > > problems, not creating them ... 8^)>
 &nbs= p; > > >
   > > > The message protocol and f= ormat is not a secret
   > > >
   > &= gt; > pminfo -D pdu -v
   > > >
   &g= t; > > will dump out the messages flowing in both directions between = the
   > > > client and pmcd.
   > &g= t; >
   > > > We don't have any documentation beyo= nd that ... but more to the point
   > > > I'm kinda = curious as to why you're interested in this, as the only
   &g= t; > > sensible way to use the infrastructure is via libpcp and there= is
   > > > detailed documentation available on that= API.
   > > >
   > > > Roughly= , each libpcp call maps onto 1 sent message and 1 received
   = > > message.
   > > >
   > >= >
   > >
   > >
   &= gt;
   >


------=_Part_14337_28888260.1112982597897-- From mtw@corp.theblr.com Mon Apr 11 10:48:29 2005 Received: with ECARTIS (v1.0.0; list pcp); Mon, 11 Apr 2005 10:48:33 -0700 (PDT) Received: from corp.theblr.com (corp.theblr.com [216.218.194.200]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j3BHmSas030023 for ; Mon, 11 Apr 2005 10:48:29 -0700 Received: (qmail 17024 invoked by uid 5000); 11 Apr 2005 16:37:15 -0000 Date: Mon, 11 Apr 2005 09:37:15 -0700 From: Mike Werner To: steve@przepiora.org, kenmcd@melbourne.sgi.com Cc: pcp@oss.sgi.com Subject: Re: Java JNI PMAPI Message-ID: <20050411093715.A15051@corp.theblr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2us X-Virus-Scanned: ClamAV 0.83/819/Sun Apr 10 17:01:27 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 447 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: mtw@protomagic.com Precedence: bulk X-list: pcp Hi Steve P. & Ken M., I think it would be helpful to have a Java JNI interface to the PMAPI as part of the standard PCP distribution. How do the two of you feel about that? Steve, would you be willing to contribute your code? Ken, would your team be willing to take on the extra maintenance burden? - mtw From tichi404@yahoo.com Sun Apr 17 21:20:55 2005 Received: with ECARTIS (v1.0.0; list pcp); Sun, 17 Apr 2005 21:21:02 -0700 (PDT) Received: from web54503.mail.yahoo.com (web54503.mail.yahoo.com [68.142.225.173]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j3I4KtF6004616 for ; Sun, 17 Apr 2005 21:20:55 -0700 Received: (qmail 90587 invoked by uid 60001); 18 Apr 2005 04:20:46 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=ecWpyWl0NAyQ5YYmYo6rEQx6SZf+KsKmH1VDiww9DiST+9Wn8mKum7LerTUEtqsSwtfKc5YX0f3NxZhVYdq9gGGK4PU70B8O5s63vcUQXd6nhL9+u7RMrAGD94etrWq3SyBjLfpFcU94+7sAtiuRYYZp6Iluj0hScqVaIPS0Ghg= ; Message-ID: <20050418042046.90585.qmail@web54503.mail.yahoo.com> Received: from [24.145.178.80] by web54503.mail.yahoo.com via HTTP; Sun, 17 Apr 2005 21:20:46 PDT Date: Sun, 17 Apr 2005 21:20:46 -0700 (PDT) From: ti chi Subject: Re: Java JNI PMAPI To: Mike Werner , steve@przepiora.org, kenmcd@melbourne.sgi.com Cc: pcp@oss.sgi.com In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.83/836/Sun Apr 17 03:38:36 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 448 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: tichi404@yahoo.com Precedence: bulk X-list: pcp Why Ken would want to maintain such code? He clearly state that this was shelved within SGI - if you need such interface you should facilitate the maintenance. Just my 2 ¢ -- Ti --- Mike Werner wrote: > Hi Steve P. & Ken M., > > I think it would be helpful to have a Java JNI > interface > to the PMAPI as part of the standard PCP > distribution. > How do the two of you feel about that? Steve, would > you > be willing to contribute your code? Ken, would your > team > be willing to take on the extra maintenance burden? > > - mtw > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com