- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- hyperthreading enabled/disabled?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 02:38 AM
тАО11-06-2003 02:38 AM
I need to know "Hyperthreading" is enabled in BIOS? How can i check that?
Thanks
Vijay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 02:39 AM
тАО11-06-2003 02:39 AM
Re: hyperthreading enabled/disabled?
I dont want to reboot.
I need a command line...
Thanks
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 03:07 AM
тАО11-06-2003 03:07 AM
Re: hyperthreading enabled/disabled?
This command shows the number of CPU in your machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 03:32 AM
тАО11-06-2003 03:32 AM
Re: hyperthreading enabled/disabled?
what does that mean...
It shows 4 processors with CPU 0 to 4
What dows that mean?
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 04:00 AM
тАО11-06-2003 04:00 AM
Re: hyperthreading enabled/disabled?
For hyperthreading, you should be really running SMP Linux. Can you post the kernel version. I suppose RH 8.0 is not supporting hyperthreading. You may need to recompile the kernel with SMP support.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 04:07 AM
тАО11-06-2003 04:07 AM
Re: hyperthreading enabled/disabled?
Btw, I am running SMP Kernel
2.4.18-14smp
Thanks
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 04:18 AM
тАО11-06-2003 04:18 AM
Re: hyperthreading enabled/disabled?
What is there in /proc/cpu?
Since it a 4 physical processor machine, it should show 8 inside /proc/cpu. Otherwise, it is not supporting hyperthreading.
hth
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 04:21 AM
тАО11-06-2003 04:21 AM
Re: hyperthreading enabled/disabled?
# sysctl -A | grep -i "threa"
also have a look at
#procinfo
Hope this will help you
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 07:55 PM
тАО11-06-2003 07:55 PM
Re: hyperthreading enabled/disabled?
You dont have hyper threading currently.
reboot the server.
Press F9 key to get in to BIOS
Go to Advanced options ( set the below value)
Processor Hyper-Threading enabled
Save BIOS config and reboot the server.
Now after linux has booted.
give
#top
which should show number of processors more than the actual (physical) number of processors.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 08:00 PM
тАО11-06-2003 08:00 PM
Re: hyperthreading enabled/disabled?
viz. 2 logical processor per 1 physical processor.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2003 01:16 AM
тАО11-07-2003 01:16 AM
Re: hyperthreading enabled/disabled?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2003 04:46 AM
тАО11-07-2003 04:46 AM
Re: hyperthreading enabled/disabled?
Regards
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 02:51 AM
тАО02-04-2004 02:51 AM
Re: hyperthreading enabled/disabled?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 02:55 AM
тАО02-04-2004 02:55 AM
Re: hyperthreading enabled/disabled?
HyperThreading is on by default, well, on hp/compaq machines...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2004 09:15 PM
тАО04-19-2004 09:15 PM
Re: hyperthreading enabled/disabled?
cat /proc/cpu|grep ht
if this flag "ht" is present in /proc/cpu then hyperthreading is enabled.
Peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2004 06:22 AM
тАО04-20-2004 06:22 AM
Re: hyperthreading enabled/disabled?
this should be /proc/cpuinfo, not /proc/cpu (at least on my Fedora and SuSE systems).
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2004 05:03 PM
тАО04-20-2004 05:03 PM
SolutionRoberto wrote:
"if this flag "ht" is present in /proc/cpu then hyperthreading is enabled."
Hmm, I beg to differ. I believe that just means that the processor is ht capeable, not whether it is active or not.
Intuitively I'd say like U.SivaKumar just use top and see how many CPU's it lists. However, that could misguide you if the BOX is for example made for 4 CPUs, but only 2 are installed... with HT still showing 4 CPUs.
I think the best solution is:
grep -E "processor|physical id" /proc/cpuinfo
And even that is slightly inconsistent on my systems with:
My 4P dl560 running " SuSE SLES 8 (powered by UnitedLinux 1.0) (i586)\nKernel 2.4.21-138-smp (1)" With HT enabled shows:
grep -E "processor|physical id" /proc/cpuinfo
processor : 0
physical id : 0
processor : 1
physical id : 0
processor : 2
physical id : 1
processor : 3
physical id : 1
processor : 4
physical id : 2
processor : 5
physical id : 2
processor : 6
physical id : 3
processor : 7
physical id : 3
But on older box running "SuSE SLES 8 (powered by UnitedLinux 1.0) (i586)\nKernel 2.4.19-64GB-SMP (2)" and NO HT shows:
processor : 0
physical id : 0
processor : 1
physical id : 0
processor : 2
physical id : 0
processor : 3
physical id : 0
So yes you can see what is happening, but not clearly.
JP Huc wrote : "the following command should be able to tell you this!
# sysctl -A | grep -i "threa"
Hmmm... not on my box! (It just returns "kernel.threads-max = 14336")
And procinfo does tell me how many CPUs, but not whether they are virtual or physical.
So like the 'top' solution I could get a false negative when less then halve of the possible CPUs are physically installed.
vijay wrote: "what does that mean... It shows 4 processors with CPU 0 to 4"
It means you did not read carefully, or someoen is playing a joke on you.
4 CPUS would be labeled CPU0 thru CPU3 (or maybe my english is not sharp enough and your 'to' really meant 'up to, but not including :-).
John Daily had the keenest response and should get the 10 Points... if his timing had been better.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2004 06:05 PM
тАО04-20-2004 06:05 PM
Re: hyperthreading enabled/disabled?
nice analysis.
I just switched off hyperthreading on my DL360. I didn't check all responses here like you did, but the reply that a DL380 (and I hope a DL360 too) can have at most 2 CPU's triggered me. Using top I saw 4 CPUs. After rebooting and switching off hyperthreading top only showed 2.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2004 06:26 PM
тАО04-20-2004 06:26 PM
Re: hyperthreading enabled/disabled?
Are you going to share with us why you are switching of Hyperthreading? If it is to evaluate the gain/losse s for it, please share that with us the findings with a rough description of the application!
(tight loops, large foot-print, little memory touched, lots of memory, oltp? web? a few, dozens or hundreds of processes per cpu? and so on.)
Met vriendelijke groetjes,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2004 07:26 PM
тАО04-20-2004 07:26 PM
Re: hyperthreading enabled/disabled?
don't be surprised but I'm not sure if I need to switch it off.
I'm installing a test Oracle RAC cluster. I was told that when using Oracle parallel queries you should not have hyperthreading enabled.
I have it on a question list for the Oracle consultant I will be talking to in the (near) future.
Groeten,
Jeroen P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2004 08:30 PM
тАО04-20-2004 08:30 PM
Re: hyperthreading enabled/disabled?
you said you got the HT disabled on your HT-capable machine.
Can you please, confirm if
grep ht /proc/cpuinfo
works for detecting ht?
Thank you very much,
Peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2004 06:23 AM
тАО04-21-2004 06:23 AM
Re: hyperthreading enabled/disabled?
I think Heins analysis is valid. On my hp/Compaq Evo I get:
[zinser@DHCP-FEX2-326-9 zinser]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz
i.e. once CPU seen, but
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss >>ht<< tm pbe cid
i.e. potentially it seems I could enable hyperthreading on this box.
Greetings, Martin
P.S. One obvious reason to switch of HT when running Oracle is that they charge you by "CPU" ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2004 07:12 PM
тАО04-21-2004 07:12 PM
Re: hyperthreading enabled/disabled?
2xXeon Proliant DL380 and ML530 using RH8.0A and I found
grep 'Phys' /proc/cpuinfo
Physical processor ID : 0
Physical processor ID : 0
Physical processor ID : 3
Physical processor ID : 3
So I think
grep 'Phys' /proc/cpuinfo |uniq|wc -l
[sure you can do it with awk too bu it's easy to read!]
should work for indicating #physical cpus.
Does it work for you?
Thanks all for your inputs!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2004 07:16 PM
тАО04-21-2004 07:16 PM
Re: hyperthreading enabled/disabled?
Kinda frustrating ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2004 08:55 PM
тАО04-21-2004 08:55 PM
Re: hyperthreading enabled/disabled?
on Red Hat AS2.1 I executed 'cat /proc/cpuinfo'.
The difference is that with hyperthreading on I have twice as many lines as without. It shows processor 0, 1, 2, 3 i.s.o. 0, 1.
My 'cpu Mhz' is also .9 Mhz lower ;-).
Sample output (with ht):
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 3.06GHz
stepping : 9
cpu MHz : 3065.891
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 6121.06
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 3.06GHz
....
The only place I see 'ht' is in the flags line. But this line is not influenced by enabling/disabling hyperthreading.
Greetings,
JP.