0

在 Linux中iostat -k显示kB_read kB_wrtn字段,即在测量间隔期间读取/写入的总数据。

#iostat -k
Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               0.59         3.69        10.46   12418161   35236147

有没有可能在 Solaris 中显示相同的内容?

4

2 回答 2

0

试试 iostat -xn... 我认为输出类似于 Linux。

于 2017-05-16T11:24:18.860 回答
0

iostat -sndx 1将产生这个输出:

                 extended device statistics              
 r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
 1.0    1.1   82.1    8.5  0.0  0.0    0.0    9.7   0   1 c2t0d0
36.9    0.6 4576.8   14.2  0.0  0.6    0.0   16.2   0  14 c2t1d0
 6.6    0.3  695.1   64.2  0.0  0.0    0.0    5.7   0   2 c2t2d0
 0.0    7.7    0.8 2438.0  2.1  1.0  270.4  128.0  33  33 c1t0d0
 0.0    7.8    0.8 2438.1  2.1  1.0  271.6  128.2  33  33 c1t0d1
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.1   0   0 c1t0d2


                 extended device statistics              
 r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
 0.0   85.0    0.0  360.5  0.0  0.0    0.0    0.4   0   1 c2t0d0
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c2t1d0
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c2t2d0
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c1t0d0
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c1t0d1
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c1t0d2

                 extended device statistics              
 r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c2t0d0
12.0  118.0   24.5  460.5  0.0  0.5    0.0    3.7   0  44 c2t1d0
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c2t2d0
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c1t0d0
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c1t0d1
 0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c1t0d2

1参数指定每秒发出一次输出集。添加第二个数值以指定发出多少组输出。第一个输出是计数器上次复位后的 I/O 统计信息,可能是在启动时。

添加-z以抑制全为零的行。

添加-p以查看每个分区的统计信息。

添加-I以查看原始计数而不是速率数字。(可能只有 Solaris 11)

于 2017-05-16T11:24:54.683 回答