Skip to content

Commit 6d5e153

Browse files
authored
Create lscpu.md
1 parent fd2805c commit 6d5e153

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

command/lscpu.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
lscpu
2+
===
3+
4+
显示有关CPU架构的信息
5+
6+
## 补充说明
7+
8+
**lscpu命令** 是显示有关CPU架构的信息。
9+
10+
### 语法
11+
12+
```
13+
lscpu [选项]
14+
```
15+
16+
### 选项
17+
18+
```
19+
-a, --all 打印在线和离线CPU(默认为-e)
20+
-b, --online 仅打印在线CPU(-p的默认值)
21+
-c, --offline 打印离线CPU
22+
-e, --extended[=<list>] 打印出一个扩展的可读格式
23+
-p, --parse[=<list>] 打印出可解析的格式
24+
-s, --sysroot <dir> 将指定的目录用作系统根目录
25+
-x, --hex 打印十六进制掩码,而不是CPU列表
26+
27+
-h, --help 显示此帮助并退出
28+
-V, --version 输出版本信息并退出
29+
```
30+
31+
### 参数
32+
33+
```bash
34+
可用列:
35+
CPU 逻辑CPU编号
36+
CORE 逻辑核心号码
37+
SOCKET 逻辑套接字号
38+
NODE 逻辑NUMA节点号
39+
BOOK 逻辑书号
40+
CACHE 显示了如何在CPU之间共享高速缓存
41+
POLARIZATION 虚拟硬件上的CPU调度模式
42+
ADDRESS CPU的物理地址
43+
CONFIGURED 显示管理程序是否分配了CPU
44+
ONLINE 显示Linux是否正在使用CPU
45+
```
46+
47+
### 例子
48+
49+
```bash
50+
[root@localhost ~]# lscpu
51+
Architecture: x86_64
52+
CPU op-mode(s): 32-bit, 64-bit
53+
Byte Order: Little Endian
54+
CPU(s): 4
55+
On-line CPU(s) list: 0-3
56+
Thread(s) per core: 1
57+
Core(s) per socket: 4
58+
Socket(s): 1
59+
NUMA node(s): 1
60+
Vendor ID: GenuineIntel
61+
CPU family: 6
62+
Model: 30
63+
Model name: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz
64+
Stepping: 5
65+
CPU MHz: 2394.055
66+
BogoMIPS: 4788.11
67+
Virtualization: VT-x
68+
L1d cache: 32K
69+
L1i cache: 32K
70+
L2 cache: 256K
71+
L3 cache: 8192K
72+
NUMA node0 CPU(s): 0-3
73+
```
74+
75+
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)