LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-23-2008, 07:08 AM   #1
linuxbeginner0
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Rep: Reputation: 0
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
 
Old 01-23-2008, 07:34 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Did you look at the "cpu cores" line of cpuinfo? That directly shows the core count.
 
Old 01-23-2008, 07:35 AM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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/
 
Old 01-23-2008, 08:24 AM   #4
linuxbeginner0
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Matir View Post
Did you look at the "cpu cores" line of cpuinfo? That directly shows the core count.
There is now line matching "cpu cores".
 
Old 01-23-2008, 08:26 AM   #5
linuxbeginner0
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Lenard View Post
Try using; dmidecode
It is displaying a lot of info :-) What should i look for?
 
Old 01-23-2008, 08:34 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
Old 01-23-2008, 08:39 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:
Originally Posted by linuxbeginner0 View Post
It is displaying a lot of info :-) What should i look for?
Look at the Processor Information portion.
 
Old 01-23-2008, 08:42 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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

Last edited by farslayer; 01-23-2008 at 08:45 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cores vs. clockspeed jhwilliams Linux - Hardware 26 10-21-2007 09:35 AM
Software and CPU Cores DIGITAL39 Linux - Software 8 10-10-2007 02:47 AM
linux on multiple cores reslowgr Linux - Server 1 01-20-2007 03:35 PM
Cores on Fedora jonty_11 Fedora 2 11-05-2004 09:25 AM
Question : catching cores Saeven Linux - General 2 06-13-2002 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration