Re: detecting hyperthreading in linux 2.4.19

Dave Jones (davej@codemonkey.org.uk)
Fri, 10 Jan 2003 00:20:17 +0000


On Thu, Jan 09, 2003 at 08:02:33PM +0000, Jason Lunz wrote:
> Is there a way for a userspace program running on linux 2.4.19 to tell
> the difference between a single hyperthreaded xeon P4 with HT enabled
> and a dual hyperthreaded xeon P4 with HT disabled? The /proc/cpuinfos
> for the two cases are indistinguishable.

Check out x86info[1]. It should do the right thing in both cases.
It counts siblings, and also checks the BIOS MP table.

Dave

[1] http://www.codemonkey.org.uk/x86info/

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/