Re: detecting hyperthreading in linux 2.4.19

From: Dave Jones (davej@codemonkey.org.uk)
Date: Thu Jan 09 2003 - 19:20:17 EST


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/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:30 EST