>>>>> On Wed, 12 Aug 2009 18:11:26 +0300, "Marwan Khoury" 
>>>>> <[email protected]> said:

MK> is it normal for the snmpd process to have a very high CPU
MK> consumption when an snmp request is received?

SNMP can be a fairly intensive protocol to support if the data being
queried isn't efficiently indexed.

MK> I am facing major CPU problems when trying to walk a table with
MK> about 15 entries with an index going from 1 to 30.

It would depend on the table.  There are some classic cases where
agents have to go look through data that isn't stored in the way SNMP
likes to index it (routing tables are a classic example).

If you're talking about the Net-SNMP agent then we'd have to know what
table it was, and if it was your own what style of code it is written
in.

Adding caching to the table will always help and optimizing it for
better performance.  Many of the mib2c output styles are optimized to
make sure the coder doesn't make nasty mistakes but compromises on speed.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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

Reply via email to