iostat samples

本文介绍了iostat命令的各种使用方式,包括仅显示CPU统计、磁盘I/O统计、网络统计等,并展示了如何针对特定设备查看I/O状态及展示扩展状态和LVM统计。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


 I/O Monitoring ---- iostat

iostat – Display only cpu statistics
# iostat -c

iostat – Display only disk I/O statistics
# iostat -d

iostat – Display only network statistics

# iostat -n

iostat – Display I/O statistics only for a device

#iostat -p /dev/sda1

iostat – Display Extended status

#iostat -x

iostat – Display LVM statistic

#iostat -N


[aaron@storage-rocky9 ~]$ sudo fio ./raid-test.fio randread: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=32 randwrite: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=32 readwrite: (g=0): rw=rw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=32 fio-3.35 Starting 3 threads Jobs: 2 (f=2): [r(1),_(1),M(1)][50.2%][r=84KiB/s,w=296KiB/s][r=21,w=74 IOPS][eta 04m:59s] randread: (groupid=0, jobs=3): err= 0: pid=3688: Wed Jul 16 21:38:44 2025 read: IOPS=289, BW=1157KiB/s (1185kB/s)(341MiB/301666msec) slat (nsec): min=1613, max=66903, avg=5200.65, stdev=2626.04 clat (usec): min=656, max=2879.1k, avg=200200.53, stdev=247076.34 lat (usec): min=659, max=2879.1k, avg=200205.74, stdev=247076.43 clat percentiles (msec): | 1.00th=[ 17], 5.00th=[ 37], 10.00th=[ 51], 20.00th=[ 71], | 30.00th=[ 85], 40.00th=[ 97], 50.00th=[ 113], 60.00th=[ 136], | 70.00th=[ 182], 80.00th=[ 271], 90.00th=[ 426], 95.00th=[ 642], | 99.00th=[ 1485], 99.50th=[ 1670], 99.90th=[ 1821], 99.95th=[ 1871], | 99.99th=[ 1989] bw ( KiB/s): min= 200, max= 2301, per=100.00%, avg=1168.10, stdev=213.29, samples=1195 iops : min= 50, max= 575, avg=292.03, stdev=53.32, samples=1195 write: IOPS=426, BW=1708KiB/s (1749kB/s)(503MiB/301666msec); 0 zone resets slat (nsec): min=1627, max=64655, avg=4636.65, stdev=2788.48 clat (usec): min=395, max=1814.8k, avg=88730.40, stdev=50766.98 lat (usec): min=397, max=1814.8k, avg=88735.03, stdev=50767.06 clat percentiles (usec): | 1.00th=[ 490], 5.00th=[ 50594], 10.00th=[ 58983], | 20.00th=[ 67634], 30.00th=[ 73925], 40.00th=[ 79168], | 50.00th=[ 84411], 60.00th=[ 89654], 70.00th=[ 95945], | 80.00th=[ 103285], 90.00th=[ 115868], 95.00th=[ 128451], | 99.00th=[ 252707], 99.50th=[ 429917], 99.90th=[ 734004], | 99.95th=[ 851444], 99.99th=[1216349] bw ( KiB/s): min= 880, max=22512, per=100.00%, avg=1719.12, stdev=606.57, samples=1196 iops : min= 220, max= 5628, avg=429.78, stdev=151.64, samples=1196 lat (usec) : 500=0.71%, 750=0.42%, 1000=0.01% lat (msec) : 2=0.03%, 4=0.04%, 10=0.15%, 20=0.52%, 50=4.85% lat (msec) : 100=55.37%, 250=28.35%, 500=6.19%, 750=1.80%, 1000=0.65% lat (msec) : 2000=0.90%, >=2000=0.01% cpu : usr=0.05%, sys=0.12%, ctx=183720, majf=0, minf=36 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=100.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.1%, 64=0.0%, >=64=0.0% issued rwts: total=87278,128783,0,0 short=0,0,0,0 dropped=0,0,0,0 latency : target=0, window=0, percentile=100.00%, depth=32 Run status group 0 (all jobs): READ: bw=1157KiB/s (1185kB/s), 1157KiB/s-1157KiB/s (1185kB/s-1185kB/s), io=341MiB (357MB), run=301666-301666msec WRITE: bw=1708KiB/s (1749kB/s), 1708KiB/s-1708KiB/s (1749kB/s-1749kB/s), io=503MiB (527MB), run=301666-301666msec Disk stats (read/write): sdb: ios=87350/128916, merge=0/3, ticks=17403222/11432998, in_queue=28836220, util=100.00%
最新发布
07-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值