matt massie wrote:
guys-
i just checked out our latest source on freebsd and solaris and it
wasn't happy. i was a little too naive about the way i stitched in the
libdnet source. i've added the necessary files to make ganglia happy
again on solaris, freebsd and likely other oses as well (since i added the
complete intf and eth support files, autoconf tests etc).
i added the mtu_func to solaris.c (it was a simple cut and paste from
linux.c).
since i'm running the monitoring core on source forge's compile farm ..
i'm not able to test them as i'd like. let me know what you guys find on
FreeBSD, Solaris, et al.
Well, the new version compiles and runs just fine. At least, as well as it
ever did on Solaris. I've come to the realization (from seeing it in
production on Solaris fileservers with varying degrees of use) that the
CPU% metrics might not be calculated correctly over time. During
development I chalked it up to the fact that I was on a test system.
Basically what it comes down to is that top (and, as far as I know, the
Linux kernel) does a weighted average between the last calculated value and
the current value, adjusting the weight according to how much time it's
been since the last update. My code isn't doing this so it looks very boring.
I don't know how much difference this would make in the grand scheme of
things (the other metrics are being reported accurately ... although wcache
and rcache *seem* stuck, they are actually being calculated and updated
correctly as far as I can tell ... ). But I'll try adapting the top
approach (take weight away from the idle counter according to time) and see
what the results look like.
[but don't hold the release up on my account]
happy mars day
Ack ack.