Skip to content

Instantly share code, notes, and snippets.

@immolo
Last active September 2, 2024 23:47
Show Gist options
  • Select an option

  • Save immolo/2a7cc5b7afc3d56d64867a1404648415 to your computer and use it in GitHub Desktop.

Select an option

Save immolo/2a7cc5b7afc3d56d64867a1404648415 to your computer and use it in GitHub Desktop.
Comparing +/-debug differences on sys-kernel/gentoo-kernel
System A:
sys-kernel/gentoo-kernel-6.10.6 +initramfs +strip
USE=debug: DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=n
vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=b1a434f803e6221cd89a8c75d781f24f52ed6311, not stripped
size: 73MB
boot image size: 17MB
modules dir size: 56MB
dracut base: 38MB
USE=debug:
vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=ba340e637b331183d3c4c6b7bf648b4982013b6a, with debug_info, not stripped
size: 439M
gpkg: 362M
boot image size: 19M
modules dir size: 633M
dracut base: 41 MiB
Hostonly initramfs: 11M (as a reference)
USE=-debug:
vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=52158e165171742dcfb1654b2119ea7587e0b784, stripped
size: 153MB
gpkg: 130M
boot image size: 17M
modules dir size: 563M
dracut base: 38 MiB
System B:
USE=debug + CONFIG_DEBUG_INFO_COMPRESSED_ZLIB=y:
vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=f6c3eb96279a4208e8110fb63714fc52e5722d91, with debug_info, not stripped
size: 257831704
boot image size: 18981376
modules dir size: 498036
ugrd base: 24.70 MiB
ugrd compressed: 8.38 MiB
USE=debug:
vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=d25998c4ff65de42bfc55bae2650c9ad02c9f5f8, with debug_info, not stripped
size: 397M
gpkg: 294M
boot image size: 19M
modules dir size: 487M
ugrd base: 24.70 MiB
ugrd compressed: 8.39 MiB
USE=-debug (current):
vmlinuz: Linux kernel x86 boot executable bzImage, version 6.6.47-gentoo-dist-hardened (portage@localhost) #1 SMP PREEMPT_DYNAMIC Tue Aug 27 12:53:15 CDT 2024, RO-rootFS, swap_dev 0X10, Normal VGA
gpkg: 116M
boot image size: 17M
modules dir size: 422M
ugrd base: 24.61 MiB
ugrd compressed: 8.36 MiB
@desultory
Copy link

desultory commented Sep 2, 2024

nvm didn't disable dwarf toolchain properly

USE=debug:
    vmlinux: /usr/src/linux/vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=7dcf7a47dff5876eabbdc1a214719fa784c529a0, with debug_info, not stripped
    size: 397M
    gpkg: 294M
    boot image size: 19M
    modules dir size: 487M
    ugrd base: 24.70 MiB
    ugrd compressed: 8.39 MiB

@desultory
Copy link

desultory commented Sep 2, 2024

USE=debug CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=n
    vmlinux: /usr/src/linux/vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=2d33aff08d2aa9b94eec0eb9e15e56c39898308a, not stripped
    size: 70M
    gpkg: 135M
    boot image size: 17M
    modules dir size: 422M
    ugrd base: 24.61 MiB
    ugrd compressed: 8.36 MiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment