Fix memory leak in net-snmp
Having upgraded my main Freenas server from 11.0-U4 to 11.1-U4 I'm seeing Inactive memory continue to grow (as reported in the GUI and "top"). Wired memory and ZFS ARC continues to shrink. I made no config changes after the upgrade with one exception. I had previous used SMB multipath on two interfaces, but have turned that off as of about a week ago while looking into some SMB related error messages. Growing inactive memory is still occurring. I also see this on my backup server running 11.1-U4.
I remember there was a memory leak in I believe 11.1, perhaps related to SMB?
You can see in the attached report graph .jpg where the upgrade occurs. Debug file also attached.
#2 Updated by Alexander Motin over 2 years ago
- Assignee changed from Alexander Motin to Vladimir Vinogradenko
In the provided debug I see Samba consuming about 2.5GB of memory, that is not good, but at least one memory leak was already fixed recently, with fix planned for inclusion into FreeNAS 11.1-U5 and 11.2.
Another consumer using 2.6GB I see there is snmpd. Vladimir, I see you worked on SNMP recently, could you take a look on that side of this ticket?
#4 Updated by Vladimir Vinogradenko over 2 years ago
- Status changed from In Progress to Ready for Testing
The only recent change in SNMP is usage of AgentX functionality. The only memory leak reports in
net-snmp I've found were regarding AgentX. I've applied these patches.
However, they are fixing leaking memory in exceptional cases. Chris, is SNMP working properly for you? (especially new FreeNAS MIB).
#9 Updated by Chris Simonich over 2 years ago
I think the title change suggesting net-snmp may be premature. I'm seeing other reports of an SMB memory leak in 11.1-U4.
This person had an issue in -U3 and in -U4 after upgrading.
#10 Updated by Vladimir Vinogradenko over 2 years ago
- Subject changed from Fix memory link in net-snmp to Fix memory leak in net-snmp
Chris, this ticket is about
net-snmp (which was also leaking). As Alexander said, samba memory leaks are already fixed (at least some of them) and fixes will be included in 11.1-U5 and 11.2.
#11 Updated by Chris Simonich over 2 years ago
- Severity set to New
Just an update. I realize the fix target is now 11.2-Beta1. Confirming I still see high snmp memory usage in 11.1-U5. Slow growth of memory consumed by snmp to about 1.5GB over the course of a week. Memory is recovered after turning off the service. Turned off snmp service for now.