L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0-9,20-29
NUMA node1 CPU(s): 10-19,30-39
[root@Master ~]#
(8)查看cpu运行模式
[root@Master ~]# getconf LONG_BIT
64
(9)查看cpu是否支持64bit
[root@Master ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
40
(结果大于0, 说明支持64bit计算。 lm指long mode, 支持lm则是64bit)
三、查看内存信息
(1)查看内存硬件信息
root@Master ~]# dmidecode -t memory | head -45 | tail -24
Handle 0x000C, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x000A
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: PROC 1 DIMM 1
Bank Locator: Not Specified
Type: DDR4
Type Detail: Synchronous Registered (Buffered)
Speed: 2133 MHz
Manufacturer: HP
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: 752369-081
Rank: 2
Configured Clock Speed: 2133 MHz
Minimum Voltage: 1。2 V
Maximum Voltage: 1。2 V
Configured Voltage: 1。2 V
(2)最大支持多少内存
[root@Master ~]# dmidecode|grep -P 'Maximum\s+Capacity'
(3)Linux 查看内存的插槽数,已经使用多少插槽。每条内存多大:
(4)Linux 查看内存的频率:
[root@Master ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'
(5)Linux 查看内存的详细信息:
[root@Master ~]# cat /proc/meminfo |head -20
MemTotal: 131897620 kB
MemFree: 414124 kB
Buffers: 1040560 kB
Cached: 111083180 kB
SwapCached: 1320 kB
Active: 7637912 kB
Inactive: 110607108 kB
Active(anon): 4406900 kB
Inactive(anon): 1714900 kB
Active(file): 3231012 kB
Inactive(file): 108892208 kB
Unevictable: 10878976 kB
Mlocked: 5521652 kB linux查看硬件信息命令(4):http://www.youerw.com/fanwen/lunwen_85480.html