Red Hat Bugzilla – Bug 1188295
net-snmp snmpd fork() overhead [fix available]
Last modified: 2015-07-22 03:23:18 EDT
Description of problem: NB. This is not limited to RHEL6 (also affects RHEL5/7). Due to the way snmpd handles file descriptors when forking scripts for 'pass' or 'extend', on systems with very large numbers of FD, this will consume CPU and take several seconds for each OID. Please consider back porting the following fix: https://sourceforge.net/p/net-snmp/code/ci/0e4bf5d3659c459128c0f98926b0db7296e9c49f/ Version-Release number of selected component (if applicable): Observed on all releases, including 5.7 How reproducible: Every time Steps to Reproduce: 1. increase fs-max/nofile to large value (32626630 in test case) 2. configure snmp pass or extend in snmpd.conf 3. get/walk the OID Actual results: Several seconds of 100% CPU utilisation, SNMP response takes several seconds. snmpwalk (for 'pass' that support this) time out. Expected results: Immediate response, minimal CPU utilisation Additional info: Please consider back porting the following fix: https://sourceforge.net/p/net-snmp/code/ci/0e4bf5d3659c459128c0f98926b0db7296e9c49f/
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1385.html