Re: How to get number of physical CPU in linux from user space?

From: Gianni Tedesco (gianni@ecsc.co.uk)
Date: Fri Oct 25 2002 - 03:26:39 EST


On Fri, 2002-10-25 at 00:02, chrisl@vmware.com wrote:
> It seems that /proc/cpuinfo will return the number of logical CPU.
> If the machine has Intel Hyper-Thread enabled, that number is bigger
> than physical CPU number. Usually twice as big.
>
> My question is, what is the reliable way for user space program
> to detect the number of physical CPU in the current machine?

I believe there was talk about representing the CPUs in driverfs
somehow. Not sure of the details though...

-- 
// Gianni Tedesco (gianni at ecsc dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D


- 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 : Thu Oct 31 2002 - 22:00:26 EST