PDA

View Full Version : Command to find cpu socket type



tech291083
11th October 2017, 01:22 PM
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/Intel-Core-i3-3220-Processor-3M-Cache-3_30-GHz



================================================== ======================
[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]#
================================================== ======================

fedayinn
12th October 2017, 10:07 AM
x86info -a

http://codemonkey.org.uk/projects/x86info/ ;)

HaydnH
12th October 2017, 11:13 AM
x86info needs installing and doesn't work for me, "dmidecode -t 4" works though.

nsnbm
12th October 2017, 12:30 PM
But does dmidecode give the socket type such as FCLGA1155?


[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.

HaydnH
12th October 2017, 01:40 PM
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).

tryfedoraa
12th October 2017, 08:09 PM
You could try:


lshw -C CPU


Or some other utility's that show CPU information.


hardinfo


hwloc


xsos

donatom
12th October 2017, 10:19 PM
"lshw -C -CPU" doesn't show the socket type, while " dmidecode -t 4" does

FFedora
12th October 2017, 10:28 PM
8 commands to check cpu information on Linux



http://www.binarytides.com/linux-cpu-information/

nsnbm
12th October 2017, 10:58 PM
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:


CPU Model (x86info's best guess): Unknown model.


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

RupertPupkin
13th October 2017, 01:46 AM
My CPU (see specs in my sig) is a Socket AM2 type. Both dmidecode and x86info work for me in F26:

# dmidecode -t processor | grep -i socket
Socket Designation: Socket M2
Upgrade: Socket 940

# x86info -a | grep -i socket
Connector type: Socket AM2

marko
13th October 2017, 03:15 AM
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


lshw -C CPU | grep slot

slot: LGA2011
lshw -C CPU | grep slot
slot: Socket rPGA988B

donatom
13th October 2017, 06:34 AM
"lshw -C CPU | grep slot" doesn't work on my Intel i5:


[donatom@archlinux Desktop]$ sudo lshw -C CPU | grep slot
slot: CPU 1

I will try it on my Intel i3 laptop later.

nsnbm
13th October 2017, 07:50 AM
Thanks RupertPupkin and marko, but, alas, looks like my box can't do it:


[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.

donatom
14th October 2017, 12:38 AM
Again, dmidecode works on my hp pavilion i3, but lshw gives me incomplete information.


]# 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.

nsnbm
14th October 2017, 01:37 AM
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.

tech291083
20th October 2017, 06:57 AM
x86info -a

I installed x86info and executed the command, but still there is no mention of socket type in the command output. thanks,



[james@localhost ~]$ x86info
x86info v1.30. Dave Jones 2001-2011
Feedback to <davej@redhat.com>.

Found 4 identical CPUs
Extended Family: 0 Extended Model: 3 Family: 6 Model: 58 Stepping: 9
Type: 0 (Original OEM)
CPU Model (x86info's best guess): Unknown model.
Processor name string (BIOS programmed): Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

Total processor threads: 4
This system has 1 dual-core processor with hyper-threading (2 threads per core) running at an estimated 3.30GHz
[james@localhost ~]$


---------- Post added at 10:57 PM ---------- Previous post was at 10:54 PM ----------



x86info needs installing and doesn't work for me, "dmidecode -t 4" works though


I executed dmidecode command, but still there is no mention of socket type in the command output. thanks,



[root@localhost james]# dmidecode -t 4
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0043, DMI type 4, 42 bytes
Processor Information
Socket Designation: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
Type: Central Processor
Family: Core i7
Manufacturer: Intel
ID: A9 06 03 00 FF FB EB BF
Signature: Type 0, Family 6, Model 58, Stepping 9
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-3220 CPU @ 3.30GHz
Voltage: 1.0 V
External Clock: 100 MHz
Max Speed: 7000 MHz
Current Speed: 3300 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
[root@localhost james]#




[root@localhost james]# dmidecode -t 4|grep -i socket
Socket Designation: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
[root@localhost james]#




[root@localhost james]# 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 james]#

tech291083
20th October 2017, 07:05 AM
lshw -C CPU just yields: "description: CPU" but no socket type.


I agree with you, thanks.



[root@localhost james]# lshw -C CPU
*-cpu:0
description: CPU
product: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
vendor: Intel Corp.
physical id: 43
bus info: cpu@0
version: 6.10.9
serial: 0003-06A9-0000-0000-0000-0000
slot: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
size: 1634MHz
capacity: 3300MHz
width: 64 bits
clock: 100MHz
capabilities: x86-64 boot 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 rdtscp constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm cpuid_fault epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm arat pln pts cpufreq
configuration: cores=2 enabledcores=1 id=0 threads=2
*-logicalcpu:0
description: Logical CPU
physical id: 0.1
width: 64 bits
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 0.2
width: 64 bits
capabilities: logical
*-logicalcpu:2
description: Logical CPU
physical id: 0.3
width: 64 bits
capabilities: logical
*-logicalcpu:3
description: Logical CPU
physical id: 0.4
width: 64 bits
capabilities: logical
*-logicalcpu:4
description: Logical CPU
physical id: 0.5
width: 64 bits
capabilities: logical
*-logicalcpu:5
description: Logical CPU
physical id: 0.6
width: 64 bits
capabilities: logical
*-logicalcpu:6
description: Logical CPU
physical id: 0.7
width: 64 bits
capabilities: logical
*-logicalcpu:7
description: Logical CPU
physical id: 0.8
width: 64 bits
capabilities: logical
*-logicalcpu:8
description: Logical CPU
physical id: 0.9
width: 64 bits
capabilities: logical
*-logicalcpu:9
description: Logical CPU
physical id: 0.a
width: 64 bits
capabilities: logical
*-logicalcpu:10
description: Logical CPU
physical id: 0.b
width: 64 bits
capabilities: logical
*-logicalcpu:11
description: Logical CPU
physical id: 0.c
width: 64 bits
capabilities: logical
*-logicalcpu:12
description: Logical CPU
physical id: 0.d
width: 64 bits
capabilities: logical
*-logicalcpu:13
description: Logical CPU
physical id: 0.e
width: 64 bits
capabilities: logical
*-logicalcpu:14
description: Logical CPU
physical id: 0.f
width: 64 bits
capabilities: logical
*-logicalcpu:15
description: Logical CPU
physical id: 0.10
width: 64 bits
capabilities: logical
*-cpu:1
physical id: 1
bus info: cpu@1
version: 6.10.9
serial: 0003-06A9-0000-0000-0000-0000
size: 1659MHz
capacity: 3300MHz
capabilities: vmx ht cpufreq
configuration: id=2
*-logicalcpu:0
description: Logical CPU
physical id: 2.1
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 2.2
capabilities: logical
*-logicalcpu:2
description: Logical CPU
physical id: 2.3
capabilities: logical
*-logicalcpu:3
description: Logical CPU
physical id: 2.4
capabilities: logical
*-logicalcpu:4
description: Logical CPU
physical id: 2.5
capabilities: logical
*-logicalcpu:5
description: Logical CPU
physical id: 2.6
capabilities: logical
*-logicalcpu:6
description: Logical CPU
physical id: 2.7
capabilities: logical
*-logicalcpu:7
description: Logical CPU
physical id: 2.8
capabilities: logical
*-logicalcpu:8
description: Logical CPU
physical id: 2.9
capabilities: logical
*-logicalcpu:9
description: Logical CPU
physical id: 2.a
capabilities: logical
*-logicalcpu:10
description: Logical CPU
physical id: 2.b
capabilities: logical
*-logicalcpu:11
description: Logical CPU
physical id: 2.c
capabilities: logical
*-logicalcpu:12
description: Logical CPU
physical id: 2.d
capabilities: logical
*-logicalcpu:13
description: Logical CPU
physical id: 2.e
capabilities: logical
*-logicalcpu:14
description: Logical CPU
physical id: 2.f
capabilities: logical
*-logicalcpu:15
description: Logical CPU
physical id: 2.10
capabilities: logical
[root@localhost james]#




[root@localhost james]# lshw -C CPU|grep -i socket
[root@localhost james]#

tech291083
20th October 2017, 07:36 AM
lshw -C CPU




[root@localhost james]# lshw -C CPU
*-cpu:0
description: CPU
product: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
vendor: Intel Corp.
physical id: 43
bus info: cpu@0
version: 6.10.9
serial: 0003-06A9-0000-0000-0000-0000
slot: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
size: 1746MHz
capacity: 3300MHz
width: 64 bits
clock: 100MHz
capabilities: x86-64 boot 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 rdtscp constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm cpuid_fault epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm arat pln pts cpufreq
configuration: cores=2 enabledcores=1 id=0 threads=2
*-logicalcpu:0
description: Logical CPU
physical id: 0.1
width: 64 bits
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 0.2
width: 64 bits
capabilities: logical
*-logicalcpu:2
description: Logical CPU
physical id: 0.3
width: 64 bits
capabilities: logical
*-logicalcpu:3
description: Logical CPU
physical id: 0.4
width: 64 bits
capabilities: logical
*-logicalcpu:4
description: Logical CPU
physical id: 0.5
width: 64 bits
capabilities: logical
*-logicalcpu:5
description: Logical CPU
physical id: 0.6
width: 64 bits
capabilities: logical
*-logicalcpu:6
description: Logical CPU
physical id: 0.7
width: 64 bits
capabilities: logical
*-logicalcpu:7
description: Logical CPU
physical id: 0.8
width: 64 bits
capabilities: logical
*-logicalcpu:8
description: Logical CPU
physical id: 0.9
width: 64 bits
capabilities: logical
*-logicalcpu:9
description: Logical CPU
physical id: 0.a
width: 64 bits
capabilities: logical
*-logicalcpu:10
description: Logical CPU
physical id: 0.b
width: 64 bits
capabilities: logical
*-logicalcpu:11
description: Logical CPU
physical id: 0.c
width: 64 bits
capabilities: logical
*-logicalcpu:12
description: Logical CPU
physical id: 0.d
width: 64 bits
capabilities: logical
*-logicalcpu:13
description: Logical CPU
physical id: 0.e
width: 64 bits
capabilities: logical
*-logicalcpu:14
description: Logical CPU
physical id: 0.f
width: 64 bits
capabilities: logical
*-logicalcpu:15
description: Logical CPU
physical id: 0.10
width: 64 bits
capabilities: logical
*-cpu:1
physical id: 1
bus info: cpu@1
version: 6.10.9
serial: 0003-06A9-0000-0000-0000-0000
size: 3198MHz
capacity: 3300MHz
capabilities: vmx ht cpufreq
configuration: id=2
*-logicalcpu:0
description: Logical CPU
physical id: 2.1
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 2.2
capabilities: logical
*-logicalcpu:2
description: Logical CPU
physical id: 2.3
capabilities: logical
*-logicalcpu:3
description: Logical CPU
physical id: 2.4
capabilities: logical
*-logicalcpu:4
description: Logical CPU
physical id: 2.5
capabilities: logical
*-logicalcpu:5
description: Logical CPU
physical id: 2.6
capabilities: logical
*-logicalcpu:6
description: Logical CPU
physical id: 2.7
capabilities: logical
*-logicalcpu:7
description: Logical CPU
physical id: 2.8
capabilities: logical
*-logicalcpu:8
description: Logical CPU
physical id: 2.9
capabilities: logical
*-logicalcpu:9
description: Logical CPU
physical id: 2.a
capabilities: logical
*-logicalcpu:10
description: Logical CPU
physical id: 2.b
capabilities: logical
*-logicalcpu:11
description: Logical CPU
physical id: 2.c
capabilities: logical
*-logicalcpu:12
description: Logical CPU
physical id: 2.d
capabilities: logical
*-logicalcpu:13
description: Logical CPU
physical id: 2.e
capabilities: logical
*-logicalcpu:14
description: Logical CPU
physical id: 2.f
capabilities: logical
*-logicalcpu:15
description: Logical CPU
physical id: 2.10
capabilities: logical
[root@localhost james]#






hardinfo




[root@localhost james]# hardinfo
bash: hardinfo: command not found
[root@localhost james]#






hwloc





[root@localhost james]# hw
hwclock hwloc-assembler-remote hwloc-compress-dir hwloc-distrib hwloc-ls hwmixvolume
hwloc-annotate hwloc-bind hwloc-diff hwloc-gather-topology hwloc-patch
hwloc-assembler hwloc-calc hwloc-distances hwloc-info hwloc-ps
[root@localhost james]#


Which one to use?




xsos





[root@localhost james]# xsos
bash: xsos: command not found
[root@localhost james]#
[root@localhost james]# dnf install xsos
Last metadata expiration check: 0:43:33 ago on Fri Oct 20 11:09:32 2017.
No package xsos available.
Error: Unable to find a match.
[root@localhost james]#



Tryfedoraa,

You have given so much help, i can't thank you enough.

---------- Post added at 11:28 PM ---------- Previous post was at 11:23 PM ----------


My CPU (see specs in my sig) is a Socket AM2 type. Both dmidecode and x86info work for me in F26:

# dmidecode -t processor | grep -i socket
Socket Designation: Socket M2
Upgrade: Socket 940

# x86info -a | grep -i socket
Connector type: Socket AM2



[root@localhost james]# dmidecode -t processor | grep -i socket
Socket Designation: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
[root@localhost james]#
[root@localhost james]# x86info -a | grep -i socket
[root@localhost james]#


Thanks.

---------- Post added at 11:31 PM ---------- Previous post was at 11:28 PM ----------





lshw -C CPU | grep slot
slot: LGA2011



Tried the same, but to no avail. Thanks though.


[root@localhost james]# lshw -C CPU | grep slot
slot: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
[root@localhost james]#


---------- Post added at 11:36 PM ---------- Previous post was at 11:31 PM ----------





[root@owl ~]# dmidecode -t processor | grep -i socket
Socket Designation: SOCKET 0
[root@owl ~]# lshw -C CPU | grep slot
slot: SOCKET 0



I did the same, but no success, thanks.



[root@localhost james]# dmidecode -t processor | grep -i socket
Socket Designation: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
[root@localhost james]#
[root@localhost james]# lshw -C CPU | grep slot
slot: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
[root@localhost james]#

tech291083
20th October 2017, 07:41 AM
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.

It makes sense to me now as not a single command seems to give me the socket type, which is a very basic piece of hardware info as far as I am concerned, but still, I believe there should be some way or the other to accomplish the same, thanks.

tryfedoraa
20th October 2017, 09:31 AM
Tryfedoraa,

You have given so much help, i can't thank you enough.

Sorry lshw doesn't work for your model.


Code:
[root@localhost james]# hw
hwclock hwloc-assembler-remote hwloc-compress-dir hwloc-distrib hwloc-ls hwmixvolume
hwloc-annotate hwloc-bind hwloc-diff hwloc-gather-topology hwloc-patch
hwloc-assembler hwloc-calc hwloc-distances hwloc-info hwloc-ps
[root@localhost james]#

Which one to use?

You need to install the package: https://www.open-mpi.org/projects/hwloc/

tryfedoraa
20th October 2017, 09:40 AM
Then run:


lstopo

nsnbm
20th October 2017, 12:09 PM
Tried, but no dice.


[tom@owl ~]$ rpm -ql hwloc
/usr/bin/hwloc-annotate
/usr/bin/hwloc-assembler
/usr/bin/hwloc-assembler-remote
/usr/bin/hwloc-bind
/usr/bin/hwloc-calc
/usr/bin/hwloc-compress-dir
/usr/bin/hwloc-diff
/usr/bin/hwloc-distances
/usr/bin/hwloc-distrib
/usr/bin/hwloc-gather-topology
/usr/bin/hwloc-info
/usr/bin/hwloc-ls
/usr/bin/hwloc-patch
/usr/bin/hwloc-ps
/usr/bin/lstopo-no-graphics
/usr/sbin/hwloc-dump-hwdata
/usr/share/man/man1/hwloc-annotate.1.gz
/usr/share/man/man1/hwloc-assembler-remote.1.gz
/usr/share/man/man1/hwloc-assembler.1.gz
/usr/share/man/man1/hwloc-bind.1.gz
/usr/share/man/man1/hwloc-calc.1.gz
/usr/share/man/man1/hwloc-compress-dir.1.gz
/usr/share/man/man1/hwloc-diff.1.gz
/usr/share/man/man1/hwloc-distances.1.gz
/usr/share/man/man1/hwloc-distrib.1.gz
/usr/share/man/man1/hwloc-dump-hwdata.1.gz
/usr/share/man/man1/hwloc-gather-topology.1.gz
/usr/share/man/man1/hwloc-info.1.gz
/usr/share/man/man1/hwloc-ls.1.gz
/usr/share/man/man1/hwloc-patch.1.gz
/usr/share/man/man1/hwloc-ps.1.gz
/usr/share/man/man1/lstopo-no-graphics.1.gz




[root@owl ~]# lstopo-no-graphics
Machine (3917MB)
Package L#0 + L3 L#0 (3072KB)
L2 L#0 (256KB) + L1d L#0 (32KB) + L1i L#0 (32KB) + Core L#0
PU L#0 (P#0)
PU L#1 (P#2)
L2 L#1 (256KB) + L1d L#1 (32KB) + L1i L#1 (32KB) + Core L#1
PU L#2 (P#1)
PU L#3 (P#3)
Misc(MemoryModule)
Misc(MemoryModule)
Misc(MemoryModule)
Misc(MemoryModule)
HostBridge L#0
PCIBridge
PCI 10de:0a65
GPU L#0 "renderD128"
GPU L#1 "card0"
GPU L#2 "controlD64"
PCIBridge
PCI 10ec:8168
Net L#3 "enp3s0"
PCIBridge
PCIBridge
PCI 10ec:8169
Net L#4 "enp5s1"
PCI 8086:8c02
Block(Disk) L#5 "sda"
Block(Removable Media Device) L#6 "sr0"


No socket type info in hwloc-gather-topology either.

HaydnH
20th October 2017, 01:12 PM
@nsnbm,

I think the issue here is that the data reported by all these commands depends on the hardware manufacturers all digitally labeling their products differently. If they all stuck to one standard then the above commands would probably all report the correct data.

Anyway, you know you have a Intel Core i3 generation 4 (i3-4xxx):

Version: Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz

So you can tell from the above commands you have a LGA1150 socket, although it does require a bit of google searching or a combination of a good memory and a mundane interest in CPUs/sockets.

nsnbm
21st October 2017, 12:42 AM
HaydnH wrote:


data reported by all these commands depends on the hardware manufacturers all digitally labeling their products differently.

Yes, I think that is the case. The OP wanted a command to identify the socket type, but it looks like, if dmidecode and lshw don't provide it (as in my case), your search engine suggestion is the way to go.

tech291083
25th October 2017, 12:10 PM
Friends,

Thanks a lot for your help, so far.