[ This was originally posted to ganglia-general, but I suspect the
developers list would be a more appropriate forum.]
I'm using a small user-mode-linux cluster to test out some clustering
tools. Ganglia looks like it may solve some issues I've been ruminating
about...but under UML, gmond segfaults in cpu_speed_func().
The segfault occurs because when the code is built, __i386__ is defined,
but at runtime /proc/cpuinfo doesn't contain the expected information.
Is this important enough to warrant a solution in the code? One possible
solution would be to allow the user to specify a fixed value in
gmond.conf, so that cpu_speed_func looks like:
if (user provided a value)
return user_provided_vlaue;
else
do normal cpu speed detection
I don't know if the value of cpu_speed_func() is used for anything by
ganglia, but another possible solution would be to simply return 0 if any
of the various strstr()/strchr()/etc. functions fail -- this is what I've
done locally.
-- Lars
--
Lars Kellogg-Stedman <[EMAIL PROTECTED]>