Fedora Linux Support Community & Resources Center
  #1  
Old 11th October 2017, 01:22 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,421
linuxfedorafirefox
Command to find cpu socket type

Friends,

Is there a command in Linux that one can use to identify the socket type the processor uses in a PC? I tried the following commands, but did not get the desired result. Thanks.

My processor is Intel Core i3-3220 and it is socket FCLGA1155.

https://ark.intel.com/products/65693...Cache-3_30-GHz

Code:
========================================================================
[root@localhost john]# inxi 
CPU~Dual core Intel Core i3-3220 (-HT-MCP-) speed/max~3292/3300 MHz Kernel~4.13.5-100.fc25.i686+PAE i686 Up~7 min Mem~778.2/3930.3MB HDD~500.1GB(50.1% used) Procs~210 Client~Shell inxi~2.3.40  
[root@localhost john]# inxi |grep -i socket
[root@localhost john]# 
========================================================================
[root@localhost john]# dmidecode |grep -i socket
BIOS ROM is socketed
Socket Designation: CPU Internal L1
Configuration: Enabled, Not Socketed, Level 1
Socket Designation: CPU Internal L2
Configuration: Enabled, Not Socketed, Level 2
Socket Designation: CPU Internal L3
Configuration: Enabled, Not Socketed, Level 3
Socket Designation: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
[root@localhost john]# history |grep -i socket
========================================================================
[root@localhost john]# cpuid |grep -i socket
[root@localhost john]# 
========================================================================
[root@localhost john]# cat /proc/cpuinfo |grep -i socket
[root@localhost john]# 
========================================================================
[root@localhost john]# lscpu|grep -i socket
Core(s) per socket:    2
Socket(s):             1
[root@localhost john]# 
========================================================================
[root@localhost john]# lshw|grep -i socket
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
[root@localhost john]# 
========================================================================
[root@localhost john]# inxi -Fx|grep -i socket
[root@localhost john]# 
========================================================================
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo
Reply With Quote
  #2  
Old 12th October 2017, 10:07 AM
fedayinn Offline
Registered User
 
Join Date: Feb 2016
Location: here
Posts: 15
linuxfedorafirefox
Re: Command to find cpu socket type

x86info -a

http://codemonkey.org.uk/projects/x86info/
Reply With Quote
  #3  
Old 12th October 2017, 11:13 AM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 509
windows_7chrome
Re: Command to find cpu socket type

x86info needs installing and doesn't work for me, "dmidecode -t 4" works though.
Reply With Quote
  #4  
Old 12th October 2017, 12:30 PM
nsnbm's Avatar
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,596
linuxfedorafirefox
Re: Command to find cpu socket type

But does dmidecode give the socket type such as FCLGA1155?
Code:
[root@owl ~]# dmidecode -t 4
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0040, DMI type 4, 42 bytes
Processor Information
        Socket Designation: SOCKET 0
        Type: Central Processor
        Family: Core i3
        Manufacturer: Intel
        ID: C3 06 03 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 60, Stepping 3
        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 (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz
        Voltage: 1.1 V
        External Clock: 100 MHz
        Max Speed: 7000 MHz
        Current Speed: 3600 MHz
        Status: Populated, Enabled
        Upgrade: Other
        L1 Cache Handle: 0x0004
        L2 Cache Handle: 0x0005
        L3 Cache Handle: 0x0006
        Serial Number: Not Specified
        Asset Tag: Fill By OEM
        Part Number: Fill By OEM
        Core Count: 2
        Core Enabled: 1
        Thread Count: 2
        Characteristics:
                64-bit capable
Can't see it.
x86info wouldn't complete make for me. It said it couldn't find pci/pci.h.
Reply With Quote
  #5  
Old 12th October 2017, 01:40 PM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 509
windows_7chrome
Re: Command to find cpu socket type

Odd, mine tells me my Intel core i7 is using an LGA 1150 socket, in the "Upgrade" field though...

x86info is in dnf, so you can "dnf install x86info". I get an "operation not permitted" when trying to run it though (even as root).
Reply With Quote
  #6  
Old 12th October 2017, 08:09 PM
tryfedoraa Offline
Registered User
 
Join Date: May 2017
Location: www
Posts: 129
windows_98_nt_2000chrome
Re: Command to find cpu socket type

You could try:

Code:
lshw -C CPU

Or some other utility's that show CPU information.

Code:
hardinfo
Code:
hwloc
Code:
xsos
Reply With Quote
  #7  
Old 12th October 2017, 10:19 PM
donatom Offline
Registered User
 
Join Date: Jan 2013
Location: Ventura, CA
Posts: 137
linuxfirefox
Re: Command to find cpu socket type

"lshw -C -CPU" doesn't show the socket type, while " dmidecode -t 4" does
Reply With Quote
  #8  
Old 12th October 2017, 10:28 PM
FFedora Offline
Registered User
 
Join Date: Jul 2017
Location: MX
Posts: 87
linuxfedorafirefox
Re: Command to find cpu socket type

8 commands to check cpu information on Linux



http://www.binarytides.com/linux-cpu-information/
__________________
FFedora
Reply With Quote
  #9  
Old 12th October 2017, 10:58 PM
nsnbm's Avatar
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,596
linuxfedorafirefox
Re: Command to find cpu socket type

Quote:
Originally Posted by HaydnH View Post
Odd, mine tells me my Intel core i7 is using an LGA 1150 socket, in the "Upgrade" field though...

x86info is in dnf, so you can "dnf install x86info". I get an "operation not permitted" when trying to run it though (even as root).
My machines don't seem as co-operative. Two computers I've tried with dmidecode just show "other" in the upgrade field. I installed the x86info rpm, which does seem to work without error, but only get:
Quote:
CPU Model (x86info's best guess): Unknown model.
lshw -C CPU just yields: "description: CPU" but no socket type.
Reply With Quote
  #10  
Old 13th October 2017, 01:46 AM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 6,645
linuxfedorafirefox
Re: Command to find cpu socket type

My CPU (see specs in my sig) is a Socket AM2 type. Both dmidecode and x86info work for me in F26:
Code:
# dmidecode -t processor | grep -i socket
        Socket Designation: Socket M2
        Upgrade: Socket 940

# x86info -a | grep -i socket
Connector type: Socket AM2
__________________
OS: Fedora 26 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 7GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
  #11  
Old 13th October 2017, 03:15 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 7,131
linuxfedorafirefox
Re: Command to find cpu socket type

Quote:
Originally Posted by nsnbm View Post
My machines don't seem as co-operative. Two computers I've tried with dmidecode just show "other" in the upgrade field. I installed the x86info rpm, which does seem to work without error, but only get:


lshw -C CPU just yields: "description: CPU" but no socket type.

It works here, the first one is a Xeon E5-2609, the second a Ivy bridge (i5-3210M) laptop
Code:
lshw -C CPU | grep slot

slot: LGA2011
Code:
lshw -C CPU | grep slot
       slot: Socket rPGA988B
Reply With Quote
  #12  
Old 13th October 2017, 06:34 AM
donatom Offline
Registered User
 
Join Date: Jan 2013
Location: Ventura, CA
Posts: 137
linuxfirefox
Re: Command to find cpu socket type

"lshw -C CPU | grep slot" doesn't work on my Intel i5:

Code:
 [donatom@archlinux Desktop]$ sudo lshw -C CPU | grep slot
       slot: CPU 1
I will try it on my Intel i3 laptop later.
Reply With Quote
  #13  
Old 13th October 2017, 07:50 AM
nsnbm's Avatar
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,596
linuxfedorafirefox
Re: Command to find cpu socket type

Thanks RupertPupkin and marko, but, alas, looks like my box can't do it:
Code:
[root@owl ~]# dmidecode -t processor | grep -i socket
        Socket Designation: SOCKET 0
[root@owl ~]# lshw -C CPU | grep slot
       slot: SOCKET 0
It's an i3 machine. I might chat with the box builder and ask him what he put in there.
Reply With Quote
  #14  
Old 14th October 2017, 12:38 AM
donatom Offline
Registered User
 
Join Date: Jan 2013
Location: Ventura, CA
Posts: 137
linuxfedorafirefox
Re: Command to find cpu socket type

Again, dmidecode works on my hp pavilion i3, but lshw gives me incomplete information.

Code:
]# dmidecode -t processor | grep -i socket
	Socket Designation: U3E1
	Upgrade: Socket rPGA988B
[root@HP Desktop]# lshw -C CPU | grep slot
bash: lshw: command not found...
Install package 'lshw' to provide command 'lshw'? [N/y] y

Proceed with changes? [N/y] y

       slot: U3E1
It is a bit puzzling that these two commands seem to work on some systems, but not on others.
Reply With Quote
  #15  
Old 14th October 2017, 01:37 AM
nsnbm's Avatar
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,596
linuxfedorafirefox
Re: Command to find cpu socket type

One issue here is the way in which both dmidecode and lshw get their information. Basically, as I understand it, they read it from the system manager BIOS which constructs a table from which the commands read the information. The commands don't access the hardware itself by probing for it to get the info. So, there's a layer of software between the command and the hardware that I think needs to be penetrated to get to the bottom of it, but I can't say how to do that. It may be an issue of different capabilities of system management BIOSes. Dunno.
Reply With Quote
Reply

Tags
command , cpu , socket , type

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's a socket and how do I find out why mine don't work PatMcLJr Using Fedora 0 1st August 2007 04:19 PM
command to query fs type of all partitions tlviewer Using Fedora 3 21st July 2006 12:54 PM
mysql can't find the correct socket jonhumphrey Installation, Upgrades and Live Media 2 1st March 2006 06:23 PM


Current GMT-time: 04:00 (Tuesday, 24-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat