From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13605 invoked by alias); 8 May 2009 23:10:09 -0000 Received: (qmail 13551 invoked by uid 22791); 8 May 2009 23:10:08 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 May 2009 23:10:03 +0000 Received: by fg-out-1718.google.com with SMTP id e21so572129fga.22 for ; Fri, 08 May 2009 16:10:00 -0700 (PDT) Received: by 10.86.59.18 with SMTP id h18mr4074292fga.44.1241824199953; Fri, 08 May 2009 16:09:59 -0700 (PDT) Received: from smtp.gmail.com ([93.84.49.137]) by mx.google.com with ESMTPS id l12sm1919593fgb.24.2009.05.08.16.09.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 May 2009 16:09:59 -0700 (PDT) Date: Fri, 08 May 2009 23:10:00 -0000 From: Sergei Gavrikov To: Grant Edwards Cc: ecos-discuss@sources.redhat.com Message-ID: <20090508230957.GA18135@ubuntu.local> References: <20090508221045.GA13907@ubuntu.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: SNMP lockup X-SW-Source: 2009-05/txt/msg00044.txt.bz2 On Fri, May 08, 2009 at 10:38:24PM +0000, Grant Edwards wrote: > On 2009-05-08, Sergei Gavrikov wrote: > > > If your guess is right... > > It's not a guess. > > The problem occurs when cyg_snmp_get_if() is called with if_num <= 0. > > The loop takes 1-2 minutes to loop from -1, -2, back to 0, > causing the SNMP management thread to lock out all lower > priority threads while it's doing so. Then fix it. > > > Can you walk here with/without tweaks when if_num=0 > > > > repo/devo/ecos/packages/net/snmp/agent/current/src/mibgroup/mibII/interfaces.c:398 [snip] > I'm surprised nobody else has run into this. I'm told all our > customers who have HP or Cisco SNMP managers have had to > disable SNMP support in our products to keep them from locking > up every few minutes. I was just googling +'ifPhysAddress.0' It seems you are not alone :-) http://mtsc.moxa.com:8888/Software/DN/NPort/Firmware/NPort%205000/NPort%205600/ver3.2/VERSION.TXT ver3.1 (2006/05/16) 3. Fixed the problem that querying NPort by SNMP Software would cause NPort stop replying ethernet packet while querying "GET iso.3.6.1.2.1.2.2.1.6.0", which is resolved as "GET iso.org.dod.internet.mgmt.mib-2.interface.ifTable.ifEntry.ifPhysAddress.0". UCD-SNMP had a lot of holes. eCos UCD-SNMP implementation has even more holes :-( Good luck! Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss