i like the idea of having steve's function in the ganglia library instead
of in gmond.c.  he's not talking about writing a metric collection
function it's more of a helper function which should be available on all
platforms to help calculate CPU %.  i like his idea that we want to be 
consistent across the different platforms ganglia runs on (of course 
that means we run the risk of being consistently wrong but so be it :) )

i think soon i'm going to split the ganglia library into two parts..
  - one which is built to be a shared library available for linking
    apps against (libganglia.so) which is how it is now
  - and one which is our convenience library (libgangliabuild.a) or
    something like.

-matt

Today, Federico Sacerdoti wrote forth saying...

> I believe we are putting common machine code (code that is the same for 
> all platforms) in gmond.c. The heartbeat_func and location_func are 
> there.
> 
> 
> On Friday, August 23, 2002, at 11:40 AM, Steven Wagner wrote:
> 
> > matt massie wrote:
> >> WOW!!!
> >> this line
> >>> also, if any of you are killing web developers and want to update the 
> >>> look
> >> should read
> >>   also, if any of are "killer" web developers and want to ...
> >> BIG difference.  i hope that none of you are killing web 
> >> developers.  ;)
> >
> > Too late, I already fed the pigs.
> >
> > Anyway, I understand.  Those keys are so close together.
> >
> > Although I'm not averse to writing documentation, I don't feel like 
> > installing a jillion software packages to enable me to do it.  Besides, 
> > I haven't really added any features, just ported a buncha stuff.
> >
> > Speaking of which, I've got about 20% of the metrics done for Tru64.  I 
> > think.  You never know 'till it's in production and starts acting 
> > funny. Which also reminds me, after this I'm going to try very hard to 
> > figure out why the heck multi-proc IRIX boxes don't report CPU 
> > percentages.
> >
> > I might move the CPU percentage calculation function into libganglia, 
> > since it's the same everywhere, and put just the machine-specific 
> > cycle-gathering code in the /gmond/machines/* file.  From what I've 
> > found so far on different platforms, pretty much everybody has sys, 
> > user, idle, and a nice or WIO counter... and not only would it make 
> > porting easier, it would also ensure that the percentage stats 
> > collected on each platform would be determined using the same algo.  
> > Such as it is.  :)
> >
> > Hmmmm.
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Ganglia-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ganglia-developers
> >
> Federico
> 
> Rocks Cluster Group, Camp X-Ray, SDSC, San Diego
> GPG Fingerprint: 3C5E 47E7 BDF8 C14E ED92  92BB BA86 B2E6 0390 8845
> 
> 


Reply via email to