Linux HW Info

·

3 min read

Introduction

If you need to build a new PC, you need to read the manufacturer's specifications and utilize some tools to check the hardware compatible, such as PCPartPicker.

Once you done, you need to utilize some software tool to know your hardware. It's the goal of the blog post, I will show how to do it.

System Overview

$ neofetch
██████████████████  ████████   gapry@Y410P
██████████████████  ████████   -----------
██████████████████  ████████   OS: Manjaro Linux x86_64
██████████████████  ████████   Host: 20216 Lenovo IdeaPad Y410P
████████            ████████   Kernel: 5.15.7-1-MANJARO
████████  ████████  ████████   Uptime: 21 hours, 22 mins
████████  ████████  ████████   Packages: 3350 (pacman), 2 (nix-default), 7 (flatpak), 8
████████  ████████  ████████   Shell: fish 3.3.1
████████  ████████  ████████   Resolution: 1920x1080
████████  ████████  ████████   DE: Plasma 5.23.4
████████  ████████  ████████   WM: KWin
████████  ████████  ████████   Theme: Breeze Light [Plasma], Breeze [GTK2/3]
████████  ████████  ████████   Icons: breeze [Plasma], breeze [GTK2/3]
████████  ████████  ████████   Terminal: tmux
                               CPU: Intel i7-4700MQ (8) @ 3.400GHz
                               GPU: NVIDIA GeForce GT 750M
                               GPU: Intel 4th Gen Core Processor
                               Memory: 3410MiB / 7866MiB

CPU

$ sudo lshw -C CPU
  *-cpu
       description: CPU
       product: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
       vendor: Intel Corp.
       physical id: 4
       bus info: cpu@0
       version: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
       serial: To Be Filled By O.E.M.
       slot: U3E1
       size: 2481MHz
       capacity: 3400MHz
       width: 64 bits
       clock: 100MHz
       capabilities: lm 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 syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d cpufreq
       configuration: cores=4 enabledcores=4 threads=8

Memory

$ sudo lshw -short -C memory
H/W path         Device      Class          Description
=======================================================
/0/0                         memory         128KiB BIOS
/0/4/b                       memory         32KiB L1 cache
/0/4/c                       memory         256KiB L2 cache
/0/4/d                       memory         6MiB L3 cache
/0/a                         memory         32KiB L1 cache
/0/2a                        memory         8GiB System Memory
/0/2a/0                      memory         DIMM [empty]
/0/2a/1                      memory         DIMM [empty]
/0/2a/2                      memory         8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/2a/3                      memory         DIMM [empty]

Storage

$ lsblk -o KNAME,TYPE,SIZE,MODEL
KNAME TYPE   SIZE MODEL
loop0 loop  89.2M
loop1 loop  99.4M
loop2 loop  55.5M
loop3 loop  99.4M
loop4 loop     4K
loop5 loop 164.8M
loop6 loop  65.2M
loop7 loop  66.7M
sda   disk 238.5G TS256GSSD340
sda1  part 238.2G
sda2  part   256M
sr0   rom   1024M HL-DT-ST DVDRAM GU70N

GPU

$ sudo lshw -numeric -C display
  *-display
       description: VGA compatible controller
       product: GK107M [GeForce GT 750M] [10DE:FE4]
       vendor: NVIDIA Corporation [10DE]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:34 memory:c0000000-c0ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:4000(size=128) memory:c1080000-c10fffff
  *-display
       description: VGA compatible controller
       product: 4th Gen Core Processor Integrated Graphics Controller [8086:416]
       vendor: Intel Corporation [8086]
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:31 memory:c2000000-c23fffff memory:b0000000-bfffffff ioport:5000(size=64) memory:c0000-dffff

Network Card

$ sudo lshw -class network -short
H/W path         Device      Class          Description
=======================================================
/0/100/1c/0      enp7s0      network        QCA8171 Gigabit Ethernet
/0/100/1c.4/0    wlp8s0      network        Centrino Wireless-N 2230

Phoronix Test Suite

$ yay -S phoronix-test-suite
$ phoronix-test-suite list-tests
$ phoronix-test-suite benchmark build-linux-kernel
$ phoronix-test-suite benchmark build-llvm
$ phoronix-test-suite benchmark rocksdb

References