Hi,

I'm investigating excessive cpu usage in some server software on Solaris 10.

By prstat, the server process is using 13% (out of 25%, since it is a 
single thread on 4 cores).

By Brendan Gregg's hotuser script (see 
http://www.brendangregg.com/DTrace/hotuser) the function 
netsnmp_large_fd_set_resize() is using up to 80% of that.

By the same script, libnetsnmp.so is using over 80%.

The context of the call is that I'm using snmp_select_info() to 
integrate SNMP into my own event loop which uses select().  (This is 
pretty much as described under "Own custom event loop" at 
http://vincent.bernat.im/en/blog/2012-snmp-event-loop.html)

netsnmp_large_fd_set_resize() is called from snmp_read() and run_alarms().

The app is using net-snmp-5.6.1.1.  Would upgrading the library (not a 
trivial task) improve the situation?

Can anyone suggest what can be done to alleviate this.  64 bit Solaris 
has a fixed FD_SETSIZE of 64k, so what does 
netsnmp_large_fd_set_resize() need to resize that for?  Why does it 
require space for more than 65535 handles?

Also, how might the number of traps, and/or the configuration of the 
snmpd daemon affect this?  I don't have in depth knowledge of this 
protocol so I hope this is enough info.

Thanks in advance!
Jono Poff.

Senior Design Engineer
Tait Communications
Email: jonathan.p...@taitradio.com
www.taitradio.com

-- 

------------------------------
This email, including any attachments, is only for the intended recipient. 
It is subject to copyright, is confidential and may be the subject of legal 
or other privilege, none of which is waived or lost by reason of this 
transmission.
If you are not an intended recipient, you may not use, disseminate, 
distribute or reproduce such email, any attachments, or any part thereof. 
If you have received a message in error, please notify the sender 
immediately and erase all copies of the message and any attachments.
Unfortunately, we cannot warrant that the email has not been altered or 
corrupted during transmission nor can we guarantee that any email or any 
attachments are free from computer viruses or other conditions which may 
damage or interfere with recipient data, hardware or software. The 
recipient relies upon its own procedures and assumes all risk of use and of 
opening any attachments.
------------------------------

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
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

Reply via email to