Hi Carlo,

>> Looks like gmetad in trunk is broken.  When I request summary
>> information it segfaults:

>the newer implementation from r1142 shouldn't segfault anymore.

No seg fault for me on Linux and I agree that is a cleaner place to put
the lock.  I had considered that but thought it might let hosts_up be
incomplete.  However, I was unable to get a low host count with
continuous querying.  I guess this is added in a different way not
requiring the lock?

But unfortunately, r1142 reverts to giving incomplete sums in the
metrics, so bug#76 is back:

# perl -e 'while(1){print `netcat localhost 39003 | grep "cpu_num"`; }'

<METRICS NAME="cpu_num" SUM="3913" NUM="1566" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="3913" NUM="1566" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="3913" NUM="1566" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="182" NUM="91" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="866" NUM="385" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="1476" NUM="690" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="2169" NUM="998" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="3077" NUM="1308" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="3913" NUM="1566" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="3913" NUM="1566" TYPE="double" UNITS="CPUs"
SLOPE="zero" SOURCE="gmond"/>
<METRICS NAME="cpu_num" SUM="3913" NUM="1566" TYPE="double" UNITS="CPUs"
SLOPE="

This happens every 15 seconds, the step interval for this one large data
source.  I can't yet understand why your version doesn't work.

r1122 never reports incomplete sums.  And I confirmed that r1138 seg
faults on summary on Linux.

-twitham


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to