From owner-freebsd-current@FreeBSD.ORG Tue Jan 22 16:25:15 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 2D80E16A417 for ; Tue, 22 Jan 2008 16:25:15 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-1.dlr.de (smtp-1.dlr.de [195.37.61.185]) by mx1.freebsd.org (Postfix) with ESMTP id D568613C46B for ; Tue, 22 Jan 2008 16:25:14 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from knop-beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Tue, 22 Jan 2008 17:25:12 +0100 Date: Tue, 22 Jan 2008 17:25:15 +0100 (CET) From: Harti Brandt X-X-Sender: brandt_h@knop-beagle.kn.op.dlr.de To: Bartosz Giza In-Reply-To: <200801221438.53254.gizmen@blurp.pl> Message-ID: <20080122172058.Y94121@knop-beagle.kn.op.dlr.de> References: <200801221438.53254.gizmen@blurp.pl> X-OpenPGP-Key: harti@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 22 Jan 2008 16:25:12.0423 (UTC) FILETIME=[5CE36F70:01C85D13] Cc: freebsd-current@freebsd.org Subject: Re: bsnmpd daemon eating all cpu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt 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 16:25:15 -0000 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 cpu 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) = 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? BG>Second strange thing is when i have compiled kernel with ULE scheduler bsnmpd BG>shoed me 100% cpu utilization on both cores for all time. And after BG>recompiling kernel with 4BSD it shows good numbers for cpu utilization. I have a report about this and there it says that the reason is the kern.ccpu variable beeing 0 for ULE. Unfortunately I was not able to work on this because of RealJob. I should probably look into this. harti