> From: Holger
> Sent: 06 July 2004 21:31
> I have coded my own MIB module based on a stub file that was 
> originally auto-generated by mib2c using mib2c.iterate.conf,v 
> 5.5. The module contains a table with 7 columns and currently 
> 120 rows. The first 3 columns are table indexes and defined 
> as not-accessible. The table seems to be working fine but I 
> was quite surprised to see that the functions 
> get_first_data_point and get_next_data_point both together 
> get called 58080 times if I get the table using GETBULK 
> messages. Is this expected or am I doing something wrong? If 
> this is right could someone explain the math to work out how 
> many times get_first_data_point and get_next_data_point get called?

After looking at this again I figured the math is like this:

number_of_accessable_columns * rows * (rows + 1)
or
number_of_accessable_columns * (rows^2 + rows)

So for my table with 120 rows this would be
4 * 120 * (120 + 1) = 58080

Unfortunately my table could return far more than 120 rows and I am afraid this 
n-squared behaviour will bring my processor to it's knees. Well, I guess I just have 
to live with it.

Regards,

Holger


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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