<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux tips: How to find out if a your CPU supports HT (Hyper-Threading)?</title> <atom:link href="http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/feed/" rel="self" type="application/rss+xml" /><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/</link> <description>The Journal Of A Linux Sysadmin</description> <lastBuildDate>Tue, 07 Sep 2010 18:54:21 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>By: shawshank</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-2/#comment-180584</link> <dc:creator>shawshank</dc:creator> <pubDate>Wed, 01 Jul 2009 09:33:32 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-180584</guid> <description>hi.. i understood that &#039;ht&#039; in the /proc/cpuinfo flags section tells you that the cpu is capable of providing hyperthreading.
But how can i find out if the kernel is enabled for hyperthreading. Is there a way by which I can programatically find out this?
Please help....</description> <content:encoded><![CDATA[<p>hi.. i understood that &#8216;ht&#8217; in the /proc/cpuinfo flags section tells you that the cpu is capable of providing hyperthreading.<br
/> But how can i find out if the kernel is enabled for hyperthreading. Is there a way by which I can programatically find out this?<br
/> Please help&#8230;.</p> ]]></content:encoded> </item> <item><title>By: fruitwerks</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-2/#comment-180513</link> <dc:creator>fruitwerks</dc:creator> <pubDate>Tue, 23 Jun 2009 06:04:00 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-180513</guid> <description>The ht flag does not always mean that the CPU supports hyper-threading! If you are one linux and the kernel has SMP support and the BIOS is not disabling it, cat /proc/cpuinfo will show twice the processors than you actually have. if you have a single dual-core HT cpu, you will see 4 cores, the same for a dual cpu single core system with HT. This example is from a Dell PE2850 with two single-core xeons with HT;Found 4 CPUs
--------------------------------------------------------------------------
CPU #1
EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3
CPU Model: Pentium 4 (Prescott) [N0]
Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz
Type: 0 (Original OEM)  Brand: 0 (Unsupported)
Number of cores per physical package=1
Number of logical processors per socket=2
Number of logical processors per core=2
APIC ID: 0x0    Package: 0  Core: 0   SMT ID 0
--------------------------------------------------------------------------
CPU #2
EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3
CPU Model: Pentium 4 (Prescott) [N0]
Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz
Type: 0 (Original OEM)  Brand: 0 (Unsupported)
Number of cores per physical package=1
Number of logical processors per socket=2
Number of logical processors per core=2
APIC ID: 0x6    Package: 1  Core: 0   SMT ID 0
--------------------------------------------------------------------------
CPU #3
EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3
CPU Model: Pentium 4 (Prescott) [N0]
Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz
Type: 0 (Original OEM)  Brand: 0 (Unsupported)
Number of cores per physical package=1
Number of logical processors per socket=2
Number of logical processors per core=2
APIC ID: 0x1    Package: 0  Core: 0   SMT ID 1
--------------------------------------------------------------------------
CPU #4
EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3
CPU Model: Pentium 4 (Prescott) [N0]
Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz
Type: 0 (Original OEM)  Brand: 0 (Unsupported)
Number of cores per physical package=1
Number of logical processors per socket=2
Number of logical processors per core=2
APIC ID: 0x7    Package: 1  Core: 0   SMT ID 1
--------------------------------------------------------------------------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 syscall nx lm constant_tsc pebs bts nopl pni monitor ds_cpl cid cx16 xtprI also have an old p4 with the ht flag, but it does not support HT!</description> <content:encoded><![CDATA[<p>The ht flag does not always mean that the CPU supports hyper-threading! If you are one linux and the kernel has SMP support and the BIOS is not disabling it, cat /proc/cpuinfo will show twice the processors than you actually have. if you have a single dual-core HT cpu, you will see 4 cores, the same for a dual cpu single core system with HT. This example is from a Dell PE2850 with two single-core xeons with HT;</p><p>Found 4 CPUs<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> CPU #1<br
/> EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3<br
/> CPU Model: Pentium 4 (Prescott) [N0]<br
/> Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz<br
/> Type: 0 (Original OEM)  Brand: 0 (Unsupported)<br
/> Number of cores per physical package=1<br
/> Number of logical processors per socket=2<br
/> Number of logical processors per core=2<br
/> APIC ID: 0&#215;0    Package: 0  Core: 0   SMT ID 0<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> CPU #2<br
/> EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3<br
/> CPU Model: Pentium 4 (Prescott) [N0]<br
/> Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz<br
/> Type: 0 (Original OEM)  Brand: 0 (Unsupported)<br
/> Number of cores per physical package=1<br
/> Number of logical processors per socket=2<br
/> Number of logical processors per core=2<br
/> APIC ID: 0&#215;6    Package: 1  Core: 0   SMT ID 0<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> CPU #3<br
/> EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3<br
/> CPU Model: Pentium 4 (Prescott) [N0]<br
/> Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz<br
/> Type: 0 (Original OEM)  Brand: 0 (Unsupported)<br
/> Number of cores per physical package=1<br
/> Number of logical processors per socket=2<br
/> Number of logical processors per core=2<br
/> APIC ID: 0&#215;1    Package: 0  Core: 0   SMT ID 1<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> CPU #4<br
/> EFamily: 0 EModel: 0 Family: 15 Model: 4 Stepping: 3<br
/> CPU Model: Pentium 4 (Prescott) [N0]<br
/> Processor name string: Intel(R) Xeon(TM) CPU 3.00GHz<br
/> Type: 0 (Original OEM)  Brand: 0 (Unsupported)<br
/> Number of cores per physical package=1<br
/> Number of logical processors per socket=2<br
/> Number of logical processors per core=2<br
/> APIC ID: 0&#215;7    Package: 1  Core: 0   SMT ID 1<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>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 syscall nx lm constant_tsc pebs bts nopl pni monitor ds_cpl cid cx16 xtpr</p><p>I also have an old p4 with the ht flag, but it does not support HT!</p> ]]></content:encoded> </item> <item><title>By: fruitwerks</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-2/#comment-180346</link> <dc:creator>fruitwerks</dc:creator> <pubDate>Sun, 17 May 2009 18:52:11 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-180346</guid> <description>x86info can also tell you what is going on.Found 2 CPUs
--------------------------------------------------------------------------
CPU #1
EFamily: 0 EModel: 0 Family: 15 Model: 1 Stepping: 2
CPU Model: Pentium 4 (Willamette) [D0]
Processor name string: Intel(R) Xeon(TM) CPU 1.70GHz
Type: 0 (Original OEM)  Brand: 14 (IntelÂ® Xeon processor)
Number of cores per physical package=1
Number of logical processors per socket=1
Number of logical processors per core=1
APIC ID: 0x0    Package: 0  Core: 0   SMT ID 0
--------------------------------------------------------------------------
CPU #2
EFamily: 0 EModel: 0 Family: 15 Model: 1 Stepping: 2
CPU Model: Pentium 4 (Willamette) [D0]
Processor name string: Intel(R) Xeon(TM) CPU 1.70GHz
Type: 0 (Original OEM)  Brand: 14 (IntelÂ® Xeon processor)
Number of cores per physical package=1
Number of logical processors per socket=1
Number of logical processors per core=1
APIC ID: 0x6    Package: 0  Core: 0   SMT ID 0
--------------------------------------------------------------------------but I do have HT!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 pebs bts</description> <content:encoded><![CDATA[<p>x86info can also tell you what is going on.</p><p>Found 2 CPUs<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> CPU #1<br
/> EFamily: 0 EModel: 0 Family: 15 Model: 1 Stepping: 2<br
/> CPU Model: Pentium 4 (Willamette) [D0]<br
/> Processor name string: Intel(R) Xeon(TM) CPU 1.70GHz<br
/> Type: 0 (Original OEM)  Brand: 14 (IntelÂ® Xeon processor)<br
/> Number of cores per physical package=1<br
/> Number of logical processors per socket=1<br
/> Number of logical processors per core=1<br
/> APIC ID: 0&#215;0    Package: 0  Core: 0   SMT ID 0<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> CPU #2<br
/> EFamily: 0 EModel: 0 Family: 15 Model: 1 Stepping: 2<br
/> CPU Model: Pentium 4 (Willamette) [D0]<br
/> Processor name string: Intel(R) Xeon(TM) CPU 1.70GHz<br
/> Type: 0 (Original OEM)  Brand: 14 (IntelÂ® Xeon processor)<br
/> Number of cores per physical package=1<br
/> Number of logical processors per socket=1<br
/> Number of logical processors per core=1<br
/> APIC ID: 0&#215;6    Package: 0  Core: 0   SMT ID 0<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>but I do have HT!</p><p>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 pebs bts</p> ]]></content:encoded> </item> <item><title>By: Llama</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-2/#comment-180067</link> <dc:creator>Llama</dc:creator> <pubDate>Thu, 09 Apr 2009 22:03:50 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-180067</guid> <description>See /usr/src/linux/arch/x86/include/asm/cpufeature.h</description> <content:encoded><![CDATA[<p>See /usr/src/linux/arch/x86/include/asm/cpufeature.h</p> ]]></content:encoded> </item> <item><title>By: Mark Wilson</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-1/#comment-129802</link> <dc:creator>Mark Wilson</dc:creator> <pubDate>Wed, 20 Feb 2008 17:51:22 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-129802</guid> <description>Thanks for this Boris.  Regards, Mark</description> <content:encoded><![CDATA[<p>Thanks for this Boris.  Regards, Mark</p> ]]></content:encoded> </item> <item><title>By: Boris</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-1/#comment-129762</link> <dc:creator>Boris</dc:creator> <pubDate>Wed, 20 Feb 2008 15:03:12 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-129762</guid> <description>Hi Mark,check http://www.intel.com/design/xeon/applnots/241618.htm (pdf document, p. 24f) for all the flags explained.Regards,
Boris.</description> <content:encoded><![CDATA[<p>Hi Mark,</p><p>check <a
href="http://www.intel.com/design/xeon/applnots/241618.htm" rel="nofollow">http://www.intel.com/design/xeon/applnots/241618.htm</a> (pdf document, p. 24f) for all the flags explained.</p><p>Regards,<br
/> Boris.</p> ]]></content:encoded> </item> <item><title>By: - Marius -</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-1/#comment-87108</link> <dc:creator>- Marius -</dc:creator> <pubDate>Fri, 05 Oct 2007 21:49:58 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-87108</guid> <description>Hi Mark,Sorry I don&#039;t. Maybe you can find something like that on CPU manufacturers (intel or amd) developer sites.</description> <content:encoded><![CDATA[<p>Hi Mark,</p><p>Sorry I don&#8217;t. Maybe you can find something like that on CPU manufacturers (intel or amd) developer sites.</p> ]]></content:encoded> </item> <item><title>By: Mark Wilson</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-1/#comment-86784</link> <dc:creator>Mark Wilson</dc:creator> <pubDate>Thu, 04 Oct 2007 23:39:43 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-86784</guid> <description>Hi Marius,
Do you have a complete list of what all the flags mean?  CPU-Z for Windows and CPUID for Linux are useful tools, but it&#039;s all still a little bit cryptic!Mark</description> <content:encoded><![CDATA[<p>Hi Marius,<br
/> Do you have a complete list of what all the flags mean?  CPU-Z for Windows and CPUID for Linux are useful tools, but it&#8217;s all still a little bit cryptic!</p><p>Mark</p> ]]></content:encoded> </item> <item><title>By: Naveen</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-1/#comment-70799</link> <dc:creator>Naveen</dc:creator> <pubDate>Tue, 21 Aug 2007 09:03:54 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-70799</guid> <description>how can i check from the user interface if HT is enabled or not.
my appication cant read the same from BIOS.</description> <content:encoded><![CDATA[<p>how can i check from the user interface if HT is enabled or not.<br
/> my appication cant read the same from BIOS.</p> ]]></content:encoded> </item> <item><title>By: - Marius -</title><link>http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/comment-page-1/#comment-52069</link> <dc:creator>- Marius -</dc:creator> <pubDate>Tue, 19 Jun 2007 16:27:23 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/06/23/linux-tips-how-to-find-out-if-a-your-cpu-supports-ht-hyper-threading/#comment-52069</guid> <description>Markus,this is most certainly caused by your kernel. Can you try to upgrade to the latest RHEL kernel and see if you see a difference? On stock kernels this info (core id) apparently appeared starting with 2.6.11:
http://thread.gmane.org/gmane.linux.kernel/287715
The RHEL kernel is obviously not following the stock version with many &#039;internal&#039; changes even if the version looks smaller. Anyway it should be a good idea to upgrade to the latest rhel kernel (if you are running rhel4 then this is probably kernel-smp-2.6.9-55.EL).
Let me know...</description> <content:encoded><![CDATA[<p>Markus,</p><p>this is most certainly caused by your kernel. Can you try to upgrade to the latest <a
href="http://www.redhat.com/rhel/" class="ubernym uttAcronym"><acronym
class="uttAcronym" title="Red Hat Enterprise Linux">RHEL</acronym></a> kernel and see if you see a difference? On stock kernels this info (core id) apparently appeared starting with 2.6.11:<br
/> <a
href="http://thread.gmane.org/gmane.linux.kernel/287715" rel="nofollow">http://thread.gmane.org/gmane.linux.kernel/287715</a><br
/> The <a
href="http://www.redhat.com/rhel/" class="ubernym uttAcronym"><acronym
class="uttAcronym" title="Red Hat Enterprise Linux">RHEL</acronym></a> kernel is obviously not following the stock version with many &#8216;internal&#8217; changes even if the version looks smaller. Anyway it should be a good idea to upgrade to the latest rhel kernel (if you are running rhel4 then this is probably kernel-smp-2.6.9-55.EL).<br
/> Let me know&#8230;</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.ducea.com @ 2010-09-09 16:10:04 by W3 Total Cache -->