From owner-freebsd-current@FreeBSD.ORG Tue Jan 22 18:34:23 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 D059C16A417 for ; Tue, 22 Jan 2008 18:34:23 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 901A413C44B for ; Tue, 22 Jan 2008 18:34:23 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from gizmen (blurp.t2.ds.pwr.wroc.pl [156.17.224.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTP id 38D6711522; Tue, 22 Jan 2008 19:34:22 +0100 (CET) From: Bartosz Giza To: Harti Brandt , freebsd-current@freebsd.org Date: Tue, 22 Jan 2008 19:34:20 +0100 User-Agent: KMail/1.9.7 References: <200801221438.53254.gizmen@blurp.pl> <20080122172058.Y94121@knop-beagle.kn.op.dlr.de> In-Reply-To: <20080122172058.Y94121@knop-beagle.kn.op.dlr.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200801221934.20774.gizmen@blurp.pl> X-Mailman-Approved-At: Tue, 22 Jan 2008 18:57:31 +0000 Cc: Subject: Re: bsnmpd daemon eating all cpu 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: Tue, 22 Jan 2008 18:34:23 -0000 Tuesday 22 of January 2008 17:25:15 Harti Brandt napisa=C5=82(a): > Hi, > > On Tue, 22 Jan 2008, Bartosz Giza wrote: > > BG>I am using dell poweredge sc440 router with one xeon dual core cpu. > BG>This is basicly only router for dummynet firewall dhcpd and named. > BG>I want to run bsnmpd daemon but when i start it it starts eating all c= pu > from BG>one core. > BG>I have run truss to check what it is doing and i have got huge amount = of > such BG>syscalls > BG>gettimeofday({1201008182.366354},0x0) =3D 0 (0x0) > BG> > BG>I want to use this daemon because it is in base system but if i could > not run BG>this daemon in normal way i will be forced to use net-snmpd > port. BG>I have basic config with hotres module added. > BG>I am running freebsd 7.0-prerelease. > BG>Alsa what is strange i have exactly the same machine with freebsd > BG>7.0-prerelase but with only one network card for testing and bsnmpd > behaves BG>normal. > BG>Could some one help me with this. I can send dump from truss or even do > some BG>more testing. > > Could you please disable all modules? Just comment out all lines starting > from the Load MIB-2 module line. What does it do then? When i turn off all modules bsnmpd uses 0% of cpu. When i have added this=20 snmp_mibII.so module it started again to use 100% of one core. On other UP kernels with 7-PRE bsnmpd behaves good. And also when i was try= ing=20 to find what is going on i found that it happens when there is quite bit of= =20 traffic on interfaces. =46or test purposes i have downed lan interface and bsnmpd stopped to use 1= 00%=20 of cpu. And when i have brought up lan interface bsnmpd started again to us= e=20 100% od cpu. So it is related to IP traffic. Right now i am using net-snmpd daemon and it uses almoust nothing of cpu. =2D-=20 Pozdrawiam Bartosz Giza