[pcp] Experimental patch (was Re: mmv pmda: stuff always fails the first time?)
kenj at internode.on.net
Fri Nov 13 18:35:43 CST 2009
Any chance you can post gendata.sh and mmvtest.pl (or send me copies) so
I can investigate? ... this is certainly in a place where the dynamic
pmns changes were made.
On Fri, 2009-11-13 at 07:50 -0600, Martin Hicks wrote:
> On Fri, Nov 13, 2009 at 01:00:41PM +1100, Nathan Scott wrote:
> > This version fixes a problem in mmv_children(), adds the
> > new syntax into the pmns file, and in general works Much
> > More Betterer when run from pmcd (rather than dbpmda).
> I didn't have any time to debug, but running my same simple test of
> `./gendata.sh | perl ./mmvtest.pl`
> 0x00007f7d01541210 in strlen () from /lib/libc.so.6
> (gdb) bt
> #0 0x00007f7d01541210 in strlen () from /lib/libc.so.6
> #1 0x00007f7d01828ffe in __pmSendNameList () from /usr/lib/libpcp.so.3
> #2 0x00007f7d01a5904e in __pmdaMainPDU () from /usr/lib/libpcp_pmda.so.3
> #3 0x00007f7d01a590d0 in pmdaMain () from /usr/lib/libpcp_pmda.so.3
> #4 0x0000000000404057 in main (argc=3, argv=0x7fff3971a178) at mmv.c:898
> > cheers.
> > ----- "Nathan Scott" <nscott at aconex.com> wrote:
> > > ----- "Nathan Scott" <nscott at aconex.com> wrote:
> > > > ----- "Martin Hicks" <mort at bork.org> wrote:
> > > > > ...
> > > > > Is this something wrong with the way I wrote the PMDA, or is this
> > > a
> > > > > bug in the MMV PMDA?
> > > >
> > > > Its a bug that cannot really be fixed in the current MMV design
> > > > (to do with the way pmdammv and pmcd communicate the namespace
> > > > changes) ... MMV needs to switch to using the all-singing, all-
> > > > dancing dynamic namespace infrastructure to really fix this.
> > >
> > > Here's a patch which converts pmdammv to use Kens new "dynamic
> > > namespace" interfaces. It seems to function correctly when I
> > > throw queries at it via dbpmda ... but no testing beyond that
> > > has been done just yet.
> > >
> > > Lemme know how it goes. It also implements a DSO MMV, which I
> > > also ran under dbpmda successfully. Both these binaries should
> > > no longer have the annoying-spurious-errors feature.
> > --
> > Nathan
> > _______________________________________________
> > pcp mailing list
> > pcp at oss.sgi.com
> > http://oss.sgi.com/mailman/listinfo/pcp
More information about the pcp