File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
66
66
- `bi` 表示从块设备读取数据的量(读磁盘)
67
67
- `bo` 表示从块设备写入数据的量(写磁盘)
68
68
- **如果bi和bo两个数字比较高,则说明,磁盘IO压力大。**
69
+ - `in` 每秒 CPU 的中断次数,包括时间中断
70
+ - `cs` 每秒上下文切换次数,例如我们调用系统函数,就要进行上下文切换,线程的切换,也要进程上下文切换,这个值要越小越好,太大了,要考虑调低线程或者进程的数目
69
71
- `wa` 表示I/O等待所占用CPU的时间比
70
72
71
73
#### 命令:sar(综合)
@@ -266,6 +268,7 @@ atctive 和 passive 的数目通常可以用来衡量服务器的负载:接受
266
268
- 在 ` top ` 命令状态下按 <kbd >shfit</kbd > + <kbd >m</kbd > 可以按照 ** 内存使用** 大小排序
267
269
- 在 ` top ` 命令状态下按 <kbd >shfit</kbd > + <kbd >p</kbd > 可以按照 ** CPU 使用** 大小排序
268
270
- 展示数据上,%CPU 表示进程占用的 CPU 百分比,%MEM 表示进程占用的内存百分比
271
+ - mac 下不一样:要先输入 o,然后输入 cpu 则按 cpu 使用量排序,输入 rsize 则按内存使用量排序。
269
272
270
273
#### CPU 其他工具
271
274
You can’t perform that action at this time.
0 commit comments