From sprzepiora@gmail.com Mon Nov 22 13:40:07 2004 Received: with ECARTIS (v1.0.0; list pcp); Mon, 22 Nov 2004 13:40:11 -0800 (PST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iAMLe73H022829 for ; Mon, 22 Nov 2004 13:40:07 -0800 Received: by rproxy.gmail.com with SMTP id r35so260875rna for ; Mon, 22 Nov 2004 13:39:44 -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:mime-version:content-type:content-transfer-encoding; b=MuhTReYUHrjM4+/zvoTLxTdz573JctrbJpAYo18RApgQ9zC3gLNcScomH9U85qKGgmzDa5fCfmScHTTh8wl9RizZcqd/9CAaqL3DfjXjUg3nV6D7NI5PJE+/wzH59ZL7KlAj2bVesO74SURizxT5PMwVu7JD/973wVDDtArHUvA= Received: by 10.38.88.38 with SMTP id l38mr225278rnb; Mon, 22 Nov 2004 13:39:44 -0800 (PST) Received: by 10.39.1.70 with HTTP; Mon, 22 Nov 2004 13:39:44 -0800 (PST) Message-ID: Date: Mon, 22 Nov 2004 16:39:44 -0500 From: Stephen Przepiora Reply-To: steve@przepiora.org To: pcp@oss.sgi.com Subject: windows Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-archive-position: 415 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 Hello, I took some time to day and got pcp compiled on a windows box under cygwin. I am having a problem with the windows pmda. I have installed the sample pmda and it half works. When I run pminfo all the metrics I would expect to see are listed, however if I run "pminfo -F" I get errors when fetching: pmcd.buf.free: pmLookupDesc: No PMCD agent for domain of request disk.all.read No value(s) available! this works: pminfo -f sample.many.count sample.many.count value 5 Is the windows pmda working? Steve From kenmcd@melbourne.sgi.com Tue Nov 23 02:38:10 2004 Received: with ECARTIS (v1.0.0; list pcp); Tue, 23 Nov 2004 02:38:15 -0800 (PST) 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 iANAc8cm013621 for ; Tue, 23 Nov 2004 02:38:10 -0800 Received: from ppp-kenmcd.melbourne.sgi.com (ppp-kenmcd.melbourne.sgi.com [134.14.52.219]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id VAA15420; Tue, 23 Nov 2004 21:37:37 +1100 Date: Tue, 23 Nov 2004 21:34:30 +1100 (EST) From: kenmcd@melbourne.sgi.com Reply-To: Ken McDonell To: steve@przepiora.org cc: pcp@oss.sgi.com Subject: Re: windows In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-archive-position: 416 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 On Mon, 22 Nov 2004, Stephen Przepiora wrote: > Hello, I took some time to day and got pcp compiled on a windows box > under cygwin. ... This should have "just worked", so I'd be interested to hear what problems you may have encountered > ... I am having a problem with the windows pmda. I have > installed the sample pmda and it half works. > > When I run pminfo all the metrics I would expect to see are listed, > however if I run "pminfo -F" I get errors when fetching: > > pmcd.buf.free: pmLookupDesc: No PMCD agent for domain of request > > disk.all.read > No value(s) available! > > > this works: > pminfo -f sample.many.count > > sample.many.count > value 5 > > > Is the windows pmda working? No. There may be hints in the files /var/log/pcp/pmcd/{pmcd.log,windows.log}. If you cannot make sense of these, please send them to me. The windows PMDA is the most bizarre PMDA in the known universe ... someday I may explain _exactly_ how this works, but this will probably be in exchange for some significant quantity of beer ... 8^)> > Steve > From sprzepiora@gmail.com Wed Nov 24 07:53:09 2004 Received: with ECARTIS (v1.0.0; list pcp); Wed, 24 Nov 2004 07:53:14 -0800 (PST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iAOFr8Ng018086 for ; Wed, 24 Nov 2004 07:53:09 -0800 Received: by rproxy.gmail.com with SMTP id r35so83606rna for ; Wed, 24 Nov 2004 07:52:48 -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:mime-version:content-type:content-transfer-encoding; b=QkV2G0CZvPrh1N+egj1Iy8u8k2FpVW0b5NcyVZqAfPdfr+HPeQFoZWWI7FaNoYn6PWcJGEiyb519YwjBQFAOLhcxdQFj+z9Xai3Ia56QIijhAAZqvzMSOkkXe4N+DqgNVe6ZM8LCfZor8Zowa9uMyoceoid6WrXpYjzeezvgbsM= Received: by 10.38.9.56 with SMTP id 56mr369236rni; Wed, 24 Nov 2004 07:52:48 -0800 (PST) Received: by 10.39.1.39 with HTTP; Wed, 24 Nov 2004 07:52:47 -0800 (PST) Message-ID: Date: Wed, 24 Nov 2004 10:52:47 -0500 From: Stephen Przepiora Reply-To: steve@przepiora.org To: pcp@oss.sgi.com Subject: pmcd pmda on windows Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-archive-position: 417 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 Hello, I have noticed the pmcd pmda does not compile on windows and looked into it a little and found out it is because windows does not allow undefined references at compile time in shared libraries. Whereas in other os's the linker will patch everything up nice at runtime. While searching for a workaround, I came across this page: http://www.mail-archive.com/cygwin@sources.redhat.com/msg16806.html Which gives two work arounds: 1. Put the common symbols in a dll and link pmcd.exe and pmda_pmcd.dll to the new dll. 2. Add a function to pmda_pmcd.dll and pass in pointers to the data: pmda_pmcd.dll int * ext_data; void set_ext_data(int * c) {ext_data = c}; In dll, use *ext_data. pmcd.exe int data; set_ext_data(&data); in client, use data. Is any work being done on this? From kenmcd@melbourne.sgi.com Thu Nov 25 15:49:18 2004 Received: with ECARTIS (v1.0.0; list pcp); Thu, 25 Nov 2004 15:49:25 -0800 (PST) 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 iAPNnGU1028491 for ; Thu, 25 Nov 2004 15:49:17 -0800 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 KAA24249; Fri, 26 Nov 2004 10:48:45 +1100 Date: Fri, 26 Nov 2004 10:48:45 +1100 From: Ken McDonell To: steve@przepiora.org cc: pcp@oss.sgi.com Subject: Re: pmcd pmda on windows In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 418 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 On Wed, 24 Nov 2004, Stephen Przepiora wrote: > Hello, I have noticed the pmcd pmda does not compile on windows and > looked into it a little and found out it is because windows does not > allow undefined references at compile time in shared libraries. Yep, this is the correct diagnosis. > Whereas in other os's the linker will patch everything up nice at > runtime. > > While searching for a workaround, I came across this page: > http://www.mail-archive.com/cygwin@sources.redhat.com/msg16806.html > > Which gives two work arounds: > > 1. Put the common symbols in a dll and link pmcd.exe and pmda_pmcd.dll > to the new dll. The problem with this approach is that the new "dll" needs to be in a place where you can find it at build time and run time on all platforms ... for *nix derivatives, this tends to pollute /usr/lib or similar with something that is not really a library in the true sense. > 2. Add a function to pmda_pmcd.dll and pass in pointers to the data: > pmda_pmcd.dll > int * ext_data; > void set_ext_data(int * c) {ext_data = c}; > In dll, use *ext_data. > > pmcd.exe > int data; > set_ext_data(&data); > in client, use data. Unfortunately this won't work ... pmcd has to work without being linked to pmda_pmcd. I prefer a 3rd approach - gather the data of shared interest into a struct in the pmcd src - have pmcd arrange for this struct to be in a mmap()'d (e.g. /var/tmp/pmcd.data) - the pmda attaches to the mmap()'d shared memory This is clean. This is portable. This would allow the pmcd pmda to be a daemon, not a ddl/dso (also improves portability). > Is any work being done on this? No, I don't have the bandwidth to do this, but I'd be happy to help someone else who wanted to make the change, review their patch and get it into the official PCP source. From jfm@ii.uib.no Sat Nov 27 08:24:03 2004 Received: with ECARTIS (v1.0.0; list pcp); Sat, 27 Nov 2004 08:24:09 -0800 (PST) Received: from eik.ii.uib.no (eik.ii.uib.no [129.177.16.3]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iARGO2gl022582 for ; Sat, 27 Nov 2004 08:24:03 -0800 Received: from krossved.ii.uib.no ([129.177.20.200]:38114) by eik.ii.uib.no with esmtp (TLSv1:AES256-SHA:256) (Exim 4.30) id 1CY5MA-0005Yn-KU for pcp@oss.sgi.com; Sat, 27 Nov 2004 17:23:30 +0100 Received: (from jfm@localhost) by krossved.ii.uib.no (8.12.11/8.12.11/Submit) id iARGNUg9028786 for pcp@oss.sgi.com; Sat, 27 Nov 2004 17:23:30 +0100 Date: Sat, 27 Nov 2004 17:23:30 +0100 From: Jan-Frode Myklebust To: pcp@oss.sgi.com Subject: PCP for x86_64 ? Message-ID: <20041127162330.GA28649@ii.uib.no> Mail-Followup-To: pcp@oss.sgi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-archive-position: 419 X-ecartis-version: Ecartis v1.0.0 Sender: pcp-bounce@oss.sgi.com Errors-to: pcp-bounce@oss.sgi.com X-original-sender: Jan-Frode.Myklebust@bccs.uib.no Precedence: bulk X-list: pcp Has anybody ported PCP to linux/x86_64, or are there no porting needed? I just did a '/configure --build=i386-unknown-linux-gnu' and it seemed to build everything just fine, even as 64-bit executables, but I'm uncertain if this is all it takes ... ? -jf From kenmcd@melbourne.sgi.com Sun Nov 28 13:32:03 2004 Received: with ECARTIS (v1.0.0; list pcp); Sun, 28 Nov 2004 13:32:07 -0800 (PST) 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 iASLW1bi010743 for ; Sun, 28 Nov 2004 13:32:02 -0800 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 IAA08609; Mon, 29 Nov 2004 08:31:31 +1100 Date: Mon, 29 Nov 2004 08:31:31 +1100 From: Ken McDonell To: Jan-Frode Myklebust cc: pcp@oss.sgi.com Subject: Re: PCP for x86_64 ? In-Reply-To: <20041127162330.GA28649@ii.uib.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 420 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 The code is certainly 64-bit clean ... we've been running it for about 10 years on 64-bit MIPS systems, and more recently on Itanium systems (a lot!). If there are problems, I suspect they will be minor and in the annoying compiler incompatibilities camp. I don't have easy access to x86_64 machines, but I'd be happy to take patches if people find and fix problems. On Sat, 27 Nov 2004, Jan-Frode Myklebust wrote: > Has anybody ported PCP to linux/x86_64, or are there no porting > needed? I just did a '/configure --build=i386-unknown-linux-gnu' and > it seemed to build everything just fine, even as 64-bit executables, > but I'm uncertain if this is all it takes ... ? > > > -jf >