[collectd] SMP Cpu stats on FreeBSD 7.2 (i386 specifically)
Bill Harris
savoy9020 at texoma.net
Thu Oct 29 20:05:55 CET 2009
Doug,
I've tested on a 2 cpu Proliant DL380, and it appears to be
working. i386, FreeBSD 7.2
Will test this code tonight on a 4 cpu DL580, which should
report 8 cores.
Thanks,
Bill
# ls
cpu-0 cpu-2 interface memory
cpu-1 cpu-3 load
indra# pwd
/usr/local/var/lib/collectd/xxx_xxx.xx
# ls
cpu-0 cpu-2 interface memory
cpu-1 cpu-3 load
On 10/22/09 5:59 PM, "Doug MacEachern" <Doug.MacEachern at springsource.com>
wrote:
> On Oct 22, 2009, at 11:41 AM, Bill Harris wrote:
>
>> Doug,
>>
>> The Master branch version cpu plugin seems to work fine for X64
>> versions of 7.2, but
>> fails to initialize the cpu plugin with a memory error on i386
>> versions of 7.2.
>
> Hi Bill,
>
> Strange that this would only be an issue on i386, but the array length
> needs to be that of maxcpu:
> - long cpuinfo[numcpu][CPUSTATES];
> + long cpuinfo[maxcpu][CPUSTATES];
>
> I have push this change + a fix for gcc warnings on FreeBSD, if
> Florian can pull them in to his master branch:
> http://github.com/dougm/collectd/tree/kern_cp_times
More information about the collectd
mailing list