-
-
Save liujingyu/3e2ebd2ce8d89242ca92 to your computer and use it in GitHub Desktop.
IO性能检测
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#查看I/O性能 | |
iostat -xm 1 | |
首先找出来磁盘IO操作比较多的进程。这次使用的神器是iotop | |
iotop -d 1 -obk -a | cut -c -200 | |
#参数-m是以M单位显示,默认K | |
#%util:当达到100%时,说明I/O很忙。 | |
#await:请求在队列中等待时间,直接影响read时间。 | |
I/O极限:IOPS(r/s+w/s),一般在1200左右。(IOPS,每秒进行读写(I/O)操作次数) | |
I/O带宽:在顺序读写模式下SAS硬盘理论值在300M/s左右,SSD硬盘理论值在600M/s左右。 | |
#参数-P是显示CPU数,ALL为所有,也可以只显示第几颗CPU | |
mpstat -P All 1 | |
#查看CPU性能 | |
vmstat 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment