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 parsed MIB files are loaded to memory, for use when
reading conf files. (it does not mean these MIBs we be supported by the
agent)

- the [--with-mib-modules, --with-out-mib-modules] tokes control which
MIBs the master agent will initialize (I defined this as 'load').
        - I guess --with-mib-modules=ucdDemoPublic, will cuase the
master agent to call init_ucdDemoPublic()

Right?

Now.. more quesitons:
1) the --with-mib-modules do not affect sub-agents, right?
2) if MIBS environment variable is an empty string, are default MIBs
still being parsed?

3) Each Sub-agent takes ~600KB of RAM ( that is with MIBS set to empty
string)
    this is the top utility printout:

PID USER      PR  NI  VIRT     RES    SHR  S  %CPU %MEM    TIME+
COMMAND
12651 root      15   0   12136   3032     2440 S  0.0  0.6   0:00.12
notif-sub
12721 root      15   0   12136   2968     2416 S  0.0  0.6   0:00.04
notif-sub 

   a) Is the SHR (shared memory) amount a reasonable one? what is your
estimate on the lowets amount possible?
   b) is the extra ~600KB per agent, a reasonable amount?    what is
your estimate on the lowets amount possible?
   c) What is in the other 9MB (12-3 MB) swaped files? is it the snmp
libraries (libsnmpagent, libsnmphelpers, libsnmpmibs,...)
       Are they all necesary ?

4) To save disk space (in embedded system), could I cut down the size of
the libraries? (I need them at run-time, right?)
    a) for example, say I use only one helper, not all of them, are
there configuration tokes to compile only partial libsnmphelpers?


Thank,
Erez.


-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 16, 2006 3:00 PM
To: Makavy, Erez (Erez)
Cc: [email protected]
Subject: Re: snmpd reduce memory usage

On Sun, 2006-01-15 at 19:58 +0200, Makavy, Erez (Erez) wrote:
> 1) what exactly doess the environment variable MIBS affect?
>      as I understand it it affect only the MIBs which the snmp 
> libraries will be initialized for, but it does not decide which MIBs 
> the snmpd loads. right?

Wrong.
The MIBS environment variable decides which MIB files should be loaded,
but does not affect which MIB modules are initialized.


>     1a) why in the firstplace are MIB text files parsed and loaded to 
> the memory of the snmpd? what use does it have for them?

So that you can do something like:

        view  sysView  included system


Without the MIB files, you'd have to do:

        view  sysView  included .1.3.6.1.2.1.1

instead.

 
> 2) what exactly do these configure tokes affect:
>         --with-mib-modules, --with-out-mib-modules ?

Those options control which MIB modules should be initialized by the
agent.


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://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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

Reply via email to