I have an PPTP server that assigns for server-side tunnel IP one address for all clients (for ex., 10.0.0.1). But after some time SNMP grows, takes a lot of memory, and a lot of CPU time when receive query, also - it returns on query a lot of duplicated interfaces: # snmpwalk -v 3 -l AuthNoPriv -u User -A Pass 192.168.0.1 .1.3.6.1.2.1.2.2.1.2 -a SHA .................... IF-MIB::ifDescr.1739 = STRING: ppp87 IF-MIB::ifDescr.1740 = STRING: ppp51 IF-MIB::ifDescr.1742 = STRING: ppp51 IF-MIB::ifDescr.1750 = STRING: ppp51 IF-MIB::ifDescr.1751 = STRING: ppp152 .................... It is actual for many (possible all?) versions of SNMP (before I saw this trouble on CentOS 5 & Fedora 8 - 5.3.1 and 5.4.1).
Please post your `emerge --info' too.
Oh right, all versions...
Created attachment 194458 [details, diff] Adapted patch from http://sourceforge.net/tracker/index.php?func=detail&aid=1513191&group_id=12694&atid=312694 There is a patch on sourceforge net-snmp bugtracker that removes dropped interfaces from statistics. As I understand, interfaces are removed after 5 minute absent. I made "port" of it to current net-snmp-5.4.2.1 (it fails in 2nd hunk - in current SVN version there is an int, not an u_long variable 'lastchange'), and now it's in testing on server - at 1st look, it works correctly.
Patched snmpd looks stable. IMHO it'll be good to include it into portage tree.
Please report this upstream.