Re: [PATCH 2/2] memory usage improvement for binary tables

2008-09-05 Thread Stephen Hemminger
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

Re: [PATCH 2/2] memory usage improvement for binary tables

2008-09-05 Thread Magnus Fromreide
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

Re: Please help about the snmp table indexes and memory lack

2008-09-05 Thread Magnus Fromreide
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

Please help about the snmp table indexes and memory lack

2008-09-05 Thread SongHao
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(...)