Re: Memory usage (was select() on external FDs in get APIs)

This is a discussion on Re: Memory usage (was select() on external FDs in get APIs) within the SNMP Coders forums, part of the Networking and Network Related category; On Wed, 06 Jun 2007 23:46:33 +0200 Magnus wrote: MF> valgrind ./test -f MF> ^C MF&...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-07-2007
Robert Story
 
Posts: n/a
Default Re: Memory usage (was select() on external FDs in get APIs)

On Wed, 06 Jun 2007 23:46:33 +0200 Magnus wrote:
MF> valgrind ./test -f
MF> ^C
MF> malloc/free: 25,348 allocs, 25,345 frees, 1,234,953 bytes allocated.
MF>
MF> as compared to
MF>
MF> MIBS= valgrind ./test -f
MF> ^C
MF> malloc/free: 1,375 allocs, 1,372 frees, 311,625 bytes allocated.
MF>
MF> I think 0.9MB, or 75% of all allocated memory, is a bit much for a
MF> feature that ain't used.

But we don't know that the MIB's _won't_ be used. It's that the don't _have_
to be used. So the default is to load them, in case they are used.

-------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0