Date: Wed, 7 May 2008 14:25:17 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Harti Brandt <harti@freebsd.org> Cc: Michael Proto <mike@jellydonut.org>, Shteryana Shopova <syrinx@FreeBSD.org>, freebsd-current@freebsd.org, Mike Tancsa <mike@sentex.net> Subject: Re: bsnmpd hrProcessorLoad results incorrect on FreeBSD 7 or 8? Message-ID: <20080507111612.K47338@maildrop.int.zabbadoz.net> In-Reply-To: <20080507085035.L9490@beagle.kn.op.dlr.de> References: <4820FE0F.9050808@jellydonut.org> <200805070149.m471nToM073813@lava.sentex.ca> <482121B1.7080901@jellydonut.org> <20080507085035.L9490@beagle.kn.op.dlr.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080507111612.K47338>