Re: CPU consumption

"Marwan Khoury" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Wes,

Thank you for your reply.
I am talking about Net-SNMP agent. It is a MIB that I have defined.
How can I add caching to the table?

Regards,
MK


----- Original Message ----- 
From: "Wes Hardaker" <[email protected]>
To: "Marwan Khoury" <[email protected]>
Cc: <[email protected]>
Sent: Saturday, August 15, 2009 1:00 AM
Subject: Re: CPU consumption


>>>>>> 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


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.58/2308 - Release Date: 08/16/09 
21:46:00


------------------------------------------------------------------------------
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
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.