使用SAR分析磁盘IO性能

发布于 2022-10-15 08:01:00 字数 3193 浏览 18 评论 0

本帖最后由 cu_Cbear 于 2011-05-03 20:05 编辑

使用SAR分析磁盘IO性能



# sar -d 5 10

单位 sector=512B = 0.5KB

tps
每秒IO次数
Indicate  the number of transfers per second that were issued to the device.
Multiple logical requests can be combined into a single I/O request to the device.
A transfer is of indeterminate size

rd_sec/s
每秒读取的sector数
Number of sectors read from the device

wr_sec/s
每秒写入的sector数
Number of sectors written to the device

avgrp-sz
流出设备的扇区数
The average size (in sectors) of the requests that were issued to the device.

avgqu-sz
流出设备的平均队列长度, 每秒平均请求数
The average queue length of the requests that were issued to the device.

await
平均请求与服务时间(in milliseconds毫秒)
The average time (in milliseconds) for I/O requests issued to the device to be served.
This includes the time spent by the requests in queue and the time  spent servicing them.

svctm
平均服务时间(in millisecods)
The average service time (in milliseconds) for I/O requests that were issued to the device.

%util
IO平均的CPU使用时间, 数字接近100%时,设备出现饱和
Percentage  of  CPU time during which I/O requests were issued to the device (bandwidth utilization for the device).
Device saturation occurs when this value is close to 100%.


1.jpg (342.22 KB, 下载次数: 1)

下载附件

2011-05-03 20:04 上传



定位是/dev/sda6这块磁盘IO压力比较大

  

2.jpg (24.52 KB, 下载次数: 1)

下载附件

2011-05-03 20:04 上传


你还可以用iostat 查看相关信息:
# iostat -x 1 5

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

相思故 2022-10-22 08:01:00

sar 是好东西,今天回过来再看一下sar常用命令:

查看cpu:

sar -u

查看I/O:

sar -b

查看内存使用情况:

sar -r

查看网卡流量统计:

sar -n EDEV

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文