> 文章列表 > linux iostat命令使用介绍

linux iostat命令使用介绍

简介

iostat主要用于监控系统设备的IO负载情况,iostat首次运行时显示自系统启动开始的各项统计信息,之后运行iostat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来获得所需的统计信息。

语法

iostat [ -c ] [ -d ] [ -h ] [ -N ] [ -k | -m ] [ -t ] [ -V ] [ -x ] [ -z ] [ device [...] | ALL ] [ -p [ device [,...] | ALL ] ] [ interval [ count ] ]

入门使用

iostat -d -k 1 10Device: tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtnsda   39.29        21.141.44  441339807   29990031sda1   0.000.000.00       1623        523sda2   1.321.434.54   29834273   94827104sda3   6.300.85        24.95   17816289  520725244sda5   0.850.463.40    9543503   70970116sda6   0.000.000.00        550        236sda7   0.000.000.00        406 0sda8   0.000.000.00        406 0sda9   0.000.000.00        406 0sda10 60.68        18.35        71.43  383002263 1490928140Device: tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtnsda  327.55      5159.18       102.04       5056        100sda1   0.000.000.00 0 0