SlackwareThis 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.
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.
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
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.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.