Re: why "snmplib/snmp_alarm.c" needed in net-snmp agent

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, Dec 11, 2009 at 11:20 AM, bheemesh v <[email protected]> wrote:
> Attaching call graph of the profiled snmpd daemon.
> Find the graph in attachment.

(replying to an e-mail of two weeks ago)

The call graph is interesting. What you did not yet tell us, and what
is important in order to interpret the call graph correctly, is how
many rows are present on your setup in ipAddressTable.

As you can see in the source code of netsnmp_binary_array_insert(),
this function adds a new entry at the end of the array and sets the
dirty flag. Setting the dirty flag will make the next call of
netsnmp_binary_array_get() (which is called by
netsnmp_binary_array_insert() to check for duplicate entries) sort the
array. It will probably help to modify netsnmp_binary_array_insert()
such that if the dirty flag is not set upon entry, it does not set the
dirty flag upon exit but instead inserts the new entry at the right
position in the array such that it remains sorted.

Bart.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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.