LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   No of cores in Xeon (https://www.linuxquestions.org/questions/linux-hardware-18/no-of-cores-in-xeon-615713/)

linuxbeginner0 01-23-2008 07:08 AM

No of cores in Xeon
 
How can I know that how many cores are in processor?
I executed the following command
Code:

cat /proc/cpuinfo
And the output was something like this. Can someone tell how many cores are there?
Code:

processor      : 0
vendor_id      : GenuineIntel
cpu family      : 15
model          : 4
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 1
cpu MHz        : 2800.244
cache size      : 1024 KB
.
.
.
.

processor      : 1
vendor_id      : GenuineIntel
cpu family      : 15
model          : 4
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 1
cpu MHz        : 2800.244
cache size      : 1024 KB
.
.
.
.

processor      : 2
vendor_id      : GenuineIntel
cpu family      : 15
model          : 4
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 1
cpu MHz        : 2800.244
cache size      : 1024 KB
.
.
.
.
processor      : 3
vendor_id      : GenuineIntel
cpu family      : 15
model          : 4
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 1
cpu MHz        : 2800.244
cache size      : 1024 KB


Matir 01-23-2008 07:34 AM

Did you look at the "cpu cores" line of cpuinfo? That directly shows the core count.

Lenard 01-23-2008 07:35 AM

Try using; dmidecode
If your lucky then is is available as part of the Linux installation, if not then visit;

http://freshmeat.net/projects/dmidecode/

linuxbeginner0 01-23-2008 08:24 AM

Quote:

Originally Posted by Matir (Post 3032436)
Did you look at the "cpu cores" line of cpuinfo? That directly shows the core count.

There is now line matching "cpu cores".

linuxbeginner0 01-23-2008 08:26 AM

Quote:

Originally Posted by Lenard (Post 3032442)
Try using; dmidecode

It is displaying a lot of info :-) What should i look for?

Matir 01-23-2008 08:34 AM

Odd, my CPU has:
core id : 1
cpu cores : 2

You should see a phyiscal id line in there... if so, count the number of cpus listed with the same phyiscal id, and that is the number of cores.

Lenard 01-23-2008 08:39 AM

Quote:

Originally Posted by linuxbeginner0 (Post 3032513)
It is displaying a lot of info :-) What should i look for?

Look at the Processor Information portion.

farslayer 01-23-2008 08:42 AM

Could also use lshw -C processor

Code:

it-etch:~# lshw -C processor
  *-cpu
      description: CPU
      product: Intel(R) Pentium(R) D CPU 2.80GHz
      vendor: Intel Corp.
      physical id: 400
      bus info: cpu@0
      version: 15.4.7
      serial: 0000-0F47-0000-0000-0000-0000
      slot: Microprocessor
      size: 2800MHz
      width: 64 bits
      clock: 800MHz
      capabilities: fpu fpu_exception wp 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 pbe nx x86-64 constant_tsc pni monitor ds_cpl cid cx16 xtpr lahf_lm
      configuration: id=1
    *-logicalcpu:0
          description: Logical CPU
          physical id: 1.1
          width: 64 bits
          capabilities: logical
    *-logicalcpu:1
          description: Logical CPU
          physical id: 1.2
          width: 64 bits
          capabilities: logical

As you can see from the output there is one physical processor identified as CPU@0
and two logical processors (cores) identified as logicalcpu:0 & logicalcpu:1

so if you had two CPU's with two cores it would be fairly easy to see with this output.


dmidecode does not appear to provide all the same info.. kinda odd since lshw uses dmidecode as one source to gather info.

Code:

it-etch:~# dmidecode -t processor
# dmidecode 2.8
SMBIOS 2.3 present.

Handle 0x0400, DMI type 4, 40 bytes
Processor Information
        Socket Designation: Microprocessor
        Type: Central Processor
        Family: Pentium 4
        Manufacturer: Intel
        ID: 47 0F 00 00 FF FB EB BF
        Signature: Type 0, Family 15, Model 4, Stepping 7
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (Fast floating-point save and restore)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Hyper-threading technology)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Not Specified
        Voltage: 1.8 V
        External Clock: 800 MHz
        Max Speed: 5200 MHz
        Current Speed: 2800 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0700
        L2 Cache Handle: 0x0701
        L3 Cache Handle: Not Provided
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified



All times are GMT -5. The time now is 07:22 PM.