LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-30-2004, 07:49 AM   #1
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Rep: Reputation: 17
Detecting hyper threading


How do I detect if hyper threading is enabled in the BIOS from within Linux ?

Many thanks
 
Old 03-30-2004, 08:35 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
The "top" command will show you how many processors are running. If it's twice the actual number of processors, then hyper-threading is enabled and working.

John
 
Old 03-30-2004, 09:15 AM   #3
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
This does'nt help. Say you don't know how many processors the box has without physically checking.

That was the point of the question, I don't want to physically check.

Does anyone know ?

Thanks anyway for the reply.
 
Old 03-30-2004, 09:23 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
look somewhere in the /proc FS i think?, i know i remember reading something that said "linux can detect hyper threading while windows only thinks theres 2 processors" (this was before windows become hyper threading compatible), but i never tried to see how to detect it
 
Old 03-30-2004, 09:29 AM   #5
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
You could look at the output from dmesg. My system has the following close to the start of the dmeg output...

cpu_sibling_map[0] = 1
cpu_sibling_map[1] = 0
cpu_sibling_map[2] = 3
cpu_sibling_map[3] = 2

I, perhaps wrongly, interpret this as output from the system as it enables hyper-threading.

Although this still wouldn't help you if the BIOS enabled hyperthreading but the kernel didn't.

John
 
Old 03-30-2004, 04:46 PM   #6
waster
Member
 
Registered: Jan 2004
Location: London
Distribution: Debian
Posts: 33

Rep: Reputation: 15
what about enabling hyperthreading if it's disabled in the BIOS, or am I pushing my luck? My laptop BIOS is so basic there is no mention of it, but I presume every P4 2800 has this capability. Does anyone know of any software or HOWTO which discusses this?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyper threading help needed raees Linux - Hardware 2 04-14-2005 05:50 PM
Hyper Threading enragedchip Linux - Hardware 1 02-12-2004 07:05 AM
Hyper-Threading with Debian Leviathan Linux - Hardware 1 10-11-2003 06:41 AM
Hyper-Threading karlan Linux - General 1 09-09-2003 11:50 PM
Should I care about hyper-threading? Jim Miller Linux - General 1 07-29-2003 12:33 AM


All times are GMT -5. The time now is 12:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration