summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/snmp_mibII/mibII_tree.def
diff options
context:
space:
mode:
authorsyrinx <syrinx@FreeBSD.org>2009-12-03 16:08:00 +0000
committersyrinx <syrinx@FreeBSD.org>2009-12-03 16:08:00 +0000
commit3f6e5c4df53d4a7718a0f41931a9ff7fdc66e9ca (patch)
tree520582a3b754a46d8d4bf52f165cb0ba8b2d350d /contrib/bsnmp/snmp_mibII/mibII_tree.def
parent879c7d27302e0fb0654529de4b88f210ee11b022 (diff)
downloadFreeBSD-src-3f6e5c4df53d4a7718a0f41931a9ff7fdc66e9ca.zip
FreeBSD-src-3f6e5c4df53d4a7718a0f41931a9ff7fdc66e9ca.tar.gz
Fix a problem with high CPU consumption (up to 30%) by bsnmpd on a loaded system.
Instead of constantly calling the mibII_idle function when the server is not busy call the function only once every 10 seconds to avoid bsnmpd constantly doing gettimeofday syscalls. Make the idle polling interval confugurable via begemotIfDataPoll. Reported and tested by: misho (at) aitbg (dot) com Oked by: harti MFC after: 1 week
Diffstat (limited to 'contrib/bsnmp/snmp_mibII/mibII_tree.def')
-rw-r--r--contrib/bsnmp/snmp_mibII/mibII_tree.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/bsnmp/snmp_mibII/mibII_tree.def b/contrib/bsnmp/snmp_mibII/mibII_tree.def
index 90fbb03..d377538 100644
--- a/contrib/bsnmp/snmp_mibII/mibII_tree.def
+++ b/contrib/bsnmp/snmp_mibII/mibII_tree.def
@@ -240,6 +240,7 @@
(1 begemotIfMaxspeed COUNTER64 op_begemot_mibII GET)
(2 begemotIfPoll TIMETICKS op_begemot_mibII GET)
(3 begemotIfForcePoll TIMETICKS op_begemot_mibII GET SET)
+ (4 begemotIfDataPoll TIMETICKS op_begemot_mibII GET SET)
)
)
)
OpenPOWER on IntegriCloud