Re: bsnmpd hrProcessorLoad results incorrect on FreeBSD 7 or 8?

From: Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net>
Date: Wed, 7 May 2008 14:25:17 +0000 (UTC)
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.
Received on Wed May 07 2008 - 12:44:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:30 UTC