Re: Timing and Performance between two versions of net-snmp

"Jay Johnston" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Everyone,
    I think I've tracked down my problem between v4.x and v5.x of net-snmp.
I tracked the problem to a new feature added to the 5+ version of
snmpbulkwalk that allows the user to specify the "max repeaters" for a SNMP
request. The default "max repeaters" was changed to 10 from 1000 in the new
version to resolve issues where SNMP packets were too large. Because the
"max repeaters" option was reduced to 10 the number of round trips to the
CMTS has been increased by a factor of 10+ causing a huge performance
problem.

To resolve the problem add "-Cn0r10000" to the snmpbulkwalk command. This
shows a significant change in performance.  Thanks for everybody's help!!
Jay



On 5/15/07, Dave Shield <[email protected]> wrote:
>
> On 15/05/07, Jay Johnston <[email protected]> wrote:
> > I am walking a single SNMP table, although the table is quite large
> > (5000-20,000 rows).
>
> > The problem that I'm having is that when using 4.2.1, I get return times
> of
> > ~3-5 minutes, but when using 5.0.7 or 5.2.2, I get times upwards of 25
> > minutes.
>
> Presumably you're using exactly the same MIB module code in both cases?
>
> > [I] am at a loss as to why the times are so far off.
>
> The internal architecture of the agent changed quite significantly
> between the v4 and v5 lines.  Although the v5 agent includes an
> "old_api" handler, to retain backwards compatibility, this is not a
> particularly efficient mechanism, so there is a significant overhead
> when compared with the v4 agent.
>
> If performance is a significant concern (and for a table of that size,
> this seems very likely!), then you should seriously consider re-working
> the module implementation to use the native v5 handler approach.
> That would definitely get you a significant speed improvement
> (depending on the helper framework you used) - probably comparable
> to (if not better than) the v4 agent.
>
> Dave
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.