RE: What's the minimum RAM usage of a Net-SNMP Sub-agent? (approximate)
"Makavy, Erez (Erez)" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <AAB4B3D3CF0F454F98272CBE187FDE2F09F56308@is0004avexu1.global.avaya.com> |
I'm aiming mainly at RAM usage of the snmp libraries, and agentX library. 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. If I run 10 agents, it sums up to about 42MB (4 x 10 + 2) of RAM which is a lot for an embedded system. [I tested it on Wind River embedded Linux, using Net-SNMP 5.1.2, I'm currently trying all suggested configuration options to reduce RAM usage, and I'd like an estimate of the minimum] Thanks, Erez. _____ From: William R. Buckley [mailto:[email protected]] Sent: Monday, January 30, 2006 5:09 PM To: Makavy, Erez (Erez) Cc: [email protected] Subject: RE: What's the minimum RAM usage of a Net-SNMP Sub-agent? (approximate) Erez: This can be easily determined, by creating first an agent without a sub-agent, and then creating an agent that includes a minimal sub-agent. A minimal sub-agent would serve a single OID at the top of a sub-tree. That is, the tree served by the sub-agent would be of minimal extent, and have a single leaf node, and having no extent of hierarchy. Under these circumstances, subtraction of the code sizes (size of the corresponding executables) should give the minimal size of a sub-agent. Of course, this computation would not account for any RAM usage made in response to run-time allocation/de-allocation requests, such as those caused by calls to functions like malloc(). William R. Buckley _____ From: [email protected] [mailto:[email protected]] On Behalf Of Makavy, Erez (Erez) Sent: Monday, January 30, 2006 4:03 AM To: [email protected] Subject: What's the minimum RAM usage of a Net-SNMP Sub-agent? (approximate)