Have you tried putting a timer on the data load so that when init runs, the
table is not fetched again? This is my plan for the tables I must read.
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zhang
Chuan
Sent: Thursday, March 08, 2007 9:26 PM
To: [email protected]
Subject: Decrease execute times of get_first_data_point() when getBulk
Hi,
Recently I have coded my own MIB module based on a stub file that was
originally auto-generated by mib2c using mib2c.iterate.conf. The version is
5.2.2. The module contains a table with 10 columns and currently 125 rows.
Since I want to get the newest data from system when a GETBULK message come
in. I have an init_table() function in get_first_data_point(). The
init_table() function get the data from system by TCP and set them to a
given dataset. Then get_next_data_point() can get data from the dataset and
return to manager.
The table seems to be working well but I was quite surprised to see that the
functions get_first_data_point() get called 20 times if I get the table
using GETBULK messages while the Max-Repetitions is set to 20. So the
init_table() has to be executed 20 times. It takes too much time.
I have read some others questions similar with mine. The answer is change to
netsnmp_inject_handler instead of mib2c.iterate.conf. Is there anyone can
show me a way not to change the helper but modify my code to decrease the
execute init_table() times?
Sincerely
Peter
--
you jump, I jump,she jump 3
The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure. If you
have received this communication in error, please notify us immediately by
replying to this message and deleting it from your computer without copying or
disclosing it.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders