RE: What's the minimum RAM usage of a Net-SNMP Sub-agent? (approximate)
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2006-01-30 at 17:57 +0200, Makavy, Erez (Erez) wrote: > It seems that each sub-agent I run (minimal agent, no MIB modules > loaded) takes about 6MB of RAM (including ~2MB chared memory). > > That's a lot of memory for an empty process which all it does it > talk agentX with the master. But it isn't just a matter of "talking agentX" - it also needs all the standard agent-driving code for keeping a local registry of which handlers are responsible for which MIB objects, allocating incoming requests accordingly, and building up the results into the response packet. The differences between an SNMP-based agent and an AgentX-based one are actually relatively minor, and don't really affect the agent libraries. Another point to remember is that an AgentX subagent will still be pulling in the main Net-SNMP library. Most of this is similarly concerned with the general task of handling "SNMP-like" requests, rather than the specifics of the SNMP protocol itself. Some of this code could probably be stripped out if you were prepared to do the work, but I'm not sure how much it would gain you. Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users