Hi Nadeem,

On Thu, 13 Apr 2006 16:02:08 +0530, "Nadeem M. Khan"
<[EMAIL PROTECTED]> said:
> Hi.
> 
> How do I determine the number of physical processors installed on my
> server from within the OS?
[snip]
> Surely there must be a way to find the correct number of
> physical CPUs? Something like..
> No of CPUs: 8 ( 4 Physical )


You might want to use ``lshw'' [0] Just apt-get it in debian.
This is what it gives on my hyperthreading processor:

     *-cpu
          product: Intel(R) Pentium(R) 4 CPU 3.20GHz
          physical id: 1
          bus info: [EMAIL PROTECTED]
[snip]
          configuration: id=1
        *-logicalcpu:0
             description: Logical CPU
             physical id: 1.1
             width: 32 bits
             capabilities: logical
        *-logicalcpu:1
             description: Logical CPU
             physical id: 1.2
             width: 32 bits
             capabilities: logical

And on a real SMP server it clearly shows  *-cpu:0, *-cpu:1

[0] http://packages.debian.org/unstable/utils/lshw

Anurag
-- 
      __                                  __
gnu /noo/ n. Ox like antelope; (abbr.) /gnoo/ n.
    (recursive acronym) Gnu's Not Unix.

-- 
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are


-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to