[AGENT++] Size limit of an OctetString inside a MibTable ?
Jochen Katz
katz at agentpp.com
Fri Jul 1 20:34:54 CEST 2011
Hi,
> I will try to enlarge the max to 16K for the moment.
> However I am wondering what the impact would be on the agent ?
the main impact is the one you wrote below.
> I guess the MAX_SNMP_PACKET parameter is used to initialize the snmp
> communication buffers, so my memory footprint would be much larger (I
> use it as an embedded application using the threadpool of I think the
> default 5 threads).
During encoding of a Pdu, several buffers with MAX_SNMP_PACKET size are
used. So, yes, the memory footprint is increased.
> Are there any other effects of setting this parameter to a higher limit
> ? Slowier communication or anything else I should consider... ?
If you have an unreliable/overloaded network, you will have difficulties
to retrieve such large packets: With 3% packet loss you will only have
small delays to retrieve 1K strings. Retrieving 60K strings will be
nearly impossible.
And every time you give away the agent you also will have to give away a
big sign where you inform about the needed maximum pdu size.
Isn't it possible to split the strings into 1K parts?
Regards,
Jochen
More information about the AGENTPP
mailing list