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 12-17-2018, 09:40 AM   #121
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746

Quote:
Originally Posted by ttk View Post
On the other hand, there's nothing wrong with using a huge kernel with no initrd. I've been using mostly huge kernel since the huge/generic split happened (2006?), and it's never been a source of problems.
Same.
 
1 members found this post helpful.
Old 12-17-2018, 02:44 PM   #122
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Mentioning sir William Shakespeare we have entered on ground of literature. Following this path I would say this thread just turned into @hazel's Slackwake.
 
Old 12-17-2018, 04:36 PM   #123
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by ttk View Post
There's nothing wrong with using an initrd, and some use-cases require one.

On the other hand, there's nothing wrong with using a huge kernel with no initrd. I've been using mostly huge kernel since the huge/generic split happened (2006?), and it's never been a source of problems.

(At least not for me .. I vaguely remember someone else hitting a snag 2008'ish, but it was easily fixed.)
Some video drivers like i915 or radeon work in KMS (Kernel Mode Setting), which requires the generic+initrd configuration in Slackware, and they have to be loaded explicitly very early in the boot process. You'll be able to use them with the huge kernel, but performance will be poor.

Cheers,

Niki
 
3 members found this post helpful.
Old 12-17-2018, 05:26 PM   #124
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,180

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by enorbet View Post
OTI wonder will there ever be another writer truly of William's caliber
Not a chance. Some of my happiest memories are teaching undergrad Shakespeare (I ended up learning the most, of course); wandering around Stratford-upon-Avon; and watching the RSC put on Twelfth Night in Galway some time in the 90s, possibly the funniest spectacle I've ever had the pleasure to watch.
 
1 members found this post helpful.
Old 12-17-2018, 05:57 PM   #125
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by 1337_powerslacker View Post
I still build a custom kernel with out-of-tree patches to enhance performance; in particular, it decreases the load on the CPU when I do kernel compilations and run games like DOOM.
What patches do you use? There was a time when I'd have to patch the kernel to make my wifi card work.
Quote:
Originally Posted by 1337_powerslacker View Post
Pat doesn't provide a kernel-source.SlackBuild
True, but he gives you the config files for the kernels he builds. That's all you need really.
Quote:
Originally Posted by 1337_powerslacker View Post
I use a for loop to apply patches from my patches/ subdirectory.
Wow. How many patches do you apply? Is it still Linux when you're done?
Quote:
Originally Posted by 1337_powerslacker View Post
As I understand it, that's the only real difference between the -huge and -generic kernels; the number of modules compiled.
This is not 100% correct. The huge kernel leans more towards the conservative side of performance. It makes an excellent "emergency" kernel.
 
Old 12-17-2018, 09:04 PM   #126
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,022

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Anyways, the initrd usage is a must if your root filesystem is encrypted, or it is hosted in a LVM or RAID device.

Last edited by ZhaoLin1457; 12-17-2018 at 09:14 PM.
 
Old 12-18-2018, 04:07 AM   #127
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by kikinovak View Post
Some video drivers like i915 or radeon work in KMS (Kernel Mode Setting), which requires the generic+initrd configuration in Slackware, and they have to be loaded explicitly very early in the boot process. You'll be able to use them with the huge kernel, but performance will be poor.
First I've heard of this. As far as I know, loading the kms driver early is just a cosmetic thing, to get a native resolution console earlier in the boot process?

When I still used Slackware, I always periodically built my own kernels based on the generic kernel, but with ext4 built in. That worked fine and dispensed with the need for an initrd. Of course things may have changed a lot since then.
 
1 members found this post helpful.
Old 12-18-2018, 06:18 AM   #128
birdboy
Member
 
Registered: Aug 2018
Distribution: CRUX
Posts: 46

Rep: Reputation: 67
Quote:
Originally Posted by cynwulf View Post
First I've heard of this. As far as I know, loading the kms driver early is just a cosmetic thing, to get a native resolution console earlier in the boot process?
This should be correct, yes. I only use the file system module in initrd, and KMS initializes as per normal, after the initrd is finished.

I tried putting it in initrd, but apart for the *hugely* bloated initrd image, the difference is minuscule, i.e. the console is switched to KMS just a tad quicker and you get to see a few more earlier lines printer on the console. For me, there is simply no use and I much prefer to have lean initrd image.
 
1 members found this post helpful.
Old 12-18-2018, 08:26 AM   #129
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by rkelsen View Post
What patches do you use? There was a time when I'd have to patch the kernel to make my wifi card work.

True, but he gives you the config files for the kernels he builds. That's all you need really.

Wow. How many patches do you apply? Is it still Linux when you're done?
Yes. The patches I apply are not like Ubuntu's patches or similar; they just enhance system performance, like load times for programs and CPU load.

BFQ I/O scheduler - Decreases load time from disk. This is especially noticeable for programs like DOOM.

CPU Optimizations - Compiles kernel for CPUs like the one I have - FX-8370 (Piledriver). Don't know if it specifically increases performance, but I just like having it.

PDS CPU scheduler - Decreases load on CPU - Before, DOOM would load down the CPU to ~114 degrees F. Now, it's about 108. A marked difference.

Kernel deduplication (same page merge) - Decreases total system memory usage.

EDIT: The Linux pf- kernel fork is basically what I'm applying.

Last edited by 1337_powerslacker; 12-18-2018 at 09:00 AM. Reason: Clarification of kernel patches
 
Old 12-18-2018, 11:52 AM   #130
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574

Original Poster
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
So: it boots and the network now comes up by itself. I've got both links and slackpkg to work, so in principle I can now go a lot faster, using links to go through the software lists and slackpkg to fetch and install what I have decided I want.

I couldn't get the slackpkg update to go through because my adsl router kept slowing down and stopping. It does that sometimes when it's been on a long time (another piece of old hardware); sometimes a power cycle cures it but not always. So I'll try again tomorrow. That will be the first day of my new contract period, so I'll have a full 3 GB of downloads prepaid. That should be enough to install everything else that I need.
 
4 members found this post helpful.
Old 12-18-2018, 11:59 AM   #131
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by hazel View Post
So: it boots and the network now comes up by itself. I've got both links and slackpkg to work, so in principle I can now go a lot faster, using links to go through the software lists and slackpkg to fetch and install what I have decided I want.

I couldn't get the slackpkg update to go through because my adsl router kept slowing down and stopping. It does that sometimes when it's been on a long time (another piece of old hardware); sometimes a power cycle cures it but not always. So I'll try again tomorrow. That will be the first day of my new contract period, so I'll have a full 3 GB of downloads prepaid. That should be enough to install everything else that I need.
I was wondering how things are going for you. Thanks for the update.

MERRY CHRISTMAS
 
1 members found this post helpful.
Old 12-18-2018, 03:53 PM   #132
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by cynwulf View Post
First I've heard of this. As far as I know, loading the kms driver early is just a cosmetic thing, to get a native resolution console earlier in the boot process?

When I still used Slackware, I always periodically built my own kernels based on the generic kernel, but with ext4 built in. That worked fine and dispensed with the need for an initrd. Of course things may have changed a lot since then.
https://wiki.archlinux.org/index.php...arly_KMS_start
 
Old 12-18-2018, 05:54 PM   #133
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Your not simple enough to use it
Open an editor and configure your system.
KISS
 
Old 12-19-2018, 03:24 AM   #134
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by kikinovak View Post
I can't find the bit where it states that not using an initrd results in poor performance from Linux kms/drm drivers?

As far as I know the early start thing is to facilitate boot splash stuff like plymouth - i.e. it's a cosmetic thing.
 
1 members found this post helpful.
Old 12-19-2018, 08:28 AM   #135
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by cynwulf View Post
I can't find the bit where it states that not using an initrd results in poor performance from Linux kms/drm drivers?

As far as I know the early start thing is to facilitate boot splash stuff like plymouth - i.e. it's a cosmetic thing.
Slackware 14.2 running on Dell Optiplex 330 with an onboard Intel video card.

Huge kernel : KDE desktop effects don't work.

Generic kernel + i915 explicitly loaded on boot time : KDE desktop effects work.

You can make a similar experience with old ATi cards and the radeon driver with{out} KMS.

If I remember correctly, Patrick once stated (long time ago) that huge.s was meant for installation purposes only, and that users are supposed to switch to generic+initrd post-install.

Cheers,

Niki
 
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
any advice on how to persuade my school against Linux-proof browsers? newbiesforever Linux - General 27 02-23-2018 08:20 PM
LXer: DevOps: How to Persuade Your Boss to Buy In LXer Syndicated Linux News 0 09-19-2016 03:58 PM
[SOLVED] I can't persuade LinuxMint Olivia/Cinammon to relate to Logitech webcam C270 mlplatt Linux - Newbie 10 11-12-2013 11:17 AM
Dedicated Slackware users persuade me Synesthesia Slackware 32 08-20-2008 07:39 AM
Kpilot doesn't sync to KDE addressbook? How to persuade it? furryspider Linux - Software 0 12-10-2005 03:33 PM

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

All times are GMT -5. The time now is 09:06 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