LinuxQuestions.org
Help answer threads with 0 replies.
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


View Poll Results: What kernel(s) do you use on your systems? Select all that apply!
generic 60 57.14%
huge 32 30.48%
custom build 32 30.48%
other 3 2.86%
Multiple Choice Poll. Voters: 105. You may not vote on this poll

Reply
  Search this Thread
Old 06-28-2017, 05:21 PM   #31
lazardo
Member
 
Registered: Feb 2010
Location: SD Bay Area
Posts: 270

Rep: Reputation: Disabled

Quote:
Originally Posted by GazL View Post
I feel more comfortable running with all the latest fixes applied, so I follow the latest stable branch: currently 4.11. I use a custom kernel config file but that's purely to reduce the time needed to compile my kernel updates rather than for any run-time effect.
I track incremental longterm patches, usually -2 from mainline, eg, 4.9, unless there are new hardware/features requiring a stable.

* Its relatively easy to automate sanity checking with 'patch --dry-run'.
* The naming scheme is modified from traditional to better support a incremental patch stream, eg, '/usr/src/linux -> linux-4.9' rather than '/usr/src/linux -> linux-4.9.34', and patches are saved in case they need to be reversed.

No initrd, all unused industrial subtrees are pruned.

Cheers,

Last edited by lazardo; 06-28-2017 at 05:26 PM.
 
Old 06-28-2017, 06:14 PM   #32
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
In general I use generic. In fact huge is permanently blacklisted in my blacklist file. Actually kernel-... is always blacklisted unless I want to install a new kernel which I use slackpkg to download it and install it manually. I always have two kernels installed the latest and the previous (as a fail safe working kernel).

Why do I use generic? No particular reason other than it's recommend. From CHANGES_AND_HINTS.TXT "Use one of the provided generic kernels for daily use." I create a mkinitrd.conf for each machine to simplify running mkinitrd.

I haven't had my second cup of coffee yet and noticed after voting that it was multiple choice.

I use huge in my virtual machines as these are normally for test or compile purposes and are frequently redone. Plus I be lazy and see no point in going through the extra steps to use generic in this case. I cannot remember the last time I compiled a kernel. I typically only compile a kernel on a as needed basis.
 
Old 06-28-2017, 06:24 PM   #33
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I'm wondering what the 2 people who voted 'other' are running.. HURD?
 
Old 06-28-2017, 06:29 PM   #34
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by lazardo View Post
I track incremental longterm patches, usually -2 from mainline, eg, 4.9, unless there are new hardware/features requiring a stable.
I used to follow the longterm branches, but I came to the conclusion that in practice they're no more stable than the current stable branch, so now I'll only consider a longterm branch if I run into an issue and need to take a fallback position in order to avoid it.

I use git to keep uptodate rather than use the patch files.
 
Old 06-28-2017, 07:22 PM   #35
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I only use zipslack so I voted for other.
 
Old 06-28-2017, 07:38 PM   #36
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 GazL View Post
I feel more comfortable running with all the latest fixes applied, so I follow the latest stable branch: currently 4.11. I use a custom kernel config file but that's purely to reduce the time needed to compile my kernel updates rather than for any run-time effect.
^This. Also, I do have some patches applied to the kernel source for no other reason than that I can. Whether there's any real run-time benefit is purely subjective, but I feel better for knowing that the patches are working their intended function. Also, I have a custom lsmod.txt file to run with 'make localmodconfig', so that only the modules I actually use are compiled; I (or rather, my processor) doesn't have to spend time compiling modules it will never use.
 
Old 06-28-2017, 08:12 PM   #37
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
I use the real-time kernel patch and the Slackware generic config file.
 
Old 06-28-2017, 09:08 PM   #38
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Rep: Reputation: 45
I use a slightly modified generic kernel. No initrd.
 
Old 06-28-2017, 09:26 PM   #39
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by D1ver View Post
I'm wondering what the 2 people who voted 'other' are running.. HURD?
One example might be FreeSlack, which provides the Linux-libre kernel.
 
Old 06-28-2017, 10:02 PM   #40
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Huge. It works.
 
Old 06-28-2017, 11:26 PM   #41
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
HUGE

though in old days used to download kernels weekly or daily and build them. kernel tools havent gotten better.
tried building kernel lately got all sorts of errors.
 
Old 06-29-2017, 01:39 AM   #42
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038

Original Poster
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by D1ver View Post
I'm wondering what the 2 people who voted 'other' are running.. HURD?
I threw it in the option in case there was another source of precompiled kernels out there, an alternative-standard. People who used them wouldn't be building their own custom kernels, but neither would they be "generic" or "huge".
 
Old 06-29-2017, 01:54 AM   #43
twy
Member
 
Registered: Jun 2004
Distribution: Slackware64
Posts: 99

Rep: Reputation: Disabled
Post custom kernel, based on generic kernel config

I compile a custom kernel of the same version (from kernel.org) as the slackware release kernel (or the lastest patch version) on slackware64 14.2. I use a .config that is based on the generic kernel's config (using make oldconfig). But, I disable almost all device drivers for hardware that I do not have and for other features that I do not plan to use. By custom compiling the kernel, I can choose to build into the kernel the modules for important boot-time hardware such as hard disk and network interface controllers, and drivers for mdraid/luks/lvm. I can choose to compile as modules the drivers for certain other hardwares that are not required for booting and which seem to work better as modules, such as ALSA sound modules and modules for hardware sensors. I also use an initrd because I use an lvm/luks/mdraid6 root disk, which has been working for many years without any problems, and now using the default /init script that is included by mkinitrd. Kernel compile time is less when most of the drivers for other hardware are disabled in config.

Maybe many users do not use a custom kernel, because maybe it seems like a complicated process to compile and install/upgrade a custom kernel. But, the process is something like this:

*) download new kernel source from kernel.org
*) cd /usr/src; tar xvf linux-xxxx.tgz
*) chown -R root:root linux-xxxx
*) cd /usr/src/linux-xxxx;
*) cp -a ../linux-yyyy/.config #(copy old config in)
*) make oldconfig; make -j8 bzImage; make -j8 modules
*) cp -a arch/x86/boot/bzImage /boot/vmlinuz-xxxx
*) cp -a System.map /boot/System.map-xxxx
*) make modules_install
*) cd /lib/modules; rm -r yyyy #(rm old modules of kernels you don't use)
*) cd /boot; rm System.map; ln -s System.map-xxxx System.map
*) rm System.map-yyyy #(rm any old System.map files you don't use)
*) rm vmlinuz-yyyy #(rm any old kernel images you don't use)
*) mkinitrd -F -c -k xxxx -s /boot/initrd-tree-xxxx -o /boot/initrd.gz-xxxx
*) rm -r initrd-tree-yyyy; rm initrd.gz-yyyy #(rm old initrds you won't use)
*) cd /etc; vi lilo.conf #(edit to boot the kernels/initrds you will use)
(always keep a boot entry for the old/previous kernel that you know works)
(don't rm your previous working boot kernel files, but maybe older ones)
*) lilo #(run lilo to write the boot sector)

I use the nvidia driver from NVIDIA.com. I disable in the kernel nearly all modules related to video devices and boot into a plain text console. Before rebooting onto the newly-installed kernel vmlinuz-xxxx, I run the nvidia installer with option --uninstall to uninstall it. I reboot like this

*) sync #(just to be really sure everything is written to disks)
*) reboot

Then, after rebooting onto the new kernel, I re-run the nvidia installer. The files /usr/lib{64}/libEGL.la have to be restored (cp -a) after installing the nvidia driver because, for some reason, it removes them to a backup location.

My root disk configuration is a complicated lvm/luks/mdraid6 disk, but it is a supported root disk configuration in slackware, and upgrading the custom kernel goes smoothly since it does not involve any special settings (per upgrade) about the disk configuration. The /init inside of the initrd, included by mkinitrd, is able to load the supported root disk configuration as / (root) just fine "out of the box" for me. For mkinitrd to work smoothly, you should first have the correctly configured files /etc/mdadm.conf and /etc/mkinitrd.conf so that mkinitrd understands your root disk configuration, to be able to mount it as / and then init the Slackware Linux system on it.

Overall, it is not really that difficult to use a custom-compiled kernel, but it could seem complicated or scary to try at first.
 
2 members found this post helpful.
Old 06-29-2017, 06:34 AM   #44
bsdunixdb
Member
 
Registered: Jun 2009
Location: London, United Kingdom
Distribution: Slackware x86_64 Stable
Posts: 69

Rep: Reputation: 33
Generic - It's what I'm used to.
 
Old 06-29-2017, 10:09 AM   #45
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 mrapathy View Post
HUGE

though in old days used to download kernels weekly or daily and build them. kernel tools havent gotten better.
tried building kernel lately got all sorts of errors.
I just got through building 4.11.8, encountered no errors. What are you encountering, that you say 'kernel tools haven't gotten better?'. Please elucidate. As far as I know, the only 'kernel tool' you need is GCC, and that works just fine here. Thanks!
 
  


Reply

Tags
generic, huge, kernel



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
Which Desktop Operating Systems Do You Currently Run? jeremy Linux - General 355 09-30-2016 06:33 PM
[SOLVED] Run a script on multiple systems shivaa Linux - Newbie 1 10-18-2012 12:17 AM
Is there a way to run 3 operating systems? gatewaysolo9100 Linux - Laptop and Netbook 8 04-17-2007 01:39 AM
how to run linux on obsolete or other type of systems maddog12345 Programming 3 01-11-2006 01:18 AM
A GNOME Aplication can run in others systems?? Claus Linux - Software 1 09-13-2003 04:17 PM

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

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