以下の内容はhttps://yohei-a.hatenablog.jp/entry/20191219/1576713331より取得しました。


iostat の avgrq-sz(average request size)の単位はセクタ数

iostat の avgrq-sz(average request size)の単位はセクタ数かKB。iostat のバージョンによって異なるので、使う環境で man で確認すべし。

  • iostat の出力
$ iostat -dx 2 3
Linux 4.14.146-93.123.amzn1.x86_64 (ip-172-31-10-8) 	12/18/19 	_x86_64_	(32 CPU)

(中略)

Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz★ avgqu-sz   await  svctm  %util
nvme1n1           0.00     0.50    0.00   29.50     0.00   520.00    17.63     0.00    0.00   0.00   0.00
nvme2n1           0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
nvme0n1           0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00

Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
nvme1n1           0.00     0.00    0.00    0.50     0.00     4.00     8.00     0.00    0.00   0.00   0.00
nvme2n1           0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
nvme0n1           0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
  • man で見ると単位はセクタ数となっている。
$ man iostat
              avgrq-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.
  • セクタ数を確認すると、512 bytes。
$ sudo fdisk -l /dev/nvme0n1p1 | grep 'Sector size'
Sector size (logical/physical): 512 bytes / 512 bytes ★セクタサイズ

補足

  • 最新バージョンでは KB になっている。

.B areq-sz
.RS
The average size (in kilobytes) of the I/O requests that were issued to the device.
.br
Note: In previous versions, this field was known as avgrq-sz and was expressed in
sectors.

sysstat/iostat.in at master · sysstat/sysstat · GitHub

環境

$ uname -r
4.14.146-93.123.amzn1.x86_64
$ iostat -V
sysstat version 9.0.4
(C) Sebastien Godard (sysstat <at> orange.fr)



以上の内容はhttps://yohei-a.hatenablog.jp/entry/20191219/1576713331より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14