On ons, 2007-06-06 at 21:58 +0100, Dave Shield wrote:
>   The agent typically doesn't need the MIB file at all.

And still we load it.

I have toyed with the subagent that is generated by

net-snmp-config --compile-subagent test examples/scalar_int.c

and valgrind.

At the moment I end up with 3 leaked blocks when I start it, waits for
it to attach to a master agent and then terminate it with Ctrl-C, but
this is not the interesting part here. The interesting part is this:

valgrind ./test -f
^C
malloc/free: 25,348 allocs, 25,345 frees, 1,234,953 bytes allocated.

as compared to

MIBS= valgrind ./test -f
^C
malloc/free: 1,375 allocs, 1,372 frees, 311,625 bytes allocated.

I think 0.9MB, or 75% of all allocated memory, is a bit much for a
feature that ain't used.

/MF


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to