* Why are 2.6 modules so huge?
@ 2004-02-24 15:30 Ian Soboroff
2004-02-24 15:40 ` Norberto Bensa
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Ian Soboroff @ 2004-02-24 15:30 UTC (permalink / raw)
To: linux-kernel
Can anyone help me understand why 2.6-series kernel modules are so
huge?
$ cd /lib/modules
$ ls -l */kernel/fs/vfat
2.4.20-18.8bigmem/kernel/fs/vfat:
total 20
-rw-r--r-- 1 root root 17678 May 29 2003 vfat.o
2.4.23-xfs/kernel/fs/vfat:
total 20
-rw-r--r-- 1 root root 17614 Dec 3 18:04 vfat.o
2.6.0/kernel/fs/vfat:
total 288
-rw-r--r-- 1 root root 288738 Feb 11 16:47 vfat.ko
2.6.3/kernel/fs/vfat:
total 288
-rw-r--r-- 1 root root 289086 Feb 24 10:09 vfat.ko
Ian
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Why are 2.6 modules so huge? 2004-02-24 15:30 Why are 2.6 modules so huge? Ian Soboroff @ 2004-02-24 15:40 ` Norberto Bensa 2004-02-24 15:46 ` Måns Rullgård ` (3 subsequent siblings) 4 siblings, 0 replies; 9+ messages in thread From: Norberto Bensa @ 2004-02-24 15:40 UTC (permalink / raw) To: Ian Soboroff; +Cc: linux-kernel Ian Soboroff wrote: > Can anyone help me understand why 2.6-series kernel modules are so > huge? Debuging symbols? Regards, Norberto ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why are 2.6 modules so huge? 2004-02-24 15:30 Why are 2.6 modules so huge? Ian Soboroff 2004-02-24 15:40 ` Norberto Bensa @ 2004-02-24 15:46 ` Måns Rullgård 2004-02-25 7:28 ` Harald Dunkel 2004-02-24 15:50 ` Brian Gerst ` (2 subsequent siblings) 4 siblings, 1 reply; 9+ messages in thread From: Måns Rullgård @ 2004-02-24 15:46 UTC (permalink / raw) To: linux-kernel Ian Soboroff <ian.soboroff@nist.gov> writes: > Can anyone help me understand why 2.6-series kernel modules are so > huge? > > 2.6.3/kernel/fs/vfat: > total 288 > -rw-r--r-- 1 root root 289086 Feb 24 10:09 vfat.ko My 2.6.3 vfat.ko is 15365 bytes. Maybe you enabled kernel debugging symbols. -- Måns Rullgård mru@kth.se ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why are 2.6 modules so huge? 2004-02-24 15:46 ` Måns Rullgård @ 2004-02-25 7:28 ` Harald Dunkel 2004-02-25 8:56 ` Måns Rullgård 0 siblings, 1 reply; 9+ messages in thread From: Harald Dunkel @ 2004-02-25 7:28 UTC (permalink / raw) To: Måns Rullgård; +Cc: linux-kernel Måns Rullgård wrote: > > My 2.6.3 vfat.ko is 15365 bytes. Maybe you enabled kernel debugging > symbols. > % ll /lib/modules/2.6.3/kernel/fs/vfat/ total 16 -rw-r--r-- 1 root root 14232 Feb 19 07:43 vfat.ko Assuming that you are on i686: A size difference of 1 KByte (about 7%) is remarkable. Which gcc did you use for building 2.6.3? I am on Debian (Sid). Gcc is 3.3.3, which was released a few days ago. Regards Harri ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why are 2.6 modules so huge? 2004-02-25 7:28 ` Harald Dunkel @ 2004-02-25 8:56 ` Måns Rullgård 0 siblings, 0 replies; 9+ messages in thread From: Måns Rullgård @ 2004-02-25 8:56 UTC (permalink / raw) To: linux-kernel Harald Dunkel <harald.dunkel@t-online.de> writes: > Måns Rullgård wrote: >> My 2.6.3 vfat.ko is 15365 bytes. Maybe you enabled kernel debugging >> symbols. >> > > % ll /lib/modules/2.6.3/kernel/fs/vfat/ > total 16 > -rw-r--r-- 1 root root 14232 Feb 19 07:43 vfat.ko > > Assuming that you are on i686: > > A size difference of 1 KByte (about 7%) is remarkable. Which > gcc did you use for building 2.6.3? I used gcc 3.3.2. Here's an objdump -h of that file: /lib/modules/2.6.3/kernel/fs/vfat/vfat.ko: file format elf32-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .text 0000209c 00000000 00000000 00000034 2**2 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 1 .init.text 00000013 00000000 00000000 000020d0 2**0 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 2 .exit.text 00000013 00000000 00000000 000020e3 2**0 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 3 .rodata.str1.1 0000004c 00000000 00000000 000020f6 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .rodata.str1.32 00000073 00000000 00000000 00002160 2**5 CONTENTS, ALLOC, LOAD, READONLY, DATA 5 __ksymtab_strings 00000046 00000000 00000000 000021d3 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 6 __ksymtab 00000030 00000000 00000000 0000221c 2**2 CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA 7 .modinfo 00000059 00000000 00000000 00002260 2**5 CONTENTS, ALLOC, LOAD, READONLY, DATA 8 .data 00000120 00000000 00000000 000022c0 2**5 CONTENTS, ALLOC, LOAD, RELOC, DATA 9 .gnu.linkonce.this_module 00000200 00000000 00000000 00002400 2**7 CONTENTS, ALLOC, LOAD, RELOC, DATA, LINK_ONCE_DISCARD 10 .bss 00000000 00000000 00000000 00002600 2**2 ALLOC 11 .comment 00000036 00000000 00000000 00002600 2**0 CONTENTS, READONLY -- Måns Rullgård mru@kth.se ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why are 2.6 modules so huge? 2004-02-24 15:30 Why are 2.6 modules so huge? Ian Soboroff 2004-02-24 15:40 ` Norberto Bensa 2004-02-24 15:46 ` Måns Rullgård @ 2004-02-24 15:50 ` Brian Gerst 2004-02-24 16:03 ` Ian Soboroff 2004-02-24 15:50 ` Jan De Luyck 2004-02-24 16:05 ` James Morris 4 siblings, 1 reply; 9+ messages in thread From: Brian Gerst @ 2004-02-24 15:50 UTC (permalink / raw) To: Ian Soboroff; +Cc: linux-kernel Ian Soboroff wrote: > Can anyone help me understand why 2.6-series kernel modules are so > huge? > > $ cd /lib/modules > $ ls -l */kernel/fs/vfat > 2.4.20-18.8bigmem/kernel/fs/vfat: > total 20 > -rw-r--r-- 1 root root 17678 May 29 2003 vfat.o > > 2.4.23-xfs/kernel/fs/vfat: > total 20 > -rw-r--r-- 1 root root 17614 Dec 3 18:04 vfat.o > > 2.6.0/kernel/fs/vfat: > total 288 > -rw-r--r-- 1 root root 288738 Feb 11 16:47 vfat.ko > > 2.6.3/kernel/fs/vfat: > total 288 > -rw-r--r-- 1 root root 289086 Feb 24 10:09 vfat.ko > > Ian > You probably have debugging config options enabled (ie CONFIG_DEBUG_INFO). -- Brian Gerst ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why are 2.6 modules so huge? 2004-02-24 15:50 ` Brian Gerst @ 2004-02-24 16:03 ` Ian Soboroff 0 siblings, 0 replies; 9+ messages in thread From: Ian Soboroff @ 2004-02-24 16:03 UTC (permalink / raw) To: Brian Gerst; +Cc: linux-kernel Brian Gerst <bgerst@didntduck.org> writes: > > You probably have debugging config options enabled (ie CONFIG_DEBUG_INFO). > Duh. Thanks. Ian ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why are 2.6 modules so huge? 2004-02-24 15:30 Why are 2.6 modules so huge? Ian Soboroff ` (2 preceding siblings ...) 2004-02-24 15:50 ` Brian Gerst @ 2004-02-24 15:50 ` Jan De Luyck 2004-02-24 16:05 ` James Morris 4 siblings, 0 replies; 9+ messages in thread From: Jan De Luyck @ 2004-02-24 15:50 UTC (permalink / raw) To: linux-kernel -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 24 February 2004 16:30, Ian Soboroff wrote: > Can anyone help me understand why 2.6-series kernel modules are so > huge? > > $ cd /lib/modules > $ ls -l */kernel/fs/vfat > 2.4.20-18.8bigmem/kernel/fs/vfat: > total 20 > -rw-r--r-- 1 root root 17678 May 29 2003 vfat.o > > 2.6.3/kernel/fs/vfat: > total 288 > -rw-r--r-- 1 root root 289086 Feb 24 10:09 vfat.ko You probably have some sort of debugging on. devilkin@precious:/lib/modules/2.6.2/kernel/fs/vfat$ ls -l total 20 - -rw-r--r-- 1 root root 18750 2004-02-09 12:56 vfat.ko Jan - -- I will make you shorter by the head. -- Elizabeth I -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAO3LYUQQOfidJUwQRAnSrAJ4oV2H2wxWBSL7OcEW4A0c13nq/ewCfbcgQ LCE637rjKmxxbDpiAvVy1NE= =UVX/ -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why are 2.6 modules so huge? 2004-02-24 15:30 Why are 2.6 modules so huge? Ian Soboroff ` (3 preceding siblings ...) 2004-02-24 15:50 ` Jan De Luyck @ 2004-02-24 16:05 ` James Morris 4 siblings, 0 replies; 9+ messages in thread From: James Morris @ 2004-02-24 16:05 UTC (permalink / raw) To: Ian Soboroff; +Cc: linux-kernel On Tue, 24 Feb 2004, Ian Soboroff wrote: > > Can anyone help me understand why 2.6-series kernel modules are so > huge? > > $ cd /lib/modules > $ ls -l */kernel/fs/vfat > 2.4.20-18.8bigmem/kernel/fs/vfat: > total 20 > -rw-r--r-- 1 root root 17678 May 29 2003 vfat.o You should use size(1) for this purpose, instead of ls. - James -- James Morris <jmorris@redhat.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-02-25 8:57 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-02-24 15:30 Why are 2.6 modules so huge? Ian Soboroff 2004-02-24 15:40 ` Norberto Bensa 2004-02-24 15:46 ` Måns Rullgård 2004-02-25 7:28 ` Harald Dunkel 2004-02-25 8:56 ` Måns Rullgård 2004-02-24 15:50 ` Brian Gerst 2004-02-24 16:03 ` Ian Soboroff 2004-02-24 15:50 ` Jan De Luyck 2004-02-24 16:05 ` James Morris
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox