----- Original Message -----
From: "Josh Durham" <[EMAIL PROTECTED]>
To: <ganglia-developers@lists.sourceforge.net>
Sent: Wednesday, December 31, 2003 12:38 AM
Subject: [Ganglia-developers] Re: Scaling Issues? and Memory Size Problems
(combined)


> Thanks for your quick response.
>
> So, I've been playing around a bit with the TN thing.  Here is
> something interesting.. Here is a larger sample of the output from
> gmetad:
> telnet localhost 8651:
> ...
> What I don't understand, is gmetad should handle this.. It's check to
> see if it is up is tn < tmax * 4 (-1 < 60).
> So, I added this to process_xml.c, line 447:
> debug_msg("XXXX Host alive: cluster_localtime=%d reported=%d expr=%d
> tn=%d tmax=%d host_alive=%d",
>                   xmldata->cluster_localtime,reported,(tn < tmax *
> 4),tn,tmax,xmldata->host_alive);
>

Strange. We will need to play around with the C code, it should come out as
1. Can you put parens around the elements of the expression?

(tn) < (tmax * 4)

Etcetera. This should come out right with some careful tweaking&testing.

> And I get:
> XXXX Host alive: cluster_localtime=1072825831 reported=1072825832
> expr=0 tn=-1 tmax=20 host_alive=0
>
> Now I'm baffled.  Why isn't -1 < 20 * 4 coming out as 1?
> Sorry my rambling.. Thinking outloud, in a way.
>
> Any ideas on this?
>
> Also, on the mem_total problem I'm having, I'm not sure xdr_hyper is an
> option.  It doesn't exist in OS X's /etc/include/rpc/xdr.h.  I might be
> able to use xdr_bytes, but I don't know alot about
> RPC/XDR.  I was thinking of cheating and having it report MB in the
> summary RRDs, but that's not really a good solution.

Using xdr_bytes is not a good idea. Too much fiddling to get what we want.
Perhaps your XDR lib is old? I'm suprised to hear you dont have it.

>
> I am looking forward to Ganglia 3.  One of the problems I'm having with
> the Darwin specific metrics is the cpu_*_funcs.  It's easy if I could
> return user,nice,system, and idle in one function as an array of values
> (. f(10.0 0.0 5.0 85.0).  The trick is figuring out how to split them
> up.
>
> Also, I havn't checked in a while, but I think my baseline network
> usage was about 80KB/s while running Ganglia.  Reducing that would be
> nice on the monitoring nodes.
>
> On Tuesday, December 30, 2003, at 08:44 AM, [EMAIL PROTECTED] wrote:
>
> > Sweet to hear you are running Ganglia on the G5 cluster. Strange about
> > the
> > TN figure, looks like a signed-unsigned int issue. I'll have a look at
> > the
> > code when I get back from my holiday vacation.
> >
> > Definately send the patches when you get them in order.
> >
> > -Federico
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Ganglia-developers mailing list
> Ganglia-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers
>


Reply via email to