"ht" does appear in /proc/cpuinfo, but it always seems to be there..

For example, one of our clusternodes reports:

$ grep " ht "  /proc/cpuinfo
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 ferr syscall nx lm sse3 monitor ds-cpl cnxt-id


This node has hyperthreaded processors, but ht is disabled in the bios.
Perhaps that flag indicates only ht capability, not so much whether it's used or not.

-Preston

On Mar 2, 2006, at 11:58 AM, Alex Balk wrote:

You present some valid points there.

I think we could first obtain a value via get_nprocs() and then try to
do some intelligent parsing on our own. If we get a bad value we can
just fallback to what we got from get_nprocs().

The main issue here is indeed differences between architectures. Also,
lets not forget our platform may not be Linux and /proc may not exist at
all.


As for HT being present, if it's there htt (or was it ht?) would appear
in "flags".


--
Preston Smith  <[EMAIL PROTECTED]>
Systems Research Engineer
Rosen Center for Advanced Computing, Purdue University




Reply via email to