From owner-freebsd-current@FreeBSD.ORG Wed May 7 14:44:50 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C140E106564A; Wed, 7 May 2008 14:44:50 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 753788FC29; Wed, 7 May 2008 14:44:50 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id B900841C703; Wed, 7 May 2008 16:25:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id ksclf9kPAd3u; Wed, 7 May 2008 16:25:30 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id 2F13A41C732; Wed, 7 May 2008 16:25:30 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id AA03B44487F; Wed, 7 May 2008 14:25:17 +0000 (UTC) Date: Wed, 7 May 2008 14:25:17 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Harti Brandt In-Reply-To: <20080507085035.L9490@beagle.kn.op.dlr.de> Message-ID: <20080507111612.K47338@maildrop.int.zabbadoz.net> References: <4820FE0F.9050808@jellydonut.org> <200805070149.m471nToM073813@lava.sentex.ca> <482121B1.7080901@jellydonut.org> <20080507085035.L9490@beagle.kn.op.dlr.de> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Michael Proto , Shteryana Shopova , freebsd-current@freebsd.org, Mike Tancsa Subject: Re: bsnmpd hrProcessorLoad results incorrect on FreeBSD 7 or 8? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 14:44:50 -0000 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.