I have an existing daemon. I added agentx support to
make it a subagent.

heres some parts of the code.

/*****************************/
init_agent(mydaemon);
init_snmp(mydaemon);

run() {
 snmp_select_info();
}

select_pop() {
snmp_read();
}
/*******************************/

This changed my daemon size 10 times. I am going to
play with configure script to remove debug ...but i
was wondering if someone else ran into this issue.
Basically atleast for code that goes into production
we need smaller daemon size.

one additional thing that i can think of is to remove
mib loading for subagents ALONE. Master daemon and
subagents run on the same system so i cannt built the
lib*.a's without the mibloadings as master daemon
needs it.

thanks a lot for your help
Srinivas 


--- Robert Story <[EMAIL PROTECTED]> wrote:
> On Wed, 16 Mar 2005 14:24:25 -0800 (PST) Srinivas
> wrote:
> SA>    I am building a subagent using agentx. The
> 'size 
> SA> -t mydaemon' is showing a change of text size
> from 60k
> SA> to 900k....
> 
> What do you mean, a change? What did you do that
> resulted in the text size?
> 
> SA> is there a better way to make the code that gets
> linked in thinner.
> 
> you could compile a version of the libraries without
> the mib loading code or
> debugging. but i wouldn't do that unless you really
> really have to, since it
> makes debugging and troubleshooting harder.
> 
> -- 
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/>
> <irc://irc.freenode.net/#net-snmp>
> Archive:
>
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
> 
> You are lost in a twisty maze of little standards,
> all different. 
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
>
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to