[opensuse-kernel] Disk space requirement of KOTD build from source
Today I run out if diskpscae when building a KOTD with "default" configuration from sources. I found that the build now nees 3.5G disk space. the same build of 2.6.27.7-9 only needs 888M. The installation also need much more spae than before : rw-r--r-- 1 root root 2511648 29. Jan 04:35 vmlinuz-2.6.27.13- HEAD_20090128193548_5c4d0ded-default -rw-r--r-- 1 root root 2576096 5. Dez 03:52 vmlinuz-2.6.27.7-9-default and the modules and in /lib/modules: 84M 2.6.27.7-9-default 893M 2.6.27.13-HEAD_20090128193548_5c4d0ded-default Is that change intended ? -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Thursday 29 January 2009 05:37:40 Markus Koßmann wrote:
Today I run out if diskpscae when building a KOTD with "default" configuration from sources. I found that the build now nees 3.5G disk space. the same build of 2.6.27.7-9 only needs 888M. The installation also need much more spae than before : rw-r--r-- 1 root root 2511648 29. Jan 04:35 vmlinuz-2.6.27.13- HEAD_20090128193548_5c4d0ded-default -rw-r--r-- 1 root root 2576096 5. Dez 03:52 vmlinuz-2.6.27.7-9-default and the modules and in /lib/modules: 84M 2.6.27.7-9-default 893M 2.6.27.13-HEAD_20090128193548_5c4d0ded-default
Is that change intended ?
Very likely you build with CONFIG_DEBUG_INFO and didn't stripped the .debuginfo sections from all the kernel modules. In the buildservice and in the shipped product we strip this debuginfo into "debug"-subpackages (debuginfo, debugsource). On doubt just run: # objdump -h /lib/modules/2.6.*/kernel/sound/soundcore.ko | grep debug_info If you don't plan to use kdb, crash, lcrash, systemtap, gdb, ... or so then you might want to build with CONFIG_DEBUG_INFO=n Or you can look into "objcopy" how to strip manually the debuginfo sections. best regards, Daniel -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Am Donnerstag, 29. Januar 2009 schrieb Daniel Gollub:
On Thursday 29 January 2009 05:37:40 Markus Koßmann wrote:
Today I run out if diskpscae when building a KOTD with "default" configuration from sources. I found that the build now nees 3.5G disk space. the same build of 2.6.27.7-9 only needs 888M. The installation also need much more spae than before : rw-r--r-- 1 root root 2511648 29. Jan 04:35 vmlinuz-2.6.27.13- HEAD_20090128193548_5c4d0ded-default -rw-r--r-- 1 root root 2576096 5. Dez 03:52 vmlinuz-2.6.27.7-9-default and the modules and in /lib/modules: 84M 2.6.27.7-9-default 893M 2.6.27.13-HEAD_20090128193548_5c4d0ded-default
Is that change intended ?
Very likely you build with CONFIG_DEBUG_INFO and didn't stripped the .debuginfo sections from all the kernel modules. In the buildservice and in the shipped product we strip this debuginfo into "debug"-subpackages (debuginfo, debugsource). Now to the list, sorry .
Indeed it was build CONFIG_DEBUG_INFO. Is it really intended that the "default" configuration (/usr/src/linux-2.6.27.13- HEAD_20090128193548_5c4d0ded-obj/x86_64/default/.config) has now CONFIG_DEBUG_INFO enabled ? I would have expected that only the "debug" configuration ( /usr/src/linux-2.6.27.13-HEAD_20090128193548_5c4d0ded- obj/x86_64/debug/.config) has enabled CONFIG_DEBUG_INFO. The linux-2.6.27.7-9 kernel-source didn't enable CONFIG_DEBUG_INFO in its "default" configuration (linux-2.6.27.7-9-obj/x86_64/default/.config) That change is probably related to * Di Jan 20 2009 mmarek@suse.cz - rpm/kernel-source.spec.in: set CONFIG_DEBUG_INFO=y in the packaged .configs if builfing debug packages (bnc#460887) Unfortunately bnc#460887 is closed. So i cannot follow what that patch intended to fix. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Markus Koßmann wrote:
Am Donnerstag, 29. Januar 2009 schrieb Daniel Gollub:
Today I run out if diskpscae when building a KOTD with "default" configuration from sources. I found that the build now nees 3.5G disk space. the same build of 2.6.27.7-9 only needs 888M. The installation also need much more spae than before : rw-r--r-- 1 root root 2511648 29. Jan 04:35 vmlinuz-2.6.27.13- HEAD_20090128193548_5c4d0ded-default -rw-r--r-- 1 root root 2576096 5. Dez 03:52 vmlinuz-2.6.27.7-9-default and the modules and in /lib/modules: 84M 2.6.27.7-9-default 893M 2.6.27.13-HEAD_20090128193548_5c4d0ded-default
Is that change intended ? Very likely you build with CONFIG_DEBUG_INFO and didn't stripped the .debuginfo sections from all the kernel modules. In the buildservice and in
On Thursday 29 January 2009 05:37:40 Markus Koßmann wrote: the shipped product we strip this debuginfo into "debug"-subpackages (debuginfo, debugsource). Now to the list, sorry .
Indeed it was build CONFIG_DEBUG_INFO. Is it really intended that the "default" configuration (/usr/src/linux-2.6.27.13- HEAD_20090128193548_5c4d0ded-obj/x86_64/default/.config) has now CONFIG_DEBUG_INFO enabled ? I would have expected that only the "debug" configuration ( /usr/src/linux-2.6.27.13-HEAD_20090128193548_5c4d0ded- obj/x86_64/debug/.config) has enabled CONFIG_DEBUG_INFO.
The linux-2.6.27.7-9 kernel-source didn't enable CONFIG_DEBUG_INFO in its "default" configuration (linux-2.6.27.7-9-obj/x86_64/default/.config)
That change is probably related to * Di Jan 20 2009 mmarek@suse.cz - rpm/kernel-source.spec.in: set CONFIG_DEBUG_INFO=y in the packaged .configs if builfing debug packages (bnc#460887)
Unfortunately bnc#460887 is closed. So i cannot follow what that patch intended to fix.
That was to fix a discrepancy between the shipped .config and the one actually used for compilation. CONFIG_DEBUG_INFO has always been enabled on the command line. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkmB8rYACgkQLPWxlyuTD7J4BQCfWIdwAG3XUXtpEz2eJJg4Hd4I XhUAn1BJhlWoK74gF5/9ApnIvTRetrLY =SgmC -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Gollub wrote:
On Thursday 29 January 2009 05:37:40 Markus Koßmann wrote:
Today I run out if diskpscae when building a KOTD with "default" configuration from sources. I found that the build now nees 3.5G disk space. the same build of 2.6.27.7-9 only needs 888M. The installation also need much more spae than before : rw-r--r-- 1 root root 2511648 29. Jan 04:35 vmlinuz-2.6.27.13- HEAD_20090128193548_5c4d0ded-default -rw-r--r-- 1 root root 2576096 5. Dez 03:52 vmlinuz-2.6.27.7-9-default and the modules and in /lib/modules: 84M 2.6.27.7-9-default 893M 2.6.27.13-HEAD_20090128193548_5c4d0ded-default
Is that change intended ?
Very likely you build with CONFIG_DEBUG_INFO and didn't stripped the .debuginfo sections from all the kernel modules. In the buildservice and in the shipped product we strip this debuginfo into "debug"-subpackages (debuginfo, debugsource).
On doubt just run: # objdump -h /lib/modules/2.6.*/kernel/sound/soundcore.ko | grep debug_info
If you don't plan to use kdb, crash, lcrash, systemtap, gdb, ... or so then you might want to build with CONFIG_DEBUG_INFO=n
Or you can look into "objcopy" how to strip manually the debuginfo sections.
Yeah, it's likely the modules aren't having their debug_info sections removed during installation. CONFIG_DEBUG_INFO=y is part of the spec file and has been for years, so the issue isn't just that it's enabled. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkmB8mYACgkQLPWxlyuTD7LFtACgngJhFJCZmbD50nGOI2ZA+3/p QjQAn0kiOQjGdQyIwlASeEBllNiLMyNE =FhHX -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Am Donnerstag, 29. Januar 2009 schrieb Jeff Mahoney:
Daniel Gollub wrote:
On Thursday 29 January 2009 05:37:40 Markus Koßmann wrote:
Today I run out if diskpscae when building a KOTD with "default" configuration from sources. I found that the build now nees 3.5G disk space. the same build of 2.6.27.7-9 only needs 888M. The installation also need much more spae than before : rw-r--r-- 1 root root 2511648 29. Jan 04:35 vmlinuz-2.6.27.13- HEAD_20090128193548_5c4d0ded-default -rw-r--r-- 1 root root 2576096 5. Dez 03:52 vmlinuz-2.6.27.7-9-default and the modules and in /lib/modules: 84M 2.6.27.7-9-default 893M 2.6.27.13-HEAD_20090128193548_5c4d0ded-default
Is that change intended ?
Very likely you build with CONFIG_DEBUG_INFO and didn't stripped the .debuginfo sections from all the kernel modules. In the buildservice and in the shipped product we strip this debuginfo into "debug"-subpackages (debuginfo, debugsource).
On doubt just run: # objdump -h /lib/modules/2.6.*/kernel/sound/soundcore.ko | grep debug_info
If you don't plan to use kdb, crash, lcrash, systemtap, gdb, ... or so then you might want to build with CONFIG_DEBUG_INFO=n
Or you can look into "objcopy" how to strip manually the debuginfo sections.
Yeah, it's likely the modules aren't having their debug_info sections removed during installation. CONFIG_DEBUG_INFO=y is part of the spec file and has been for years, so the issue isn't just that it's enabled.
-Jeff Did I understand right ? The normal build process of the the "-default" rpm is: build with CONFIG_DEBUG_INFO=y strip debug_info sectiona ( within rpm build script)
And if I don't want to make a rpm from the kernel-source.rpm but to install that kernel manually with "make modules_install; make install" after compiling it I have to strip these sections manually haven't I? -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Markus Koßmann wrote:
Am Donnerstag, 29. Januar 2009 schrieb Jeff Mahoney:
Daniel Gollub wrote:
On Thursday 29 January 2009 05:37:40 Markus Koßmann wrote:
Today I run out if diskpscae when building a KOTD with "default" configuration from sources. I found that the build now nees 3.5G disk space. the same build of 2.6.27.7-9 only needs 888M. The installation also need much more spae than before : rw-r--r-- 1 root root 2511648 29. Jan 04:35 vmlinuz-2.6.27.13- HEAD_20090128193548_5c4d0ded-default -rw-r--r-- 1 root root 2576096 5. Dez 03:52 vmlinuz-2.6.27.7-9-default and the modules and in /lib/modules: 84M 2.6.27.7-9-default 893M 2.6.27.13-HEAD_20090128193548_5c4d0ded-default
Is that change intended ? Very likely you build with CONFIG_DEBUG_INFO and didn't stripped the .debuginfo sections from all the kernel modules. In the buildservice and in the shipped product we strip this debuginfo into "debug"-subpackages (debuginfo, debugsource).
On doubt just run: # objdump -h /lib/modules/2.6.*/kernel/sound/soundcore.ko | grep debug_info
If you don't plan to use kdb, crash, lcrash, systemtap, gdb, ... or so then you might want to build with CONFIG_DEBUG_INFO=n
Or you can look into "objcopy" how to strip manually the debuginfo sections. Yeah, it's likely the modules aren't having their debug_info sections removed during installation. CONFIG_DEBUG_INFO=y is part of the spec file and has been for years, so the issue isn't just that it's enabled.
-Jeff Did I understand right ? The normal build process of the the "-default" rpm is: build with CONFIG_DEBUG_INFO=y strip debug_info sectiona ( within rpm build script)
And if I don't want to make a rpm from the kernel-source.rpm but to install that kernel manually with "make modules_install; make install" after compiling it I have to strip these sections manually haven't I?
Ah ok, yeah. That's what's changed. The config files in kernel-source now reflect that. The stripping of the debug_info sections is something that happens automatically as part of the rpm build process though. I'm not actually sure how to do it manually. You're probably better off just disabling it in .config. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkmCF2EACgkQLPWxlyuTD7IEwgCfao0UJ1DaCuCkjTYHQcJ76nnC 59wAnjtulva+tkjkWQIVveF7xLOTS1gU =qYuH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (3)
-
Daniel Gollub
-
Jeff Mahoney
-
Markus Koßmann