Skip to content

Instantly share code, notes, and snippets.

@gl-works
Created January 14, 2015 10:25
Show Gist options
  • Select an option

  • Save gl-works/7422a855d7dc9e83d695 to your computer and use it in GitHub Desktop.

Select an option

Save gl-works/7422a855d7dc9e83d695 to your computer and use it in GitHub Desktop.
iostat, awk, disk activity, 活动磁盘监测
iostat -d 3 1000 -x | awk '{if($12 > 1.00) printf "%s %3d %5d %5d\n",$1,$12,$6,$7}'
Sample output
sdi 100 59880 76938
sdi 99 76296 77264
sdi 99 70120 60621
sdi 99 52450 58949
sdb 1 31 2790
sdi 99 40138 42854
sdf 1 90 3485
sdi 100 67120 56194
sdl 1 32 2762
sdi 99 65648 64712
sdi 91 66709 97341
sdc 1 16 2762
sdi 50 834 682
sdi 94 1248 541
sdj 2 1626 709
sdi 33 509 3037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment