LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-05-2022, 06:54 AM   #1
Lenard Spencer
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, Linux from Scratch
Posts: 329

Rep: Reputation: 199Reputation: 199
Building 5.19-rc kernel, kernel-modules blew up


I'm building the 5.19-rc kernel, and one glaring problem is that the kernel-modules package has blown up from about 300M in 5.18.x to over 4.5G in 5.19-rc. Is it just me or is everybody else having this problem? Is there a parameter that needs to be added to stop this explosion? Thanks.
 
Old 07-05-2022, 07:24 AM   #2
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Please have a look at https://www.linuxquestions.org/quest....php?p=6360302
 
1 members found this post helpful.
Old 07-05-2022, 10:18 AM   #3
Lenard Spencer
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, Linux from Scratch
Posts: 329

Original Poster
Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by ctrlaltca View Post
Thanks very much! Dropped it from 4.6G to about 300M. I hope the kernel devs are looking at this.
 
Old 07-05-2022, 10:29 AM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by Lenard Spencer View Post
Thanks very much! Dropped it from 4.6G to about 300M. I hope the kernel devs are looking at this.
It's not their fault.

In fact, our BDFL decided to build the kernel with debug info enabled, then to strip this debug data. So, grabbing the generic .config from -current to reuse in your custom kernels will end with over 16GB of compiling files and, as you seen, with over 4.5 GB of modules with debug info.

Do not ask me why he decided to build with this debug info enabled. I guess, to help the kernel programmers to build debug kernels under Slackware.

However, I for one, I doubt that there are kernel programmers who does not know how to build debug kernels and also I strongly doubt that any of them uses Slackware.

So, this "feature" seems basically a way to torment the unsuspecting Slackers who reuse his configs...

Specially when the Gurus continue to recommend a root partition of 25GB, building a custom kernel became a way to broke your system, by filling your root partition with useless crap.

Last edited by LuckyCyborg; 07-05-2022 at 10:33 AM.
 
2 members found this post helpful.
Old 07-05-2022, 10:44 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
Specially when the Gurus continue to recommend a root partition of 25GB, building a custom kernel became a way to broke your system, by filling your root partition with useless crap.
A full Slackware64-15.0 plus about 600 packages weighs 12G in a single btrfs volume with zstd compression. Honest: this do not leave room for snapshots and I recommend rather a size of 50G, also considering that you better do not fill a btrfs volume at more than 80% so it can breath normally. This is also the recommendation from OpenSUSE if you want to store snapshots in the same volume.
 
3 members found this post helpful.
Old 07-05-2022, 03:40 PM   #6
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
I prefer the correct way

why build debug , making machine a more large builds and resources consumition if we have a config kernel for this ?

https://www.linuxquestions.org/quest...ml#post6361738

Thats all , enable this and all build as ever , no need time x2 , more memory , more space ...for later make a simple strip :=)

Quote:
CONFIG_DEBUG_INFO_NONE=y
 
2 members found this post helpful.
Old 07-06-2022, 06:29 AM   #7
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
It might be related to CONFIG_DEBUG_INFO_BTF, which is needed to run BPF CO-RE applications. We've been looking into that, but not fully decided what to do with it yet.

Last edited by ppr:kut; 07-06-2022 at 06:31 AM.
 
1 members found this post helpful.
Old 07-06-2022, 07:05 AM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by ppr:kut View Post
It might be related to CONFIG_DEBUG_INFO_BTF, which is needed to run BPF CO-RE applications. We've been looking into that, but not fully decided what to do with it yet.
With all respect, if those BPF CO-RE applications needs a debug enabled kernel and its modules with a whooping 4.5GB installed size, permit me to say that something is very very very wrong with them. And who needs that? For what they are good for? It's some academic experiment?

How about to focus your precious and limited time on updating Mesa? It's already long in teeth.

An updated Mesa will be thousands of thousands times more useful than those morbid overweight BPF CO-RE applications.

And in the end, what stops you to use separate debug configs, grabbed by the kernel SlackBuild when it's literally instructed to do this by the people who want this?

Last edited by LuckyCyborg; 07-06-2022 at 07:32 AM.
 
2 members found this post helpful.
Old 07-06-2022, 07:15 AM   #9
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by USUARIONUEVO View Post
I prefer the correct way

why build debug , making machine a more large builds and resources consumition if we have a config kernel for this ?

https://www.linuxquestions.org/quest...ml#post6361738

Thats all , enable this and all build as ever , no need time x2 , more memory , more space ...for later make a simple strip :=)
In fact, unless we do the config change you already said, we will end with 16x larger builds...

Last edited by LuckyCyborg; 07-06-2022 at 07:28 AM.
 
1 members found this post helpful.
Old 07-07-2022, 07:03 PM   #10
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Finally , from todays changelog

Quote:
k/kernel-source-5.18.10-noarch-1.txz: Upgraded.
-DEBUG_INFO y
-DEBUG_INFO_BTF n
-DEBUG_INFO_COMPRESSED n
-DEBUG_INFO_REDUCED n
-DEBUG_INFO_SPLIT n
-GDB_SCRIPTS n
-PAHOLE_HAS_SPLIT_BTF y
DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT y -> n
DEBUG_INFO_NONE n -> y
 
5 members found this post helpful.
Old 07-08-2022, 08:45 AM   #11
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by USUARIONUEVO View Post
Finally , from todays changelog
I'm very glad that the common sense finally won!

Last edited by LuckyCyborg; 07-08-2022 at 12:05 PM.
 
1 members found this post helpful.
Old 07-08-2022, 06:04 PM   #12
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 Didier Spaier View Post
A full Slackware64-15.0 plus about 600 packages weighs 12G in a single btrfs volume with zstd compression. Honest: this do not leave room for snapshots and I recommend rather a size of 50G, also considering that you better do not fill a btrfs volume at more than 80% so it can breath normally. This is also the recommendation from OpenSUSE if you want to store snapshots in the same volume.
This ^
Just don't compile kernel if sooo difficult and all will work.
Quote:
Originally Posted by LuckyCyborg View Post
I'm very glad that the common sense finally won!
I would say, pity
 
Old 07-08-2022, 06:40 PM   #13
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by Aeterna View Post
Just don't compile kernel if sooo difficult and all will work.
Well, if something worked well in Slackware since last 20 years, was the users reusing of stock configs to build their own kernels. We had been proud that's so simple to build kernels in Slackware compared with Ubuntu or Fedora.

Unfortunately, at least temporary some geniuses found a way to transform even this in Rocket Sciences.

Quote:
Originally Posted by Aeterna View Post
I would say, pity
Pity? So, you are the one behind this <beep> idea to ship those debug kernel packages disguised as stock ones?

Pity is that someone had been brought up this idea of CO-RE applications over the default kernel transforming it in a debug kernel...

Pity is that seems that there was people who was locked out of their systems after a tentative of reusing the stock config from Slackware.

Pity is that you people dared to complicate even the unique feature which worked well in Slackware in the last 20 years: reusing the stock kernel configs.

Do not understand me wrong, I have nothing against debug packages. I will not complain even Slackware will ship the whole 4.5GB crap compressed in a 2GB package of kernel modules. For CO-RE love. It's OK, as I know well how to blacklist packages which I do not need.

Anyway, I seen nothing else but a silentio stampa in this forum regarding those CO-RE applications. Nobody bothered to tell to the people here for what they, those CO-RE applications are good. Or bad.

You even wondered if those CO-RE applications are acceptable from people's philosophical, political, religious and whatever else POV?

In fact, where was discussed about and presented the usefulness of those CO-RE applications? Directly on IRC with The Boss?

What's next? To casually update the -current, then to find out that we run systemd as init system? No explanation given thought, because it was decided on IRC?

Last edited by LuckyCyborg; 07-08-2022 at 07:15 PM.
 
3 members found this post helpful.
Old 07-08-2022, 11:20 PM   #14
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
@Aeterna

You are wong , if loose some time to investigate , you probably understand better the real question here.

The change on config , affect time and size , but after all , the slackbuild make a nasty "strip" for modules ...

Then the question is

Why?

Why loose time building and resources for make a strip later ?

If a simply change on config can make things simply as ever...

You have percentage of "DEBUG" users ? ...probably 1% ?¿ I miss something ??

Make force build of debug for general usage is NEVER a good idea.

For debug (developers) , can simply change the config to enable , and investigate with debug , but regular users no need this bloat.

And YES I know the package provided is not size changed, but again the question is

Why loose time and resources to build a BIG DEBUG KERNEL ...to strip later , when can build stripped directly and save space , time , memory ..etc etc ?¿?¿

why , lover why ... =)

Last edited by USUARIONUEVO; 07-08-2022 at 11:26 PM.
 
3 members found this post helpful.
Old 07-09-2022, 09:05 PM   #15
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
I still think that this is funny.
I doubt that I am the only one who did not have this kind of problems when compiling custom kernel.
I consider wasted time, only if I would be building exactly the same kernel as the same kernel as default. Yes, this is real waste of time. In such case just stay with the default. Otherwise customize and no problems should arise.
If you do compile kernel routinely, this change would never be a problem just run diff on configs. No time wasted.
If someone is to build the kernel for the first time, then obviously should learn how to.

@LuckyCyborg - of course the defender of poor and oppressed.. but only if you are affected,n'est-ce pas? otherwise you always have snide remarks for anyone looking for help.

I don't know what caused this change in the config but I think that the outcome is hilarious.
 
1 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
I blew up my BBQ with WD-40 today! orange400 General 68 05-29-2005 06:08 AM
make cloneconfig - blew up my path...and mouse? shock_ez Linux - Newbie 0 05-29-2003 11:07 AM
Samba blew my passwd? oneiltj Linux - Software 2 01-18-2003 12:47 PM
I blew it trying to be more secure Greenhorn Linux - Newbie 4 10-15-2002 11:24 AM
The Mod blew up his machine. finegan Linux - Hardware 11 06-23-2002 09:00 AM

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

All times are GMT -5. The time now is 01:18 PM.

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