LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-27-2003, 03:33 PM   #1
yvain
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Rep: Reputation: 0
linux and hyperthreading...


Hi,

I have a P4 2.6c with hyperthreading. I can't use a kernel without multi-cpu support activated (the kernel boot sequence stops). Have you heard about problem with hyperthreading? In fact I tried to compile my kernel without multi-cpu support because linux was very slow...

Thanks
 
Old 06-29-2003, 02:13 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Hyperthreading enabled technically requires an SMP kernel, it might just be a bit of age to your kernel, what 2.4 are you using?

Cheers,

Finegan
 
Old 06-29-2003, 02:24 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
turn off hyperthreading in the bios, if you wish.

i asked a friend of mine who was working on it at the
time for intel, if it would be possible to turn it on and
off on the fly, with a utility. he said that idea had popped
up in meetings, but the way hyperthreading was
implemented, that wouldn't be possible without a chip
redesign.

i was trying to get him to bitch the guys into making
hyperthreading where you could turn it on or off on
the fly for testing software with it.

Last edited by whansard; 06-29-2003 at 02:27 PM.
 
Old 06-29-2003, 05:45 PM   #4
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
Yvain : what distribution do you use?
 
Old 07-02-2003, 08:28 AM   #5
yvain
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your answers... I have a gentoo distribution and the kernel must be a 2.4.30 or something like that (I am not on my computer right now and I can't check that more precisely). As whansard told me, I will turn off hyperthreading for the moment and wait for kernel's updates. Do you know how I could measure global performances of my computer under linux? (a benchmark or something like that)

Cheers,
Yvain
 
Old 07-03-2003, 12:19 PM   #6
solspin
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: What works
Posts: 97

Rep: Reputation: 15
I just downloaded kernel-2.4.21 from kernel.org, compiled it, and the hyperthreading works just fine on my system. I have RedHat, and I downloaded the smp kernel from their rpm database, installed it, and tried to reboot - it was a no go. Not sure, but the hyperthreading seems a little unforgiving when it comes to hardware setup.
 
Old 07-03-2003, 03:11 PM   #7
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
You can find a lot of different benchmarks on the following site :
http://freshmeat.net/browse/138/?topic_id=138

Nbench, a port of Byte magazine's benchmark, is nice (simple), but dated :
http://www.tux.org/~mayer/linux/bmark.html

You may find the following article interesting :
http://www-106.ibm.com/developerwork...?ca=dgr-lnxw01
 
Old 07-03-2003, 04:18 PM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
a friend of mine wrote this.


http://cedar.intel.com/cgi-bin/ids.d...AL&catCode=BBX

and recommends this

http://cedar.intel.com/cgi-bin/ids.d...sp?catCode=DCK

and he told me this.


We expect 20-30%

>gain on applications that scale well with multiple processors. That
>means single threaded applications (word, games, _most_ consumer apps)
>will get little if any gain and might even degrade a percent or so.
>Applications that we've seen perform the best with HT have been DCC
>(digital content creation) applications like 3ds max, Maya, and
>Photoshop where gains have been up to 70% with some workloads. Gains
>seen are VERY workload dependent. You really can't say that with HT,
>Maya gains 40% because there are some workloads that have no gain and
>some that even degrade. My job have been trying to mitigate those
>losses and help others do the same so that no application slows down
>with HT. One of the big issues that will come up is that some consumer

>applications fail with multiple processors because they were never
>tested for thread safety. When they crash, we hope it's not seen as an

>HT problem...
>
>Unreal ~3%, Quake ~2% gain. Internally, we've had a team that has
>threaded the LAME encoder and we see around a 50% increase.

Last edited by whansard; 07-03-2003 at 04:24 PM.
 
Old 07-04-2003, 09:44 AM   #9
yvain
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Many thanks to all of you for your help. Whansard, thanks for your useful links about hyperthreading : it was really interesting.
Cropcircle, I will try your benchmarks later : I have to compare my old athlon with a p4...

Bye
 
  


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
P4 and Hyperthreading General_Tso Linux - Hardware 13 11-27-2004 05:39 PM
Getting hyperthreading working AMMullan Linux - Hardware 6 05-25-2004 05:35 PM
Hyperthreading Igman Linux - General 2 12-21-2003 05:37 PM
hyperthreading gmi Linux - Laptop and Netbook 5 09-17-2003 02:28 AM
Hyperthreading jspaceman Linux - Hardware 6 07-05-2003 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration