当前位置:Gxlcms > 数据库问题 > centos mysql 优化 第四节课

centos mysql 优化 第四节课

时间:2021-07-01 10:21:17 帮助过:2人阅读

procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 422 66 239 402 0 0 1 137 3 6 0 0 93 6 0 0 0 422 66 239 402 0 0 0 0 71 108 0 0 100 0 0

 


叶金荣(4700963) 20:53:16
vmstat -S m 1 : -S unit size 以MB为单位,每秒显示一次

-S, --unit character
Switches outputs between 1000 (k), 1024 (K), 1000000 (m), or 1048576 (M) bytes.
Note this does not change the swap (si/so) or block (bi/bo) fields.

 

 

 

r:在运行队列中等待的进程数 。
b:在等待io的进程数 。

vmstat除了内存那列是MB为单位,IO和swap列都是以block为单位!!!!!
bi = block in to mem read from disk,io读
bo = block out from mem write to disk,io写

si = block in to swap in from disk,swap读
so = block out from swap out to disk,swap写

us = %user
sy = %sys
id = %idle
wa = %iowait
st = 虚拟机偷走的cpu资源

 


263-胡腾鹏-深圳(35465865) 21:17:34
swap高有办法么
A230-彭许生-深圳(10031145) 21:17:38
为什么swapoff -a要这么久?
4G 可能swap使用比较大,系统正在将swap内容写入磁盘,需要等一下

 

 

 

 


iostat

技术分享
r/s ,w/s
iops
rMB/s 、 wMB/s
avgqu-sz是平均请求队列的长度

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

f

centos mysql 优化 第四节课

标签:

人气教程排行