首页 > 代码库 > linux下查看机器配置

linux下查看机器配置

查看cpu信息:lscpu

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 48  //总逻辑CPU数:物理CPU个数*每个物理CPU核数*超线程数
On-line CPU(s) list: 0-47
Thread(s) per core: 2  //超线程数
Core(s) per socket: 12  //每个物理CPU核数
Socket(s): 2  //物理CPU个数
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Stepping: 1
CPU MHz: 2200.078
BogoMIPS: 4399.33
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 30720K
NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46
NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47

 

查看内存信息:free -g

[root@SPA-123-69-58 ~]# free -g
             total       used       free     shared    buffers     cached
Mem:           125          1        124          0          0          0
-/+ buffers/cache:          0        124
Swap:           62          0         62

//总内存为125G

 

查看硬盘信息:lsblk

[root@SPA-123-69-58 ~]# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  2.2T  0 disk
├─sda1   8:1    0    1G  0 part /boot
├─sda2   8:2    0 62.5G  0 part [SWAP]
├─sda3   8:3    0 48.8G  0 part /
└─sda4   8:4    0  2.1T  0 part /app

 

linux下查看机器配置