about 4):
Yes I read the relevant FAQ, they don't say anything about cutting down
the size of libraries.
1) libnetsnmphelpers (~300KB):
can I reduce it's size if I don't use all helpers?
2) libnetsnmpmibs (~2MB):
a) can I reduce it's size if I don't choose to support (configure
with --with-out-mib-modules) all the mibs?
b) How can I configure which MIBs will be included in the
libnetsnmpmibs library?
3) libnetsnmpagent (~400KB):
a) can it be reduced? what does it include? Do I need all of it?
4) libnetsnmp (~950KB):
a) can it be reduced? what does it include? Do I need all of it?
Thanks,
Erez Makavy
-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 17, 2006 11:12 AM
To: Makavy, Erez (Erez)
Cc: [email protected]
Subject: RE: snmpd reduce memory usage
On Mon, 2006-01-16 at 21:05 +0200, Makavy, Erez (Erez) wrote:
> I think we got our definition mixed. I'll try again:
>
> - the MIB environment variable controls which MIBs (text files)
> will be parsed (when initializing snmp - init_snmp() )
> - the [--with-mib-modules, --with-out-mib-modules] tokes control which
> MIBs the master agent will initialize (I defined this as 'load').
Correct.
The fundamental difference is between loading MIB *files* (used for
translating between numeric OIDs and MIB object names), and loading MIB
*modules* (or "implementation modules") - the code that actually
implements a particular group of MIB objects.
These are two completely independent things.
> - I guess --with-mib-modules=ucdDemoPublic, will cause the master
> agent to call init_ucdDemoPublic()
>
> Right?
Right!
> Now.. more quesitons:
> 1) the --with-mib-modules do not affect sub-agents, right?
It depends :-)
It is perfectly possible to run the "main" Net-Snmp agent as an AgentX
subagent (using the -X) flag. In this case, it will load the
netsnmpmibs library as usual, which will attempt to register the MIB
modules as configured using --with{,-out}-mib-modules
But if the subagent was configured/compiled using
"net-snmp-configure --compile-subagent"
or something similar, then this will attempt to register the
MIB module(s) listed there, and the --with-{,out}-mib-modules settings
are completely irrelevant.
> 2) if MIBS environment variable is an empty string, are default
> MIBs still being parsed?
If the MIBS environment variable is set, then this replaces the list of
default MIBs. If it's set to an empty string, then no MIBs should be
parsed.
If it's not set at all (or starts/ends with '+'), then the default
list *will* be parsed.
> 3) Each Sub-agent takes ~600KB of RAM ( that is with MIBS set to
> empty string)
> a) Is the SHR (shared memory) amount a reasonable one?
> what is your estimate on the lowets amount possible?
No idea - I've had no experience working with embedded agents, so I'm
afraid that I've never really looked at the memory usage
characteristics.
> 4) To save disk space (in embedded system), could I cut down the
> size of the libraries? (I need them at run-time, right?)
I presume you've looked at the FAQ entries:
How can I reduce the memory footprint?
and
How can I reduce the installation footprint or speed up compilation?
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&kid3432&bid#0486&dat1642
_______________________________________________
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