Hi,

Presently there is a hardcoded limit of 50 on the number of supported
network interfaces in Solaris.
This limit is imposed by the size of the mibcache used in the
agent/mibgroup/kernel_sunos.c
as we can see from the following code.

static
     mibcache Mibcache[MIBCACHE_SIZE+1] = {
     {MIB_SYSTEM, 0, (void *) -1, 0, 0, 0, 0},
     {MIB_INTERFACES, 50 * sizeof(mib2_ifEntry_t), (void *) -1, 0, 30, 0,    // 
Here we are hardcoding the size to 50
      0},

We have seen instances where snmpd loops fetching the interface details
when the number of interfaces
goes above 50.
To fix this issue, I was wondering whether we can change the interface
limit to be a configurable value.
If we change the interface limit, I guess we need to change some of the
other limits, for eg. no of IP addresses etc also.

I searched for similar issues and came across the following thread where
this discussion has come up before.
http://sourceforge.net/mailarchive/forum.php?thread_name=E1KGJ8C-0004KG-07%40b55xhf1.ch3.sourceforge.com&forum_name=net-snmp-patches

Can someone suggest if the suggested change would be fine or is there
some advantage of maintaining the hardcoded limits.
i.e was there any specific reason why there were hardcoded limits
entries of the cache.
I'm trying to see if anything else would be affected if the cache size
is allowed to grow with the number of interfaces,
for eg. it might lead to a performance degradation of the periodic cache
refresh.

Thanks,
Lijo


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to