Date: Tue, 22 Jan 2008 21:02:01 +0100 From: Hartmut Brandt <hartmut.brandt@dlr.de> To: Bartosz Giza <gizmen@blurp.pl> Cc: freebsd-current@freebsd.org Subject: Re: bsnmpd daemon eating all cpu Message-ID: <47964BB9.8030602@dlr.de> In-Reply-To: <200801221934.20774.gizmen@blurp.pl> References: <200801221438.53254.gizmen@blurp.pl> <20080122172058.Y94121@knop-beagle.kn.op.dlr.de> <200801221934.20774.gizmen@blurp.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
Bartosz Giza wrote: > Tuesday 22 of January 2008 17:25:15 Harti Brandt napisaĆ(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 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? > > When i turn off all modules bsnmpd uses 0% of cpu. When i have added this > 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 trying > to find what is going on i found that it happens when there is quite bit of > traffic on interfaces. > For test purposes i have downed lan interface and bsnmpd stopped to use 100% > of cpu. And when i have brought up lan interface bsnmpd started again to use > 100% od cpu. So it is related to IP traffic. I have a feeling that this is related to the 64-bit counter emulation. Could you please tell me what interfaces you have in that machine and on what speed they are running? Have you set any of the begemot* variables for MIB-2 in snmpd.conf (especially the polling related ones)? Maybe just send me the snmpd.conf? harti
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47964BB9.8030602>