On Fri, 05 Sep 2008 21:48:10 +0200
Magnus Fromreide <[EMAIL PROTECTED]> wrote:
> On Thu, 2008-09-04 at 14:18 -0700, Stephen Hemminger wrote:
> > Reduce snmpd memory usage.
> >
> > The route table can grow very large and existing code is a major
> > performance problem since it wastes half of its
On Thu, 2008-09-04 at 14:18 -0700, Stephen Hemminger wrote:
> Reduce snmpd memory usage.
>
> The route table can grow very large and existing code is a major
> performance problem since it wastes half of its memory and copies
> each time.
>
> 1. Grow expanding table by 1.5 rather 2x per step
On Fri, 2008-09-05 at 16:21 +0800, [EMAIL PROTECTED] wrote:
>
> Hello,
>
> I run a snmp agent developed under Net-SNMP in an embed
> system, the program eats much memory when adding indexes for each
> table.
>
> I call the following functions to initialize the table:
>
> netsn
Hello,
I run a snmp agent developed under Net-SNMP in an embed system,
the program eats much memory when adding indexes for each table.
I call the following functions to initialize the table:
netsnmp_create_hander_registration(...)
netsnmp_tdata_create_table(...)