LinuxQuestions.org
Review your favorite Linux distribution.
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 03-06-2012, 04:43 AM   #1
heavytull
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Rep: Reputation: 0
get CPU Id number in linux


Is there any mean in linux to get the CPU ID?
I mean, for example there are several Intel pentium 4 models, all identified by a unique number e.g. 620, 630, 631, 640, 641, 650, 651, 660.
If one tries cpuz in windows he will get this info straight forward whereas /proc/cpuinfo in linux does not contain it.

Before posting this question I searched in previous posts on linuwquestions.org and I have surprisingly found very few posts related and all left unanswered.
 
Old 03-06-2012, 05:19 AM   #2
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Did ya try
Quote:
dmidecode -t 4
 
Old 03-06-2012, 05:56 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Hm not sure if thats the number you were looking for but here

Code:
processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz
.. cut rest ..
It's an E5345. An information that dmidecode did not give

Code:
Processor Information
        Socket Designation: CPU 1
        Type: Central Processor
        Family: Xeon
        Manufacturer: GenuineIntel
        ID: FB 06 00 00 01 03 00 00
        Signature: Type 0, Family 6, Model 15, Stepping 11
        Flags:
                FPU (Floating-point unit on-chip)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
        Version: Intel Xeon
        Voltage: 1.2 V
        External Clock: 266 MHz
        Max Speed: 3733 MHz
        Current Speed: 2333 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x000A
        L2 Cache Handle: 0x000B
        L3 Cache Handle: Not Provided
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
 
Old 03-06-2012, 05:56 AM   #4
heavytull
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hi2arun View Post
Did ya try
You suggestion does not give the info I'm seeking.
But have you tried it yourself on your computer before?
 
Old 03-06-2012, 06:04 AM   #5
heavytull
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
Hm not sure if thats the number you were looking for but here

Code:
processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz
.. cut rest ..
Yes E5345 seems to be the identification code I'm trying to get.
is it an extract of your /proc/cpuinfo? have you patched something?
 
Old 03-06-2012, 06:13 AM   #6
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Quote:
Originally Posted by heavytull View Post
You suggestion does not give the info I'm seeking.
But have you tried it yourself on your computer before?
Read the output of 'dmidecode -t 4' carefully. Grep for 'Version'

Code:
/usr/sbin/dmidecode -t 4 | grep Version
 
Old 03-06-2012, 06:55 AM   #7
heavytull
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Code:
# dmidecode -t 4 | grep -i "version"
        Version: Intel(R) Pentium(R) 4
 
Old 03-06-2012, 07:25 AM   #8
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
dmidecode -t 4 | grep -i version (without the quotes). Not that it seems to make any difference here.

Lshw will show you the model number, and you can also get the model number from the BIOS with most boards.

Quote:
Originally Posted by heavytull View Post
I mean, for example there are several Intel pentium 4 models, all identified by a unique number e.g. 620, 630, 631, 640, 641, 650, 651, 660.
If one tries cpuz in windows he will get this info straight forward whereas /proc/cpuinfo in linux does not contain it.
Not all Pentium 4 models had a XXX number.

Early P4s (400MHz FSB, 256k cache) used X.XGHz (eg Pentium 4 1.6GHz). Later P4s (400/533 FSB, 512kcache) used X.XGHz, with addional letters for models that had already been used (eg, Pentium 4 1.6A).

XXX model number P4s didnt appear until later, when hyperthreading, 800MHz FSB and 1MB/2MB cache models were released (and even some of them had the original X.X model number, eg Pentium 4 HT 3.0).

Last edited by cascade9; 03-06-2012 at 07:31 AM.
 
1 members found this post helpful.
Old 03-06-2012, 09:23 AM   #9
heavytull
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cascade9 View Post
dmidecode -t 4 | grep -i version (without the quotes). Not that it seems to make any difference here.
with or without quotes doesn't make any difference here since there is no special character which would need to be escaped such as a blank space in the grepped for pattern.
Code:
# dmidecode -t 4 | grep -i version  
        Version: Intel(R) Pentium(R) 4
 
Old 03-06-2012, 09:30 AM   #10
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
You've probably got an early model P4. That would explain the 'Intel Pentium 4' version.

I'd check lshw and see what it tells you about your CPU.
 
Old 03-06-2012, 11:00 AM   #11
heavytull
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cascade9 View Post
You've probably got an early model P4. That would explain the 'Intel Pentium 4' version.

I'd check lshw and see what it tells you about your CPU.
Seems good...
here is the output of lshw concerning cpu info.
-cpu
description: CPU
product: Intel(R) Pentium(R) 4 CPU 3.20GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 15.2.9
slot: PGA 478
size: 3200MHz
capacity: 3733MHz
width: 32 bits
clock: 200MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts a
cpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr
configuration: id=0
 
Old 03-06-2012, 11:20 AM   #12
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Probably you have a Pentium 4 HT 3.2 (800MHz FSB, 512k cache) or Pentium 4 HT 3.2E (800MHz FSB, 1024k cache)

http://ark.intel.com/products/27501/...he-800-MHz-FSB
http://ark.intel.com/products/27502/...he-800-MHz-FSB

If you run lshw from su/sudo, you get more information, like the cache.

"Capacity: 3733MHz" seems wrong, AFAIK there isnt a single P4 with a max clock speed of 3.733GHz. Still, lshw tends to produce odd results like that sometimes.

BTW, there is also 'lshw-gtk' which runs in a window.
 
Old 03-06-2012, 01:24 PM   #13
heavytull
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cascade9 View Post
Probably you have a Pentium 4 HT 3.2 (800MHz FSB, 512k cache) or Pentium 4 HT 3.2E (800MHz FSB, 1024k cache)

http://ark.intel.com/products/27501/...he-800-MHz-FSB
http://ark.intel.com/products/27502/...he-800-MHz-FSB

If you run lshw from su/sudo, you get more information, like the cache.

"Capacity: 3733MHz" seems wrong, AFAIK there isnt a single P4 with a max clock speed of 3.733GHz. Still, lshw tends to produce odd results like that sometimes.

BTW, there is also 'lshw-gtk' which runs in a window.
Code:
# lshw | grep cache
        *-cache:0         
             description: L1 cache
        *-cache:1
             description: L2 cache

# cat /proc/cpuinfo | grep -i "cache"
cache size      : 512 KB
cache_alignment : 128
cache size      : 512 KB
cache_alignment : 128
 
  


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
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 02:48 AM
number of cpu core manojg Linux - Software 7 06-29-2009 11:04 AM
Determining Number of Physical CPU sagarparadkar Solaris / OpenSolaris 4 01-12-2009 10:08 PM
how to find number of cores in CPU narensr Linux - Hardware 5 08-24-2006 01:09 PM
Get CPU Usage as a number 3saul Linux - Software 1 01-06-2006 01:57 AM

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

All times are GMT -5. The time now is 10:24 AM.

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