LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Thread Tools
Old 10-04-2009, 09:14 AM   #1
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,444
Thanked: 18
Slack-13 - should I build a custom kernel or not?


[Log in to get rid of this advertisement]
Hi gang,

Long standing faithful Slackware user here. Been running Slackware since v7.0 .

I've just upgraded to Slackware 13 (from 12.0), and am finding it to be great so far - KDE4 included.

Quick question though: Will a custom kernel significantly improve performance? I mean, this is pretty slick. Has kernel performance improved so much that it doesn't really matter any more? I used to be able to tell if I was running a custom kernel or not, but this is performing at least as well as my custom 12.0 setup. So I'm wondering if it's worth the effort?

Is anyone not running a stock kernel? Did you notice a significant improvement in performance?
linux rkelsen is offline     Reply With Quote
Old 10-04-2009, 09:16 AM   #2
~sHyLoCk~
Member
 
Registered: Jul 2008
Location: /dev/null
Distribution: Arch64 / openSUSE
Posts: 476
Blog Entries: 4
Thanked: 46
I didn't notice much improvement with 2.6.31 to be honest. Stock kernel performed well for me as well.
linuxarch ~sHyLoCk~ is offline     Reply With Quote
Old 10-04-2009, 09:21 AM   #3
lopid
LQ Newbie
 
Registered: Jun 2008
Posts: 16
Thanked: 0
I vote no difference.
linux lopid is offline     Reply With Quote
Old 10-04-2009, 09:51 AM   #4
kukibl
Member
 
Registered: Jun 2008
Distribution: Slackware64 13.0
Posts: 62
Thanked: 9
I'm running custom compiled kernel. Always preferred custom kernel (I like to tweak and customize stuff), but this time I was forced to compile custom one because of bad graphics performance and some additional modifications. Personally, I highly doubt there will be any significant performance improvement, except maybe if you configure your new kernel with some desktop specific optimizations, then maybe some performance improvement would be noticeable in multimedia apps and actions.

If -generic works fine for you and you are happy with current performance, there so need to change it. It is up to you.

Edit:

Btw, if for some reason you decide to compile custom kernel, you should check this out http://www.zen-sources.org/. It seems very interesting. Haven't tried it yet since I'm quite busy these days, but I will definitely .

Last edited by kukibl; 10-04-2009 at 09:55 AM..
linux kukibl is offline     Reply With Quote
Old 10-04-2009, 10:21 AM   #5
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 457
Thanked: 4
I got mine to boot in half the time it tacks for a stock kernel and got better multimedia performance
and cut the kernel size by half even with all the drivers built in to the kernel
the newer kernels have a make option that matches the kernel to the hardware it's running on
" i386_defconfig 32bit system or x86_64_defconfig 64bit system " you will still need to run menuconfig
to move things to modules ,add support for usb devices,setup file systems and other non hardware things
slack has gotten alot better but it still isn't at the point where it will not benefit from a custom kernel
linux rob.rice is offline     Reply With Quote
Old 10-04-2009, 12:42 PM   #6
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 210
Thanked: 15
After some time mine now have video, sound and wireless. If you know what you want, and have some spare time, go for it. It's working ok for you? Keep in pair with Slackware and you will be very good.

Hardware necessity? Be prepared to spend some days/weeks on readings, buildings and reboots. When the user start the system and the hardware is not recognized, even when the module is built but not loaded, they blame the system.

You can read the trouble spreading when amd's fglrx userbase was forced to change their kernel to build the 'driver'... Thanks to all those who keep tuning the kernel, It lasted only a few ours to me.
linux BrZ is offline     Reply With Quote
Old 10-04-2009, 01:02 PM   #7
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Slackware64
Posts: 361
Blog Entries: 19
Thanked: 24
It's really all a matter of what you plan to do with your system. If you want, for example, record a midi device in as close to real time as possible or use the JACK audio system, you will need to tweak the kernel for tickless and high resolution timer support. There are also some other things you can do to improve interaction response time at the cost of slowing down background processes.

I personally never upgrade my kernel any more UNLESS the maintainers see fit to up grade. If I need a module for support of something then I compile it separately. But upgrading and tweaking are two different things. Just be sure to add a "Local Version" in the General Setup so that you don't overwrite the files installed with your system. Additionally, it's nice to compile your file system and hard drive modules into the kernel so you don't need the initrd.
linuxslackware lumak is offline     Reply With Quote
Old 10-04-2009, 11:39 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,444
Thanked: 18

Original Poster
Quote:
Originally Posted by rob.rice View Post
the newer kernels have a make option that matches the kernel to the hardware it's running on
" i386_defconfig 32bit system or x86_64_defconfig 64bit system "
Nice! I didn't know about that.
linux rkelsen is offline     Reply With Quote
Old 10-05-2009, 03:19 AM   #9
pokipoki08
Member
 
Registered: Mar 2009
Posts: 42
Thanked: 1
I recompile the kernel to remove the generic ata drivers, they are replaced by specific ones which I can identify on my hardware. In the past, copying large files will slow down everything (cpu, mouse cursor etc), now it doesn't.
linux pokipoki08 is offline     Reply With Quote
Old 10-05-2009, 06:29 AM   #10
Josh000
Member
 
Registered: Aug 2009
Posts: 138
Thanked: 4
Yeah

I recompiled my kernel, without modules, as they are simply unneccessary for me.

The benefits I get from my custom kernel compared to stock, are:

Almost instant boot time, at least far far faster than stock
Native resolution for console using radeonfb driver.
Custom patches for missing functionality
No unneeded drivers, better memory usage and performance
Custom options can be set, finetuned to my specific hardware configuration
Probably many more

Plus , it is always a good learning experience.
linuxdebian Josh000 is offline     Reply With Quote
Old 10-05-2009, 08:37 AM   #11
slackd
Member
 
Registered: Sep 2009
Location: Kolkata, India
Distribution: Slackware 13 x64-Current (2.6.32-rc7) MLiB, Windows 7 x64
Posts: 185
Blog Entries: 1
Thanked: 38
I compiled my kernel, my friend taught me how to a year back. After a few unsuccessful tries and panics i finally managed to compile successfully. then i learn't how to optimize it for performance and size. Not to mention its a gr8 learning experience.

the potential benefits that i get:

Faster bootups
better performance with specific cpu support
efficient memory usage
support for specific hardware
etc..

Last edited by slackd; 10-05-2009 at 08:38 AM.. Reason: typo
linuxslackware slackd is offline     Reply With Quote
Old 10-05-2009, 09:23 AM   #12
TwinReverb
Member
 
Registered: Sep 2008
Location: Kunsan Air Base, South Korea
Distribution: Slackware
Posts: 126
Thanked: 3
Quote:
Originally Posted by rkelsen View Post
Hi gang,

Long standing faithful Slackware user here. Been running Slackware since v7.0 .

I've just upgraded to Slackware 13 (from 12.0), and am finding it to be great so far - KDE4 included.

Quick question though: Will a custom kernel significantly improve performance? I mean, this is pretty slick. Has kernel performance improved so much that it doesn't really matter any more? I used to be able to tell if I was running a custom kernel or not, but this is performing at least as well as my custom 12.0 setup. So I'm wondering if it's worth the effort?

Is anyone not running a stock kernel? Did you notice a significant improvement in performance?
My opinion (and it's only an opinion): yes, a custom kernel will show a significant improvement (but not something to write home to mom about). I would estimate a minimum of 3% improvement, maximum of 10%.

I would start with generic-smp config, make all your filesystems <*> (unless you need them <M> for LVM2/LUKS), then go and remove anything you don't have and cannot ever install (one main example: if you're on a laptop, make sure your PATA and/or SATA controllers are <*>, and then make all others <M> or disable them: this shaves a lot of space).

Then specify your specific CPU (if it is listed) and disable Generic X86 Extensions. In my opinion, this is the main modification that shows results in terms of response. You can also change Preempt to Voluntary if you're using a desktop or laptop.

Last, if you want, add support for everything you actually have on the machine as <*> (unless you're sure you need it as a module).

I noticed power savings on my slap and slap64 kernel configs, for example, because I tailored everything I could to power savings and laptop type use, as well as to add Timer and I/O Statistics for powertop and iotop. You can look at my slap/slap64 threads on this forum: I listed everything I changed and my reason.
linux TwinReverb is offline     Reply With Quote
Old 10-05-2009, 10:19 AM   #13
adamk75
Member
 
Registered: May 2006
Posts: 347
Thanked: 44
I built a custom kernel, but only so I could upgrade to 2.6.31 and use KMS on my radeon GPUs.

Adam
unknown adamk75 is offline     Reply With Quote
Old 10-05-2009, 11:57 AM   #14
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 6,744
Blog Entries: 2
Thanked: 216
It really depends on how "custom" you want it. I mean you could in theory customize it to only include exactly the drivers that your box needs, but that would take very long.

I can pretty much guarantee that if you recompile the generic kernel or even just add an initrd and leave it as is, it will be faster than the default huge kernel. And if you choose to compile it for your processor and change a few more options you can easily squeeze out a bit more performance at low time cost.

Of course, I'm sure Gentoo geeks will tell you how much faster an uber-customized kernel is (several nanoseconds or so) ... but in general it is a waste of time to attempt such a thing.
linuxslackware H_TeXMeX_H is offline     Reply With Quote
Old 10-05-2009, 01:44 PM   #15
mudangel
Member
 
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 123
Thanked: 8
Yes.

Last edited by mudangel; 10-11-2009 at 11:09 AM.. Reason: edited for succinctness
linuxslackware mudangel is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Can't build any modules for custom kernel jittys Linux - General 1 02-16-2007 02:53 PM
Fresh Slack 11 install + 2.6 custom build bgeddy Slackware 6 10-20-2006 08:38 AM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 04:05 AM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-11-2004 12:15 AM
What do i need to build custom kernel!! no noob_slacker Slackware 20 11-20-2003 08:57 PM


All times are GMT -5. The time now is 10:37 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration