RE: Detecting number of Physical CPUs in Intel Hyperthreaded CPU systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>
processors=`egrep -c ^cpu[0-9]+ /proc/stat || :`
>>>
	I don't believe this works.  It simply tells me how many logical
processors I have on my machine, i.e. it yields 4 opposed to 2.

	Does anyone know the current state of hyper-threading support for
Linux?  I've heard that kernel 2.4.19 will contain some extra patches to
help with hyper-threading support.  Currently we are testing kernels 2.4.7,
2.4.16, and 2.4.18 with hyper-threading enabled.  I've noticed that
performance is horrible for 2.4.7, and it appears to be poor for 2.4.16 and
2.4.18 too.  Are there any issues that exist with correctly enabling
hyper-threading?

	Thanks,
	John



-----Original Message-----
From: Matt Wilson [mailto:msw@redhat.com]
Sent: Sunday, May 19, 2002 1:25 AM
To: redhat-devel-list@redhat.com
Subject: Re: Detecting number of Physical CPUs in Intel Hyperthreaded
CPU systems


To really do this you need ACPI.  Outside of ACPI there's no way to
tell if the logical CPUs are coming from one physical processor or
not.

Cheers,

Matt

On Sat, May 18, 2002 at 07:15:54PM -0700, Ken Sheppard wrote:
> 
> Does anyone know how I can determine the number of physical processors
> on a machine with Intel Hyperthreaded CPUs? I have code from Intel which
> will report the number of physical CPUs on a windows system. It uses the
> Win32 process affinity stuff to issue commands on specific CPUs so it
> isn't portable to Linux. I was hoping I could simply read /proc/cpuinfo.
> The /proc/cpuinfo I looked at on a 2.4.? machine didn't appear to have
> enough information.



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux