LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2010, 07:42 PM   #1
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Rep: Reputation: 16
confused in processor number in linux


My box is using intel i7 with hyperthreading enabled. So it has 8 logical processors. I am confused about their numbering.

I checked the /proc/cpuinfo file, the processor id, core id, and siblings do not AT ALL give any information about the REAL topology of the processors (e.g., the processor ids range from 0 to 7, and all the core ids are 0).

Can anybody explain this to me? How can I get the which processor and which processor are on the same hardware core?

BTW., I am using OpenSUSE 11.3.

Thanks,
Shawn

Last edited by duyuyang; 09-22-2010 at 07:48 PM.
 
Old 09-22-2010, 10:59 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi,

The i7 is a quad core processor with HT, so I think /proc/cpuinfo should show:

Processor: [0,1,2,3,4,5,6,7]
Physical id: 0
Core id: [0,2,4,6]
cores: 4
siblings: 8

Physical id represents the actual cpu package, so if they all show '0' then they're all on the same hardware.

So processor 0 and 1 will have core id 0, indicating that they are the same core, but showing up as 2 processors because HT is enabled

got it ?

hth
 
Old 09-23-2010, 04:25 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Pretty close - mine shows:
Processor:[0,1,2,3,4,5,6,7]
Core id:[0,1,2,3,0,1,2,3]
 
Old 09-23-2010, 08:12 AM   #4
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
Pretty close - mine shows:
Processor:[0,1,2,3,4,5,6,7]
Core id:[0,1,2,3,0,1,2,3]
Thanks. But I was asking why in my case the /proc/cpuinfo is weird. Because it shows that (with ht):

Processor:[0,1,2,3,4,5,6,7]
Processor ID:[0,1,2,3,4,5,6,7]
Core id:[0,0,0,0,0,0,0,0]
Core:[1,1,1,1,1,1,1,1]
Sibling:[1,1,1,1,1,1,1,1]

And I just disabled the ht, and now it shows:
Processor:[0,1,2,3]
Processor ID:[0,1,2,3]
Core id:[0,0,0,0]
Cores:[1,1,1,1]
Siblings:[1,1,1,1]

What is the problem? My kernel has wrong config? Thanks.

Shawn
 
Old 09-23-2010, 08:21 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I don't see that at all - what distro, what kernel ?. Attach the full /proc/cpuinfo.
 
Old 09-23-2010, 06:55 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
There have been problems with /proc/cpuinfo misreporting what's there, have you tried x86info ?
 
  


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
[SOLVED] Error inserting processor (lib/modules 2.6.26-2-686/kernaldrivers/acpi/processor EDDY1 Linux - Newbie 3 08-29-2010 01:08 AM
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
I'm confused again, Is an Arm processor the same as a MIPS processor? MrUmunhum Linux - Hardware 3 09-24-2009 04:47 AM
Installing Linux on a dual processor machine (only one processor detected) rocordial Linux - Hardware 1 11-27-2004 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 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