Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-21-2013, 10:54 AM
|
#1
|
LQ Newbie
Registered: Mar 2008
Posts: 12
Rep:
|
booting with initrd vs huge kernel
Are there any significant advantages from booting with an initrd versus just booting from a huge kernel configuration? I have always used the huge kernel and have not had any problems, but am wondering if it would be advantageous to use an initrd?
I am running 14.0 with a hugesmp kernel on a quad core i3 with 4GB of Ram. I just got the 14.1 dvd and wondered if during the upgrade it made any sense to change the way I boot?
Thanks
Robert
|
|
|
11-21-2013, 11:01 AM
|
#2
|
Senior Member
Registered: Dec 2008
Posts: 1,201
|
Quote:
Originally Posted by mariner53
...
I have always used the huge kernel and have not had any problems
...
|
If you had no problem then there is no advantage for a change. Fix it only when it's broken.
|
|
1 members found this post helpful.
|
11-21-2013, 01:05 PM
|
#3
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by mariner53
Are there any significant advantages from booting with an initrd versus just booting from a huge kernel configuration?
|
Advantages? Yes. Significant? Well, that is up to you. You will save a few KB, maybe MB, of RAM (not really significant on a system with 4GB of RAM) and will have slightly shorter boottime.
Not significant enough for me to think about using the generic kernel and use an initrd. This would be different of course if I would run my OS from a LVM, RAID or encrypted partition, in which case an initrd is mandatory.
|
|
1 members found this post helpful.
|
11-21-2013, 01:58 PM
|
#4
|
Member
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174
Rep: 
|
running my 14.1 (32bit) with 2gb ram with hughsmp here too.. all nice all fine. i dont see a reason to change it as long as it works.
|
|
|
11-21-2013, 06:44 PM
|
#5
|
LQ Newbie
Registered: Oct 2012
Posts: 20
Rep: 
|
Can't disagree with the above replies.
For me it's personal preference. First thing I do after a fresh install is build a custom kernel from the generic-config in /boot, that way I don't have to use a initrd. Follow Eric's kernel build and your set.
|
|
|
11-21-2013, 08:08 PM
|
#6
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
I've ran both. To me the Huge Kernel is just less to setup and worry about.
|
|
1 members found this post helpful.
|
11-23-2013, 10:21 AM
|
#7
|
Member
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380
Rep:
|
I use the huge kernel... easier to update and I haven't had any issues. I tried setting up the generic kernel and did see a faster boot time, but I also had issues getting my wireless card working so I switched back to the huge kernel. If it ain't broke don't try to fix it. :-)
|
|
1 members found this post helpful.
|
11-23-2013, 11:19 AM
|
#8
|
Member
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564
Rep: 
|
I started using Slackware by compiling my own kernel. I thought it worked better, & back in the day, maybe it did. Then I got to the point that I wanted to use "root=LABEL=foo" or "root=UUID=foo" while booting, instead of using a device name. Back then, this required editing the init file in an initrd, so I did that for a while, still compiling a kernel. When slackware went to the 2.6 series kernel & the generic & huge kernels, some maintainer modified the Slackware init file to allow using LABEL & UUID. I started using a generic kernel then & put my fs modules in the initrd. I'm still doing that & am quite happy.
Also note that Pat requires bugs to be reported only if using the generic kernel. See the first paragraph under "*** OTHER NOTABLE CHANGES AND HINTS ***" in CHANGES_AND_HINTS.txt.
Regards,
Bill
|
|
|
11-24-2013, 04:53 AM
|
#9
|
Member
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 524
|
If you've never had a problem, you've never had a problem; if it ain't broke, don't fix it.
Personally I have had problems, particularly on some of my older hardware where some device drivers have become buggy as the kernels get updated and regressions sneak in (I don't know why but I've had that happen a few times), so the ability to unload and reload kernel modules when the driver craps out is an attractive feature.
Other than for testing and getting something quickly up and running, I see no reason not to use a generic kernel with modules and an initrd. This isn't like the old days where we had to load modules manually... udev will detect hardware and load modules accordingly. Plus, the mkinitrd_command_generator.sh tool that comes with Slackware makes generating an initrd very simple.
|
|
1 members found this post helpful.
|
11-24-2013, 05:08 AM
|
#10
|
Senior Member
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: CRUX
Posts: 1,510
|
I use the generic kernel, but always keep an entry for the huge one in my lilo.conf, like this:
Quote:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-3.10.17
initrd = /boot/initrd.gz
root = /dev/sda2
label = generic-3.10.17
read-only
image = /boot/vmlinuz
root = /dev/sda2
label = huge-3.10.17
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
|
it uses the default vmlinuz link, just in case. I learned this the hard way...
|
|
|
11-24-2013, 05:45 AM
|
#11
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
I keep both but use the intrid.gz. I have found that for some hardware issues it made sense and it is is well documented by alien bob. we will see more hardware in the future needing an intrid.img. as the the hardware demands more set up in a working tree as the kernel is passed off to the system.
If it works for you that's all that matters.
|
|
|
All times are GMT -5. The time now is 09:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|