Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel files: Big increase in size with 5.x ?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
martin13
n00b
n00b


Joined: 20 Oct 2021
Posts: 21

PostPosted: Sun Oct 31, 2021 5:15 pm    Post subject: Reply with quote

Tony0945 wrote:
I turned off DEBUG_INFO as recommended and saved a whole 32 bytes! Not M not K, BYTES.

Code:
-rw-r--r-- 1 root root 5748544 Oct 23 11:08 /boot/vmlinuz-5.10.52-gentoo.old
-rw-r--r-- 1 root root 5748512 Oct 31 08:32 /boot/vmlinuz-5.10.52-gentoo


With CONFIG_DEBUG_INFO=n
Code:

$ file /usr/src/linux/vmlinux
/usr/src/linux/vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=b1ea3ba26eea1d35003623cdb52ca74de335ab34, not stripped


With CONFIG_DEBUG_INFO=y
Code:

$ file /usr/src/linux-5.4.97-gentoo/vmlinux
/usr/src/linux-5.4.97-gentoo/vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=76939748d9b1441fb6ee67d71ee4b5b656405b59, with debug_info, not stripped


What says "file" about the files in /usr/src/linux* on your side?
Does stripping remove the debug information?
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Sun Oct 31, 2021 5:22 pm    Post subject: Reply with quote

@Tony0945 -- Some people care about size in /usr/src because they (like me) keep multiple kernel sources and excessively large files take away from their comfortable elbow room. On most, but not all, systems, I have plenty of elbow room. One thing about Gentoo, it takes plenty of elbow room to maintain.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun Oct 31, 2021 6:43 pm    Post subject: Reply with quote

modules, yes
initramfs, no
Back to top
View user's profile Send private message
martin13
n00b
n00b


Joined: 20 Oct 2021
Posts: 21

PostPosted: Sun Oct 31, 2021 7:48 pm    Post subject: Reply with quote

Tony0945 wrote:
modules, yes
initramfs, no

So perhaps little more difference in size on your side is visible in the "modules department" ( /lib/modules/ or similiar) ??
My kernel has no modules.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun Oct 31, 2021 9:06 pm    Post subject: Reply with quote

maybe nouveau has grown. that would make sense

EDIT:
shrunk actually
Code:
~ $ ls -ltrh `locate nouveau.ko|grep /lib/modules`
-rw-r--r-- 1 root root 163M Aug  8  2019 /lib/modules/4.17.19-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 195M Dec  5  2020 /lib/modules/5.4.80-gentoo-r1/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 196M Feb  7  2021 /lib/modules/5.4.72-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 195M Feb  9  2021 /lib/modules/5.4.92-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 185M Jun  2 09:11 /lib/modules/5.10.27-gentooASUS/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 131M Jun 17 13:08 /lib/modules/5.4.109-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 131M Jul  2 19:53 /lib/modules/5.4.97-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 277M Jul 31 09:17 /lib/modules/5.10.27-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 195M Oct  4 08:12 /lib/modules/5.4.143-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
-rw-r--r-- 1 root root 4.1M Oct 31 08:31 /lib/modules/5.10.52-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum