LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2005, 08:32 PM   #1
Kamikazee
Member
 
Registered: May 2005
Location: Aus
Distribution: SimplyMEPIS 3.3
Posts: 107

Rep: Reputation: 15
smp kernel


Ive just bought a 3ghz p4 with HT. I havnt installed it yet..

Im running the 2.6.12 kernel (compiled from source from kernel.org), do i have to recompile to get smp? what do i have to do to use both logical processors?
 
Old 12-21-2005, 08:45 PM   #2
jbetten
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Rep: Reputation: 0
Well... the first thing you have to do is enable hyperthreading in the BIOS, if it isn't already. Then you can try booting your kernel.

If SMP isn't enabled then you will only be using one processor, you can check by looking in /proc/cpuinfo. Then to get the second processor working you will need to recompile your kernel with SMP and preferably SMT scheduling. Then just reboot into the new kernel... it is that easy.
 
Old 12-21-2005, 09:04 PM   #3
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Here's what you do:

1. make menuconfig
2. go to Processor Type and Features -> Processor Family -> select (X) Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon
3. Go to Symmetric multi-processing support -> and enable it
4. Enable SMT (Hyperthreading) scheduler support (NEW) (right below flag for #3)
5. Go to the preemption mode, set it for low-latency for preemptive rather than cooperative multitasking

Compile, install, etc.

When booting to the new kernel, check /proc/cpuinfo - two processors should be identified if the logical processors were enumerated. You can go one further and check the flags to make sure that it's actually hyperthreading-aware for optimal performance:

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dt s acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl cid xtpr

Look for the 'ht' flag on each (logical) processor.

Incidentally, I went through a heck of a time getting hyperthreading recognized the first time I compiled the kernel on a hyperthreading box. I went through the SMP options and recompiled several times and each time it was enumerating the logical CPUs as two physical CPUs (just like the out of the box kernel did), which can lead to performance degradation in some(many) cases. Finally I noticed the problem: I had set the CPU type to( ) 586/K5/5x86/6x86/6x86MX, not realizing that there were additional processor options. Just giving you the heads up on that so you don't make the same mistake.
 
Old 12-21-2005, 10:11 PM   #4
Kamikazee
Member
 
Registered: May 2005
Location: Aus
Distribution: SimplyMEPIS 3.3
Posts: 107

Original Poster
Rep: Reputation: 15
thanks ... will do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Any reason to keep a non-smp kernel installed on a smp FC3 machine? jim-j Fedora 2 03-12-2006 07:06 AM
smp kernel: uncompressing Linux ..ok booting the kernel krissb Linux - General 1 11-16-2005 06:31 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel 2.6.x SMP a68254 Debian 4 11-12-2004 12:58 AM
Kernel SMP bhagat_panwar Linux - Hardware 3 08-18-2003 10:01 AM


All times are GMT -5. The time now is 02:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration