2009/6/8 Tewen Hsieh <tewen.hs...@itas.com.tw>:
> I used "mib2c.iterate_access.conf" to generate my template code for XXX
> table.
> In XXXTable_get_first_data_point(), I use XXXTable_createStructure() to get
> external data and store them in a local structure when this table is
> accessed at the first time. (The external data are all PHY register values.)
> So the agent can response very fast after the first request.
> But the external data I must get at the first time is very huge, the agent
> always timeouts when it still works in  XXXTable_createStructure() to get
> external data.
> Could anyone give me some suggestions about resolving this condition?


Why not load this internal cache in the 'init_xxx()' routine, rather than
the get_first hook?   You'll still have the same delay, but it will happen when
the agent first starts up, rather then when it receives a request.

Dave

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to