LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-12-2022, 12:06 PM   #4531
Spidergawd
Member
 
Registered: Jun 2016
Location: Cave Johnson's hometown
Distribution: Slackware64-15.0
Posts: 33

Rep: Reputation: Disabled

Quote:
Originally Posted by LuckyCyborg View Post
Simply reusing the -current's generic .config for building the 5.18.3 kernel on Slackware 15.0 resulted in 4,6GB space occupied by the kernel modules.

WTF?

PS. I've just used "make tarxz-pkg" and I do NOT think this influenced any way.
Quote:
Originally Posted by ponce View Post
I'd like to thank LuckyCyborg for pointing out my 4.9GB /lib/modules/5.18.3, and to also thank ponce for the tip on how to reduce it to 353MB. Thanks!
 
Old 06-12-2022, 01:34 PM   #4532
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by Spidergawd View Post
I'd like to thank LuckyCyborg for pointing out my 4.9GB /lib/modules/5.18.3, and to also thank ponce for the tip on how to reduce it to 353MB. Thanks!
Did you did in the kernel source tree the final commands of "make clean && make prepare && rm .version" ?

If NOT, there are another and probably over 15GB of storage space wasted.

Last edited by LuckyCyborg; 06-12-2022 at 01:35 PM.
 
Old 06-12-2022, 04:06 PM   #4533
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Interesting, I have 5.18.3 installed, compiled with gcc 12.1.0
/lib/modules/5.18.3 takes 53M
whole /lib/modules takes 212M (with installed 5.17.13, 5.18.1, 5.18.2 and 5.18.3)

I guess the question is how much space is taken by modules installed by default 5.18.3?
I doubt that as much 4.3GB
There are some obvious conclusions I think.
This actually is pretty funny.
 
Old 06-12-2022, 04:37 PM   #4534
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by Aeterna View Post
Interesting, I have 5.18.3 installed, compiled with gcc 12.1.0
/lib/modules/5.18.3 takes 53M
whole /lib/modules takes 212M (with installed 5.17.13, 5.18.1, 5.18.2 and 5.18.3)

I guess the question is how much space is taken by modules installed by default 5.18.3?
I doubt that as much 4.3GB
Then try yourself!

Did you know what our BDFL did? He did this:
Code:
#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_NONE is not set
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_DWARF5 is not set
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_COMPRESSED is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_BTF is not set
CONFIG_PAHOLE_HAS_SPLIT_BTF=y
# CONFIG_GDB_SCRIPTS is not set
CONFIG_FRAME_WARN=0
CONFIG_STRIP_ASM_SYMS=y
# CONFIG_READABLE_ASM is not set
# CONFIG_HEADERS_INSTALL is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B is not set
CONFIG_STACK_VALIDATION=y
# CONFIG_VMLINUX_MAP is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options
This means that the kernel and its modules are built with debug data, when the default generic config is used "as is" .

So, instead of around 300MB you will get around 4.6GB of space occupied by the modules containing the debug info, unless you strip them.

And this happens with the installed modules, the source tree after compilation eats over 15GB. Compiled object files, things like this.

Quote:
Originally Posted by Aeterna View Post
There are some obvious conclusions I think.
This actually is pretty funny.
True!

I for one, I've laugh with tears when my system with 34GB free space started to show warnings about low space, and finally I realized that building a kernel with a stock generic config eaten over 20GB at whole.

BTW, to get the "traditional" modules, which occupies around 300MB and contains no debug data, you will need this:
Code:
#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO_NONE=y
# CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_DWARF5 is not set
CONFIG_FRAME_WARN=0
CONFIG_STRIP_ASM_SYMS=y
# CONFIG_READABLE_ASM is not set
# CONFIG_HEADERS_INSTALL is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B is not set
CONFIG_STACK_VALIDATION=y
# CONFIG_VMLINUX_MAP is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options
It's NOT my invention, but the "traditional" config section on stock Slackware kernels, until the latest one.

Last edited by LuckyCyborg; 06-12-2022 at 04:55 PM.
 
2 members found this post helpful.
Old 06-12-2022, 04:55 PM   #4535
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
This means that the kernel and its modules are built with debug data, when the default generic config is used "as is" .

So, instead of around 300MB you will get around 4.6GB of space occupied by the modules containing the debug info, unless you strip this.

And this happens with the installed modules, the source tree after compilation eats over 15GB. Compiled object files, things like this.
Not mine. I always check for the changes in config file. That is way my /lib/modules/5.18.3
is only 53M

I guess enabling debugging as CONFIG_DEBUG_INFO was a mistake? But if you build custom kernel just be more careful. In this case just build a new kernel with a proper config.
 
Old 06-12-2022, 05:05 PM   #4536
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by Aeterna View Post
Not mine. I always check for the changes in config file. That is way my /lib/modules/5.18.3
is only 53M

I guess enabling debugging as CONFIG_DEBUG_INFO was a mistake? But if you build custom kernel just be more careful. In this case just build a new kernel with a proper config.
Look, I'm totally NON interested to tinker with shiny custom kernels made with shiny custom configs which generates 50MB modules.

I've arrived to build some custom kernels in the last time, because I tinker with some out-of-tree drivers for USB WiFi dongles. That's WHY and for ONLY reason I needed and/or wanted on Slackware 15.0 a newer kernel. And I wanted a stock configured kernel.

I for one, when I need a newer (or older) kernel for a stable release, I will just grab the latest (or older) generic config from -current and do a local build.

This time, hilarity ensued because our BDFL meantime decided to build the kernel(s) with debug info and to strip the packages in the SlackBuild.

And no, I'm convinced that he did NOT enabled CONFIG_DEBUG_INFO by mistake.

Heck, the kernel configs was one of the things which worked out of box since immemorial times...

BUT, looks like that he found a way to complicate even their usage.

Last edited by LuckyCyborg; 06-12-2022 at 05:28 PM.
 
1 members found this post helpful.
Old 06-12-2022, 06:37 PM   #4537
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,103

Original Poster
Rep: Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278
5.19-rc2
Release Candidate 2, for the 5.19 "mainline" development kernel has been been made available for testing.

The tarball, https://git.kernel.org/torvalds/t/linux-5.19-rc2.tar.gz

Mr. Torvalds' announcement, https://lkml.iu.edu/hypermail/linux/...6.1/05095.html

Last edited by cwizardone; 06-12-2022 at 07:14 PM.
 
2 members found this post helpful.
Old 06-12-2022, 06:47 PM   #4538
Spidergawd
Member
 
Registered: Jun 2016
Location: Cave Johnson's hometown
Distribution: Slackware64-15.0
Posts: 33

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
Did you did in the kernel source tree the final commands of "make clean && make prepare && rm .version" ?

If NOT, there are another and probably over 15GB of storage space wasted.
I did not, went from: 17591403276 > 1181462176 with just "make clean".
 
Old 06-12-2022, 09:36 PM   #4539
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
Look, I'm totally NON interested to tinker with shiny custom kernels made with shiny custom configs which generates 50MB modules.

I've arrived to build some custom kernels in the last time, because I tinker with some out-of-tree drivers for USB WiFi dongles. That's WHY and for ONLY reason I needed and/or wanted on Slackware 15.0 a newer kernel. And I wanted a stock configured kernel.

I for one, when I need a newer (or older) kernel for a stable release, I will just grab the latest (or older) generic config from -current and do a local build.

This time, hilarity ensued because our BDFL meantime decided to build the kernel(s) with debug info and to strip the packages in the SlackBuild.

And no, I'm convinced that he did NOT enabled CONFIG_DEBUG_INFO by mistake.

Heck, the kernel configs was one of the things which worked out of box since immemorial times...

BUT, looks like that he found a way to complicate even their usage.
If you are not interested in tinkering with configs, then use one that arrived with a previous kernel that worked for you.
 
Old 06-13-2022, 07:26 AM   #4540
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,103

Original Poster
Rep: Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278
Year 2022, Round 35.

Another batch of updates has been scheduled for release on Wednesday, 15 June 2022, at approximately 09:00, GMT. If no problems are found while testing the release candidates, they might be available sometime on Tuesday (depending on your time zone).

The details:

5.18.4-rc1, with 339 patches, https://lkml.iu.edu/hypermail/linux/...6.1/07202.html

5.17.15-rc1, with 298 patches, https://lkml.iu.edu/hypermail/linux/...6.1/07520.html

5.15.47-rc1, with 247 patches, https://lkml.iu.edu/hypermail/linux/...6.1/06922.html

5.10.122-rc1, with 172 patches, https://lkml.iu.edu/hypermail/linux/...6.1/06718.html

5.4.198-rc1, with 411 patches, https://lkml.iu.edu/hypermail/linux/...6.1/05903.html

4.19.247-rc1, with 287 patches, https://lkml.iu.edu/hypermail/linux/...6.1/06357.html

4.14.283-rc1, with 218 patches, https://lkml.iu.edu/hypermail/linux/...6.1/05779.html

4.9.318-rc1, with 167 patches, https://lkml.iu.edu/hypermail/linux/...6.1/05606.html

Last edited by cwizardone; 06-13-2022 at 09:20 AM.
 
2 members found this post helpful.
Old 06-13-2022, 09:28 AM   #4541
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by Spidergawd View Post
I did not, went from: 17591403276 > 1181462176 with just "make clean".
Congratulations for recovering 16GB of wasted storage space!

Last edited by LuckyCyborg; 06-13-2022 at 10:04 AM.
 
1 members found this post helpful.
Old 06-13-2022, 08:08 PM   #4542
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,103

Original Poster
Rep: Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278
A second batch of release candidates for the current round of kernel updates:

5.18.4-rc2, with 343 patches, https://lkml.iu.edu/hypermail/linux/...6.1/08260.html

5.17.15-rc2, with 303 patches, https://lkml.iu.edu/hypermail/linux/...6.1/08259.html

5.15.47-rc2, with 251 patches, https://lkml.iu.edu/hypermail/linux/...6.1/08261.html

5.10.122-rc2, with 173 patches, https://lkml.iu.edu/hypermail/linux/...6.1/08262.html
 
2 members found this post helpful.
Old 06-14-2022, 09:57 AM   #4543
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
4.14.283 and 4.9.318 have emerged. More to follow
 
Old 06-14-2022, 10:05 AM   #4544
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,103

Original Poster
Rep: Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278
Kernel updates 4.19.247, 4.14.283 and 4.9.318 are now available at, https://www.kernel.org/

The change logs,

https://cdn.kernel.org/pub/linux/ker...geLog-4.19.247

https://cdn.kernel.org/pub/linux/ker...geLog-4.14.283

https://cdn.kernel.org/pub/linux/ker...ngeLog-4.9.318

Last edited by cwizardone; 06-14-2022 at 11:05 AM.
 
2 members found this post helpful.
Old 06-14-2022, 11:17 AM   #4545
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,103

Original Poster
Rep: Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278Reputation: 7278
Kernel updates 5.18.4, 5.17.15 [EOL], 5.15.47, 5.10.122 and 5.4.198 are now available at, https://www.kernel.org/

The 5.17.15 kernel has been marked as, End Of Life. It is a little early in the cycle and it wasn't announced in the change log, so maybe it is an error? We'll see.
Here we go,
https://lkml.iu.edu/hypermail/linux/...6.1/10076.html
Quote:
Linux 5.17.15
From: Greg Kroah-Hartman
Date: Tue Jun 14 2022 - 12:58:06 EST
---------------------------------------
NOTE: This is the LAST 5.17.y kernel release. This kernel branch is now
end-of-life. Please move to 5.18.y at this point in time, no more new
updates will happen on this kernel branch at all.
---------------------------------------
The change logs,

https://cdn.kernel.org/pub/linux/ker...angeLog-5.18.4

https://cdn.kernel.org/pub/linux/ker...ngeLog-5.17.15

https://cdn.kernel.org/pub/linux/ker...ngeLog-5.15.47

https://cdn.kernel.org/pub/linux/ker...geLog-5.10.122

https://cdn.kernel.org/pub/linux/ker...ngeLog-5.4.198

Last edited by cwizardone; 06-14-2022 at 12:28 PM.
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux.conf.au: Latest Linux kernel release due early March DragonSlayer48DX Linux - News 0 01-18-2010 10:43 PM
No video on latest kernel release Tralce Linux - Kernel 3 11-30-2006 07:48 AM
What is the latest Redhat release TILEMANN Linux - Software 5 11-20-2006 10:48 PM
LXer: News: OpenVZ To Release Support, Patches for Latest Kernel LXer Syndicated Linux News 0 11-01-2006 10:54 PM
latest debian release? doralsoral Linux - Software 5 12-25-2004 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration