LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-28-2006, 09:41 AM   #1
TL_CLD
Member
 
Registered: Sep 2006
Posts: 366

Rep: Reputation: 45
Slackware 11 and shiny new dual core CPU's


I'm in the process of building a new server that'll be running Apache with some fairly heavy PHP stuff. This is not the first server I'm building using Slackware, but it is the first where I'm considering going for one of those fancy new dual core CPU thingies.

But what's that I hear? I need a "special" SMP enabled kernel?

I've never done anything remotely kernel related, as I've never really had the need. Before I started using Slackware (September 2006) kernel upgrading was done automatically by the patcher (swup in my case) if I opted for it. With Slackware I've just decided to run with whatever kernel Pat V. decided was best for Slackware to ship with.

This has done me good so far.

But what if I want to take advantage of this new dual core CPU? Will I need to do anything specific when installing, and if so, are there any pitfalls I should be aware of?

Perhaps someone could point me in the right direction, preferably to something really beginner-friendly, as messing with the kernel actually scares me a bit.

And finally will I even see any significant performance gains from SMP on a server running only Apache/PHP, because if it's a matter of a "measly" 10-15%, then I'd rather avoid the whole issue and just go with the fastest single core CPU I can find.. hehe

Sincerely,
Thomas
 
Old 12-28-2006, 11:48 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by TL_CLD
But what's that I hear? I need a "special" SMP enabled kernel?
Yes you would need "SMP-Aware" kernel to actually take advantage of both core. But using a non-smp kernel on a smp machine will not damage your machine in any way. It will just use one core.

You can get SMP support either by using Pat's precompiled kernel with SMP support or by compiling your own kernel. Look into /extra in the slackware repo for Pat's precompiled version. You can always take that kernel config file as your base and remove the modules/support for things you don't use/need.

Quote:
But what if I want to take advantage of this new dual core CPU? Will I need to do anything specific when installing, and if so, are there any pitfalls I should be aware of?
Pitfalls??? not that I can think of. I am running AMD dual-core myself but as a desktop. As far as I say, I haven't had a single problem.

Quote:
Perhaps someone could point me in the right direction, preferably to something really beginner-friendly, as messing with the kernel actually scares me a bit.
It is actually not that difficult. I was skeptical too when I first started with slackware but now I always compile my own kernels. I started out with the digital hermit howto and it worked out pretty well for me.

Quote:
And finally will I even see any significant performance gains from SMP on a server running only Apache/PHP, because if it's a matter of a "measly" 10-15%, then I'd rather avoid the whole issue and just go with the fastest single core CPU I can find.. hehe
Well, the performance gains heavily depend on the traffic. If your site would be a low traffic personal website, you can easily use a single-core with enough ram. I too run a personal website with low traffic (single core Intel 1.8 GHz, 768MB RAM). As far as I can say, I am only limited by my upstream connection (running from home DSL).

I guess more experienced LQers would throw some more light on this specific question.

Tux,

Last edited by tuxrules; 12-28-2006 at 11:51 AM.
 
Old 12-28-2006, 01:03 PM   #3
TL_CLD
Member
 
Registered: Sep 2006
Posts: 366

Original Poster
Rep: Reputation: 45
tuxrules: Yes indeed you do..

I've read the link you provided, and while I don't understand it all, I did walk away feeling fairly confident that this is something I can handle.

I've also found some other resources here and there, and from what I gather, I should be able to modify my existing config to include SMP support, and then just compile the kernel with that. Is that correct?

I'm running 2.4 (the stock kernel in Slackware 11). How does that kernel handle itself in a SMP enviroment?

Regards,
Thomas
 
Old 12-28-2006, 01:28 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by TL_CLD
I've also found some other resources here and there, and from what I gather, I should be able to modify my existing config to include SMP support, and then just compile the kernel with that. Is that correct?
Yes you can absolutely recompile a 2.4 series kernel to just include SMP support. I actually haven't compiled a 2.4 series kernel so I can't comment on the process/complexities but it includes few more steps as compared to a 2.6 series compile. BTW, I run 2.6 series even on the server.
Quote:
I'm running 2.4 (the stock kernel in Slackware 11). How does that kernel handle itself in a SMP enviroment?
Again, I have little idea since I have never used 2.4 in SMP environment. As I said, I use dual-core machine as a desktop so 2.6 series kernel makes more sense (at least to me) on a desktop.

Tux,
 
Old 12-29-2006, 02:06 AM   #5
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
2.4 SMP has rather crude locking and is much less efficient than the 2.6 SMP code.
I have a new dual core coming next week and will be installing 2.6 on it.
 
Old 12-29-2006, 02:45 AM   #6
TL_CLD
Member
 
Registered: Sep 2006
Posts: 366

Original Poster
Rep: Reputation: 45
http://www-128.ibm.com/developerwork...brary/l-web26/

It really does seem like 2.6 is the way to go when doing webservers with Apache.

Thomas
 
Old 12-29-2006, 03:30 AM   #7
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
I would not install 2.4 on a new machine as too many recent chipsets are not supported. 2.4 is in bugfix/maintenance mode for some time now.
 
Old 01-01-2007, 10:21 PM   #8
nemestrinus
LQ Newbie
 
Registered: Dec 2006
Location: california
Distribution: slackware
Posts: 21

Rep: Reputation: 0
Yes, I also wanted to run a dual-core (pentium D) processor and in the end I wound up compiling and installing a fresh linux-2.6.19.1 from kernel.org, because no prior kernels would support all the chipsets that were on my abit motherboard. Everything seems to work fine so far! The only hard part turned out to be getting the .config file exactly as I needed it.
 
Old 01-02-2007, 01:02 AM   #9
TL_CLD
Member
 
Registered: Sep 2006
Posts: 366

Original Poster
Rep: Reputation: 45
I've successfully compiled a SMP enabled 2.4.34 kernel, and I'm pretty proud!

Next up I'm going to try it with a 2.6 kernel, as I've read many good things about 2.6 and SMP.

Thanks for all the help guys.

Thomas
 
  


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
Dual Core CPU's - What Kernel carlosinfl Linux - Hardware 1 08-21-2006 01:55 PM
Slackware and AMD Dual Core GML3G0 Linux - Hardware 1 01-24-2006 07:42 AM
Dual CPU's FreeBSD 4.9 penguinz *BSD 1 02-11-2004 12:42 PM
Dual CPU's and Linux Question Dirt Linux - Hardware 7 08-29-2003 07:49 PM
Dual CPU's and the Thunderbird ReverseLogic General 4 02-02-2002 05:30 PM

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

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