LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-12-2004, 09:35 PM   #1
ms linuz
LQ Newbie
 
Registered: Oct 2004
Location: a beautiful tropical country - you know Bali ?
Distribution: debian
Posts: 5

Rep: Reputation: 0
Question Howto : Enabling Hyperthreading


12
hello world ...

I really wonder why, after spending a couple days googling around, I've found no documentation, no clue, no page, and no luck of enabling hyperthreading in linux ( specially in debian ).
Since I'm just a desktop debian user, maybe my effort to make my debain knows he has P4 3GHz HT to play with is not good enough as those masters.
I'm currently using debian sid with 2.6.8-1-686 debian kernel stock.
If any of you guys, has been succeed in enbling hyperthreading in linux (debian), I really beg you to
share your experience with me...Maybe some links to show me for easy good and right direction will be very helpful.

Thanks ....


--ms linuz--
 
Old 10-12-2004, 09:50 PM   #2
jordanGSU
Member
 
Registered: Sep 2004
Distribution: Debian, Slackware, Arch
Posts: 65

Rep: Reputation: 15
Hi, you have probably already checked this, but just in case: did you check your bios to make sure that HT is enabled? my P4 motherboard came with it turned off by default. After turning it on in the bios, it was being detected as 2 cpus. I have only run Knoppix on that machine though, so I am not sure if you will have the same luck with debian.
 
Old 10-13-2004, 12:20 AM   #3
Space_Balls
Member
 
Registered: Aug 2003
Location: El Paso, Tx
Distribution: Debian Sid, SuSe 9.1 Pro
Posts: 33

Rep: Reputation: 15
make sure you are running a smp kernel, kernel 2.6.8-1-686-smp, in your case. I'm not sure how to enable it, but I believe that is should be enabled by default. #uname -r gives you the version you are running.

The SMP kernel is used for multi-processor and with P4 HT CPUs.
 
Old 10-13-2004, 05:50 AM   #4
ms linuz
LQ Newbie
 
Registered: Oct 2004
Location: a beautiful tropical country - you know Bali ?
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
Guess what.....I have HT enabling in BIOS ( at the first time I bought this PC ), and I've given the debian stock kernel smp installed ( kernel-2.6.8-1-686-smp ).
The last action give my machine freeze at boot time.
I've tried to playing around with Knoppix and hoped there would be some tricky configuration I could use...the result is nope ( or i don't know where ... )
But Knoppix does detect my HT proccessor well at the first begining. He gives me twin tux logo at boot time...
and cat /proc/cpuinfo and top shows me that he knows I've got the HT.
Some people says that i should have acpi support and smp support enable in my kernel, but 'the amazing thing' is the solution is end right there. No furthrer simple easy but detail explanation.


cheers,


--ms linuz--
 
Old 10-13-2004, 09:05 AM   #5
Space_Balls
Member
 
Registered: Aug 2003
Location: El Paso, Tx
Distribution: Debian Sid, SuSe 9.1 Pro
Posts: 33

Rep: Reputation: 15
Code:
#apt-get install kernel-image-2.6.8-1-686-smp
Did you install the kernel with apt-get?
It should automatically handle all dependencies and create the correct boot entries for you. This is all I did to get my smp kernel running.
 
Old 10-13-2004, 09:49 PM   #6
ms linuz
LQ Newbie
 
Registered: Oct 2004
Location: a beautiful tropical country - you know Bali ?
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
Of course I used apt-get when installing kernel-2.6.8-1-686-smp.
It is the easiest thing that I love much from debian...the apt thing.
Configure my lilo.conf as usual, run lilo and reboot to see the result.
Debian just hang on boot, screen went blank, and keyboard not functional.
I've been installing/upgrading/downgrading kernel many times via apt and this is my first experience
of having system hang on changing kernel.
I think installing kernel-smp is not the right solution for having HT in debian. But to have smp support compiled manually within the current kernel ( I think ... )
After reverting my kernel ( boot through the old kernel of my first installation and removing kernel-smp and reinstalling non smp kernel ), I still tried by adding append"acpi=ht" on lilo.conf
Still no luck...
Btw, my machine consist of mobo = Intel 865PERL, processor = P4 3gHz, dual channel memory 512MD DDR 400.
Good combination for having HT .... I'm really curious why I still got no luck in this.... :<


cheers,

ms linuz
 
Old 10-13-2004, 10:33 PM   #7
ms linuz
LQ Newbie
 
Registered: Oct 2004
Location: a beautiful tropical country - you know Bali ?
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
Upss....so sorry guys. After checking one more time, I realize that when I was installing kernel-smp, the vmlinuz ( boot image symlink ) in my root partition is not revered to kernel-smp boot image, but still revered to old one ( non-smp) while I had edited lilo.conf to revered to the kernel-smp boot image.
..................
So, I decided to give kernel-smp one more chance and make sure everything is in the right direction and ....tada...! There goes the HT ........ The rest is just recompiling alsa and nvidia driver ( not big deal )...
Today I've got one more lesson, pay attention when you do something even a little thing that change your system much...
Many thanks to your guys for you attentions.....case's closed... :-)


cheers,


ms linuz
 
  


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
installation with hyperthreading maxmsn SUSE / openSUSE 4 11-29-2004 08:39 AM
P4 and Hyperthreading General_Tso Linux - Hardware 13 11-27-2004 06:39 PM
Hyperthreading Igman Linux - General 2 12-21-2003 06:37 PM
hyperthreading gmi Linux - Laptop and Netbook 5 09-17-2003 03:28 AM
Hyperthreading jspaceman Linux - Hardware 6 07-05-2003 11:18 AM

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

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