Linux iostat 在一段时间内的“平均”结果

问题描述 投票:0回答:1

我在 RedHat Linux 服务器上使用 iostat 实用程序来监视磁盘的性能。当我使用“iostat -xd sdh 1”时,我每秒打印一次性能结果。当我使用“iostat -xd sdh 5”时,我每五秒打印一次性能结果。我的感觉是后一个命令每五秒打印一次性能快照,而不是过去 5 秒的平均值。我的理解正确吗?

如果是这样,有没有办法让 iostat 打印 perf. n 秒内的平均值,或者是否有其他实用程序可以做到这一点。

目前,性能数字在一定范围内波动,我想得到一个稍微“稳定”的数字。我希望一段时间内的平均值能给我这样一个数字。

谢谢你, 艾哈迈德。

linux performance-testing iostat
1个回答
0
投票

来自

man 1 iostat

Each subsequent report covers the time since the previous report.
此外,列标题中的单位显示数字通常是每秒速率

注意

-y
选项,如果没有通过,第一个输出是
statistics concerning the time since the system was booted

© www.soinside.com 2019 - 2024. All rights reserved.