Linux hardware information inquiry

1, view the system PCI devices

      lspci command lists all PCI devices, such as motherboards, sound cards, graphics cards and the like as follows

      [root@localhost ~]# lspci

      The output results are as follows.

00:00.0 Host bridge: Intel Corporation 945G/P Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 945G Integrated Graphics Controller
(rev 02)
00:1b.0 Class 0403: Intel Corporation 82801G (ICH7 Family) High Definition Audio
Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPCInterfaceBridge (rev 01)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller
[AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co.,Ltd.: Realtek device 8168 (rev 01)


The following machines have what type of equipment to analyze.
00: 00.0 Host bridge: Intel Corporation 945G / P Memory Controller Hub (rev 02)
type integrated motherboard device shown above as Intel Corporation 945G / P.
00: 02.0 VGA compatible the Controller: Intel 945G Integrated Graphics Corporation the Controller
(Rev 02)
shown above is VGA graphics device.
00: 1b.0 Class 0403: Intel Corporation 82801G (ICH7 Family) High Definition Audio
the Controller (Rev 01)
shown above is Intel sound card device.
00: 1d.0 the USB the Controller: Intel Corporation 82801G (ICH7 Family) the USB UHCI # 1 (Rev 01)
00: 1d.1 the USB the Controller: Intel Corporation 82801G (ICH7 Family) the USB UHCI # 2 (Rev 01)
00: 1D. 2 USB Controller: Intel Corporation 82801G ( ICH7 Family) USB UHCI # 3 (rev 01)
00: 1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI # 4 (rev 01)
above shows four USB devices connected to a separate warranty.
00: 0d.0 SATA the Controller: Intel Corporation 82801HM / HEM (ICH8M / ICH8M-E) SATA the Controller
[AHCI the MODE] (Rev 02)
above shows a SATA controller, indicating that the system is a series of SATA hard drives.
02: 00.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
shown above is a Gigabit ⽹ card device.

2, view the CPU information

[Root @ localhost ~] # more / proc / cpuin following output processor: 0

vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
stepping : 4
cpu MHz : 1200.000
cache size : 20480 KB
physical id : 0
siblings : 16
core id : 0
cpu cores : 8
apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
bogomips : 5200.19
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management: [8]     

 

       Wherein, processor logical processor is a unique identifier, vendor-id table displayed class processor

Type, if Intel processor, the string is GenuineIntel. Table monitor each physical id
unique identifier physics package, i.e. ⼀ physical CPU, siblings displayed in the same physical table
number of the logical processor package, core id table displayed ⼀ the only identifier of each core, CPU
Cores table monitor the number of cores located in the same physical package.
There is a correspondence between siblings and cpu cores value, if the siblings is cpu cores
twice, then the system ⽀ support hyper-threading, and hyper-threading enabled; when siblings and CPU
Cores ⼀ activated, then the system do not support Hyper-Threading, or Hyper-Threading is not open.


To see the number of the physical CPU system, the following command can be viewed.

[root@centos7 ~]#cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc –l


To see the number of cores in each physical CPU, the following command can be viewed.
[root @ centos7 ~] #cat / proc / cpuinfo | grep "cpu cores"


To view all of the logical CPU number system (all the physical number of the CPU cores Plus Ultra line
number of the process), the following command can be viewed.
[root @ centos7 ~] #cat / proc / cpuinfo | grep "processor" | wc -l


With this brief introduction, on the basis of the output screen for understood, this system has two physical CPU, each
physical CPU has eight cores and Enables Hyper-Threading, a total of 32 logical CPU

3. Check the memory information system

[root@localhost ~]# more /proc/meminfo

输出结果如下。
MemTotal: 32884072 kB
MemFree: 12939460 kB
Buffers: 834600 kB
Cached: 17634960 kB
SwapCached: 0 kB
Active: 7141568 kB
Inactive: 11833812 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 32884072 kB
LowFree: 12939460 kB
SwapTotal: 32764528 kB
SwapFree: 32764528 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 505560 kB
Mapped: 64480 kB
Slab: 880700 kB
PageTables: 17764 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 49206564 kB
Committed_AS: 900836 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 280536 kB
VmallocChunk: 34359457075 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
Based on this output, we can clearly know accounting system memory on usage. For example, the Department of
physical memory system is about 32GB, physical memory may have about 13GB, the buffer occupancy
834600kB, the cache takes up 17634960kB, and so on.

4. Check the disk partition information

[root@localhost ~]#fdisk –l

 

Guess you like

Origin www.cnblogs.com/myworld5218/p/11275568.html