I paste how I setup the Master and Sub agent: Master_agent: ------------------- netsnmp_ds_set_string(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_OPTIONALCONFIG, "/abc/SNMP_master_agt.conf"); snmp_set_do_debugging(1); snmp_enable_stderrlog(); init_agent("SNMP_master_agt"); init_snmp("SNMP_master_agt"); snmp_dbg_print(); init_master_agent(); snmp_dbg_print(); Sub_agent: ---------------- netsnmp_ds_set_string(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_OPTIONALCONFIG, "/abc//SNMP_sub_agt.conf"); netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 1); snmp_set_do_debugging(1); snmp_enable_stderrlog(); init_agent("SNMP_sub_agent"); init_snmp("SNMP_sub_agent"); snmp_dbg_print();
-----Original Message----- From: Zheng, Wenjie (Barclay) Sent: 2012年12月5日 16:06 To: 'Vincent Bernat' Cc: net-snmp-users@lists.sourceforge.net Subject: RE: X-agent performance. Hi Vincent Thanks for your response. Could you let me know what is "blocking call"? Thanks, Barclay -----Original Message----- From: Vincent Bernat [mailto:ber...@luffy.cx] Sent: 2012年12月5日 15:55 To: Zheng, Wenjie (Barclay) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: X-agent performance. ❦ 5 décembre 2012 04:57 CET, "Zheng, Wenjie (Barclay)" <barclay.zh...@alcatel-lucent.com> : > By studying and testing SNMP performance these days, I found that X-agent is > not efficient as I expected: > SNMP sub-agent mode slows down the total time of getbulk, by change > the SNMP agent architecture from master and sub-agent to only one > agent, the performance improves dramatically. > See below for some test result, with sub-agent, the getbulk time is > approximately 3 times than the time without sub-agent. > > -------------------------------------------------------- > Table No SubAgent with Sub Agent > -------------------------------------------------------- > 16oid, 18 rows 4s 13s > 5 oid, 500 rows 38s 140s > 70 oid, 70 rows 35s 152s > --------------------------------------------------------- With or without subagent, the performances are terrible here. You should search first why you need 4s to get 18 rows. I suspect that you use a blocking call to get your data. Fix this and you should get similar performance with and without subagent. -- printk("MASQUERADE: No route: Rusty's brain broke!\n"); 2.4.3. linux/net/ipv4/netfilter/ipt_MASQUERADE.c ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users