Hi all, I managed to "create" myself a pass through interface to traverse
big tables. Basically it is based on table iterator  template.
I add a pointer to the request structure and request info to the
netsnmp_iterator_info. This information is assigned by table_iterator.cxx
before the call to get first.
In get first the information about the requests and the request type is
observed (get or getnext) and only the indexes that corresponds to the
requests are added.
If someone needs more details about this "improvement" please let me know.


However
Even after applying this fix I see 35% degradation in performance compares
to another agent implementation. 
The question I have to this forum Does Net-SNMP fit to real time environment
or is it too heavy?

When I analyze who are the big CPU consumers from function call
perspectives:
1.malloc and free are  big consumers.
2. Also ipi_tlb_flush_handler.
My question: Does anyone have any idea how to improve Net-SNMP performance
for table handling?

Thanks,
Shuki

-----Original Message-----
From: Robert Story [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 30, 2005 3:41 PM
To: sasson, shuki
Cc: [email protected]
Subject: Re: Cannot find an adquest mib2c configuration file for travesing
large tables.

On Wed, 28 Sep 2005 16:23:28 -0400 shuki wrote:
SS> will be a single function all instead hundred of thousands as it is with
SS> the MFD and the Iterator.

Early versions of MFD defaulted to an iterator style wrapper, but the
current
code is based on the idea of caching the data, and a single routine is
called
to do that. Then a binary search finds the data.

However, a 'pass-thru' template has been on my to-do list for a while. I was
just talking to someone else about it last week.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to