Re: Detecting number of Physical CPUs in Intel Hyperthreaded CPUsystems

2002-05-18 Thread René Møller Fonseca
Works for 2.4; I have not tested with a 2.2 kernel. René Ken Sheppard wrote: > Thanks for the quick reply. Will this solution work for 2.2 or 2.4 > kernels? > > Thanks, > > Ken > > >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:redhat-devel-list- >>[EMAIL PROTECTED]] On Beha

Re: Detecting number of Physical CPUs in Intel Hyperthreaded CPUsystems

2002-05-18 Thread René Møller Fonseca
You can do something like this from the shell: processors=`egrep -c ^cpu[0-9]+ /proc/stat || :` René 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 o