FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
  1. #1
    Join Date
    Sep 2006
    Posts
    1,429

    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

  2. #2
    Join Date
    Feb 2016
    Location
    here
    Posts
    20

    Re: Command to find cpu socket type


  3. #3
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    526

    Re: Command to find cpu socket type

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

  4. #4
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,620

    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.

  5. #5
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    526

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

  6. #6
    Join Date
    May 2017
    Location
    www
    Posts
    135

    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

  7. #7
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    152

    Re: Command to find cpu socket type

    "lshw -C -CPU" doesn't show the socket type, while " dmidecode -t 4" does

  8. #8
    Join Date
    Jul 2017
    Location
    IL
    Posts
    96

    Re: Command to find cpu socket type

    8 commands to check cpu information on Linux



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

  9. #9
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,620

    Re: Command to find cpu socket type

    Quote Originally Posted by HaydnH
    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.

  10. #10
    Join Date
    Nov 2006
    Location
    Detroit
    Posts
    6,659

    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 27 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

  11. #11
    Join Date
    Jun 2004
    Location
    Laurel, MD USA
    Posts
    7,149

    Re: Command to find cpu socket type

    Quote Originally Posted by nsnbm
    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

  12. #12
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    152

    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.

  13. #13
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,620

    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.

  14. #14
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    152

    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.

  15. #15
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,620

    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.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 1st August 2007, 04:19 PM
  2. command to query fs type of all partitions
    By tlviewer in forum Using Fedora
    Replies: 3
    Last Post: 21st July 2006, 12:54 PM
  3. mysql can't find the correct socket
    By jonhumphrey in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 1st March 2006, 06:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •