LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2011, 09:47 AM   #1
Murphi
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Number of Logic processor


If I have the following information (The label processor starts from 0 to 7)

Code:
processor       : 5
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      :                Intel(R) Xeon(TM) MP CPU 3.00GHz
stepping        : 1
cpu MHz         : 3000.428
cache size      : 8192 KB
physical id     : 3
siblings        : 2
core id         : 3
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
bogomips        : 5999.70
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual
power management:
Is what we can deduce the number of logical processor and the number of core logic.

Thanks
 
Old 08-29-2011, 09:57 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

Can you post the output of:
Code:
cat /proc/cpuinfo | egrep "processor|physical id|siblings|core id|cpu cores|^$"
The above should give you info about physical cpu and cores and logical cores.

Hope this helps.

Last edited by druuna; 08-29-2011 at 10:10 AM. Reason: Added extra search entry
 
Old 08-30-2011, 12:33 AM   #3
Murphi
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Hi,

Can you post the output of:
Code:
cat /proc/cpuinfo | egrep "processor|physical id|siblings|core id|cpu cores|^$"
The above should give you info about physical cpu and cores and logical cores.

Hope this helps.
This is the result:

Code:
processor       : 0
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1

processor       : 1
physical id     : 3
siblings        : 2
core id         : 3
cpu cores       : 1

processor       : 2
physical id     : 7
siblings        : 2
core id         : 7
cpu cores       : 1

processor       : 3
physical id     : 4
siblings        : 2
core id         : 4
cpu cores       : 1

processor       : 4
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1

processor       : 5
physical id     : 3
siblings        : 2
core id         : 3
cpu cores       : 1

processor       : 6
physical id     : 7
siblings        : 2
core id         : 7
cpu cores       : 1

processor       : 7
physical id     : 4
siblings        : 2
core id         : 4
cpu cores       : 1
Thanks
 
Old 08-30-2011, 03:03 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

The easiest way to see how many logical processor's/core's are available: Look at the processor entry and look for the highest number.

A more detailed look:

- 4 Physical CPU's - count the unique physical id's
- 4 Physical core's, one core per physical CPU - count the unique core id's
- 2 Siblings per physical CPU (2 logical core's per CPU) - siblings shows the amount of logical core's per cpu

8 Logical core's/processor's total.

Hope this helps.
 
1 members found this post helpful.
Old 08-30-2011, 10:44 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
Also worth a look, look at your processor's exact type and consult the data-sheet from the manufacturer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Need help in identifying the number of cores in each processor running srajeshkumar Linux - Server 7 12-23-2010 08:52 AM
confused in processor number in linux duyuyang Linux - Software 5 09-23-2010 06:55 PM
How to get processor model number out of the proc/cpuinfo? KnoeperKalle Linux - Hardware 5 08-04-2010 09:34 AM
Find number of cores in my processor ttsdinesh Linux - Newbie 8 12-02-2009 06:16 AM
LSI Logic / Symbios Logic 53c875 (rev 14) -> HP Storageworks 1/8 G2 gileravxr Linux - Hardware 0 07-21-2009 04:45 AM


All times are GMT -5. The time now is 11:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration