[opensuse-factory] recompiled stock kernel modules take many X more disk space than modules from installed rpm
What I did: 1-installed factory via ftp 2-zcat /proc/config.gz > .config 3-make menuconfig (add smbfs support and change kernel suffix) 4-make 5-make modules_install 6-INSTALL_PATH=/boot make install 7-fixed broken /boot/grub/menu.lst 8-rebooted new kernel /lib/modules/2.6.21-rc7-3-default# du -s . 57410 . /lib/modules/2.6.21-rc7-3-b7513-16# du -s . 529982 . /lib/modules/2.6.21-rc7-3-b7513-16/kernel/fs/reiserfs# ll -rw-rw-rw- 1 root root 2783209 apr 30 01:16 (objdump -h shows 26 segments, 9 more than stock) /lib/modules/2.6.21-rc7-3-b7513-16/kernel/fs/smbfs# ll -rw-rw-rw- 1 root root 1081958 apr 30 01:16 smbfs.ko (stat claims 2126 blocks of 1024 each, double that required for 1081958 filesize; objdump -h shows 24 segments, 9 more than stock) On my 10.2 smbfs.ko is only size 75753. Why do my modules consume 9.2 times as much overall disk space as the stock modules? What did I do wrong? -- "Therefore, if anyone is in Christ, he is a new creation; the old has gone, the new has come!" 2 Corinthians 5:17 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Felix Miata
What I did: 1-installed factory via ftp 2-zcat /proc/config.gz > .config 3-make menuconfig (add smbfs support and change kernel suffix) 4-make 5-make modules_install 6-INSTALL_PATH=/boot make install 7-fixed broken /boot/grub/menu.lst 8-rebooted new kernel /lib/modules/2.6.21-rc7-3-default# du -s . 57410 . /lib/modules/2.6.21-rc7-3-b7513-16# du -s . 529982 . /lib/modules/2.6.21-rc7-3-b7513-16/kernel/fs/reiserfs# ll -rw-rw-rw- 1 root root 2783209 apr 30 01:16 (objdump -h shows 26 segments, 9 more than stock) /lib/modules/2.6.21-rc7-3-b7513-16/kernel/fs/smbfs# ll -rw-rw-rw- 1 root root 1081958 apr 30 01:16 smbfs.ko (stat claims 2126 blocks of 1024 each, double that required for 1081958 filesize; objdump -h shows 24 segments, 9 more than stock)
On my 10.2 smbfs.ko is only size 75753. Why do my modules consume 9.2 times as much overall disk space as the stock modules? What did I do wrong?
Stripping? We apply strip unneeded during RPM build, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Tuesday 01 May 2007 01:37, Andreas Jaeger wrote:
Felix Miata
writes: What I did: ...
On my 10.2 smbfs.ko is only size 75753. Why do my modules consume 9.2 times as much overall disk space as the stock modules? What did I do wrong?
Stripping? We apply strip unneeded during RPM build,
I'd thought of that, but as an experiment, I looked at the kernel modules on my 10.0 system (105 of them are present in /lib/modules/2.6.13-15.11-smp) and all of them are like this one: % file extra/acx_pci.ko extra/acx_pci.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped According to nm, that particular module (the first in an alphabetical list) has 384 symbols: % nm extra/acx_pci.ko |wc -l 384
Andreas
Randall Schulz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (3)
-
Andreas Jaeger
-
Felix Miata
-
Randall R Schulz