bsnmpd hrProcessorLoad results incorrect on FreeBSD 7 or 8?
Bjoern A. Zeeb
bzeeb-lists at lists.zabbadoz.net
Wed May 7 14:44:50 UTC 2008
On Wed, 7 May 2008, Harti Brandt wrote:
> On Tue, 6 May 2008, Michael Proto wrote:
>
> MP>Mike Tancsa wrote:
> MP>> At 08:55 PM 5/6/2008, Michael Proto wrote:
> MP>> > Is anyone seeing problems with bsnmpd reporting an incorrect
> MP>> > HOST-RESOURCES-MIB::hrProcessorLoad value under HEAD? I'm using the
> MP>> > default /etc/snmpd.config settings and am loading the
> MP>> > /usr/lib/snmp_hostres.so library just as I do in 6.3, but the value for
> MP>> > this MIB always reports CPU utilization at 100% regardless of the actual
> MP>> > load on the system. 6.3 and 6-STABLE both work correctly and report the
> MP>> > actual CPU utilization when queried.
> MP>>
> MP>> IIRC, I noticed this when I changed to ULE from 4BSD_SCHED.
> MP>>
> MP>> ---Mike
> MP>
> MP>Would match my environment as well, as I'm using ULE on all of the
> MP>affected systems. Just built a 4BSD kernel on my HEAD system and
> MP>HOST-RESOURCES-MIB::hrProcessorLoad reports a correct value again.
> MP>
> MP>Anyone have an idea on a fix?
>
> If anybody has a fix that works with both schedulers, I happily commit
> this.
The problem as dwhite told syrinx and I found out it that ccpu is 0
for ULE and there is a return 0.0 for that case.
The problem is that after removing that patch I see "something".
Pinning my a.out to the 2nd of my 2 single core opterons, top reports
CPU 1 100% a.out but snmp says 0 even if I leave that runnign for a
few minutes.
I am not sure if hostres is doing it all correct, nor am I sure
sched_ule.c/kern_proc.c are right. This needs more investigation.
Either syrinx or I will have a look. Worst I'll try to catch Jeff.
/bz
--
Bjoern A. Zeeb Stop bit received. Insert coin for new game.
More information about the freebsd-current
mailing list