I have a build of net-snmp refreshed from CVS on 10/20.  I also have a
build of net-snmp-5.2.1.2.  I have configured with the same exact
options and built in the same way.  The problem is the CVS exe is
gigantic, while the 5.2.1.2 exe is very small.  I was wondering what
gives?  It looks like both the .rodata and the .text segments are
gigantic for the CVS refreshed version.

here is a 'file' on both:

CVS Version:
snmpd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 
2.2.5, dynamically linked (uses shared libs), not stripped
ls -l snmpd
-rwxr-xr-x  1 badger users 2722208 2005-10-25 11:48 snmpd

5.2.1.2 Version:
snmpd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 
2.2.5, dynamically linked (uses shared libs), not stripped
ls -l snmpd
-rwxr-xr-x  1 badger users 45212 2005-10-25 11:55 snmpd


Here is the objdump -h of the CVS version - followed by the objdump -h
of the 5.2.1.2 version.  Look in particular at the .rodata and .text
segments.  Is there some gigantic array that is being created and
never used somewhere?  The good news is that the memory used by the
running processes looks almost exactly the same.  But snmpd going from
taking up 45K to 2.5Meg is not cool.

I know, I know - I should update to the latest CVS and/or only used
blessed versions - but I partly wanted to bring this up here in case
it wasn't seen yet so that it could be looked into before release.  I
will, of course, help to track this down in any way I can.  If it has
been fixed recently, then apologies for the noise.


CVS Version:
objdump -h snmpd

snmpd:     file format elf32-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .interp       00000013  08048134  08048134  00000134  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  08048148  08048148  00000148  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.SuSE    00000018  08048168  08048168  00000168  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .hash         00000500  08048180  08048180  00000180  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       00000bb0  08048680  08048680  00000680  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       00000691  08049230  08049230  00001230  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  00000176  080498c2  080498c2  000018c2  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000090  08049a38  08049a38  00001a38  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rel.dyn      00000038  08049ac8  08049ac8  00001ac8  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rel.plt      00000540  08049b00  08049b00  00001b00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  0804a040  0804a040  00002040  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          00000a90  0804a058  0804a058  00002058  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .text         000c3094  0804aaf0  0804aaf0  00002af0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .fini         0000001a  0810db84  0810db84  000c5b84  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .rodata       00023891  0810dba0  0810dba0  000c5ba0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 15 .data         00005108  08132440  08132440  000e9440  2**5
                  CONTENTS, ALLOC, LOAD, DATA
 16 .eh_frame     00000004  08137548  08137548  000ee548  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .dynamic      000000e8  0813754c  0813754c  000ee54c  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 18 .ctors        00000008  08137634  08137634  000ee634  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 19 .dtors        00000008  0813763c  0813763c  000ee63c  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000004  08137644  08137644  000ee644  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 21 .got          000002b0  08137648  08137648  000ee648  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 22 .bss          0004b0f0  08137900  08137900  000ee900  2**5
                  ALLOC
 23 .comment      0000156f  00000000  00000000  000ee900  2**0
                  CONTENTS, READONLY
 24 .debug_aranges 000015f8  00000000  00000000  000efe70  2**3
                  CONTENTS, READONLY, DEBUGGING
 25 .debug_pubnames 0000f19d  00000000  00000000  000f1468  2**0
                  CONTENTS, READONLY, DEBUGGING
 26 .debug_info   000ce962  00000000  00000000  00100605  2**0
                  CONTENTS, READONLY, DEBUGGING
 27 .debug_abbrev 000188ae  00000000  00000000  001cef67  2**0
                  CONTENTS, READONLY, DEBUGGING
 28 .debug_line   0002616b  00000000  00000000  001e7815  2**0
                  CONTENTS, READONLY, DEBUGGING
 29 .debug_frame  00018e78  00000000  00000000  0020d980  2**2
                  CONTENTS, READONLY, DEBUGGING
 30 .debug_str    00016f31  00000000  00000000  002267f8  2**0
                  CONTENTS, READONLY, DEBUGGING
 31 .debug_loc    0003b153  00000000  00000000  0023d729  2**0
                  CONTENTS, READONLY, DEBUGGING
 32 .debug_ranges 000025f8  00000000  00000000  0027887c  2**0
                  CONTENTS, READONLY, DEBUGGING



5.2.1.2 Version:
objdump -h snmpd

snmpd:     file format elf32-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .interp       00000013  08048134  08048134  00000134  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  08048148  08048148  00000148  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.SuSE    00000018  08048168  08048168  00000168  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .hash         00000360  08048180  08048180  00000180  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       00000750  080484e0  080484e0  000004e0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       00000716  08048c30  08048c30  00000c30  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  000000ea  08049346  08049346  00001346  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000030  08049430  08049430  00001430  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rel.dyn      000000b8  08049460  08049460  00001460  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rel.plt      000002a0  08049518  08049518  00001518  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  080497b8  080497b8  000017b8  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          00000550  080497d0  080497d0  000017d0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .text         00001f84  08049d20  08049d20  00001d20  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .fini         0000001a  0804bca4  0804bca4  00003ca4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .rodata       00000e14  0804bcc0  0804bcc0  00003cc0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 15 .data         00000018  0804d000  0804d000  00005000  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 16 .eh_frame     00000004  0804d018  0804d018  00005018  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .dynamic      00000110  0804d01c  0804d01c  0000501c  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 18 .ctors        00000008  0804d12c  0804d12c  0000512c  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 19 .dtors        00000008  0804d134  0804d134  00005134  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000004  0804d13c  0804d13c  0000513c  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 21 .got          00000160  0804d140  0804d140  00005140  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 22 .bss          00001614  0804d2a0  0804d2a0  000052a0  2**5
                  ALLOC
 23 .comment      000000d9  00000000  00000000  000052a0  2**0
                  CONTENTS, READONLY
 24 .debug_aranges 000000b8  00000000  00000000  00005380  2**3
                  CONTENTS, READONLY, DEBUGGING
 25 .debug_pubnames 0000011e  00000000  00000000  00005438  2**0
                  CONTENTS, READONLY, DEBUGGING
 26 .debug_info   000017e2  00000000  00000000  00005556  2**0
                  CONTENTS, READONLY, DEBUGGING
 27 .debug_abbrev 00000420  00000000  00000000  00006d38  2**0
                  CONTENTS, READONLY, DEBUGGING
 28 .debug_line   00000737  00000000  00000000  00007158  2**0
                  CONTENTS, READONLY, DEBUGGING
 29 .debug_frame  000002d8  00000000  00000000  00007890  2**2
                  CONTENTS, READONLY, DEBUGGING
 30 .debug_str    00000b21  00000000  00000000  00007b68  2**0
                  CONTENTS, READONLY, DEBUGGING
 31 .debug_loc    00000791  00000000  00000000  00008689  2**0
                  CONTENTS, READONLY, DEBUGGING
 32 .debug_ranges 00000098  00000000  00000000  00008e1a  2**0
                  CONTENTS, READONLY, DEBUGGING


-- 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to