Linux command check CPU IO and VM info

  • Check the CPU utilize rate and disk IO info
$ iostat
Linux 4.4.0-103-generic (xw-HP-Z420-Workstation) 02/02/2018 _x86_64_ (12 CPU)

avg-cpu: %user %nice %system %iowait %steal %idle
 0.17 0.00 0.03 0.01 0.00 99.78

Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 1.73 15.20 18.99 3663865 4578881
sdb 0.00 0.03 0.00 6317 56
  • Virtual memory info
$ vmstat 1 5
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r b swpd free buff cache si so bi bo in cs us sy id wa st
 0 0 0 21497140 917372 3875112 0 0 1 2 5 3 0 0 100 0 0
 0 0 0 21497336 917376 3875112 0 0 0 172 577 2320 2 0 98 0 0
 0 0 0 21497196 917376 3875112 0 0 0 0 553 2380 3 0 97 0 0
 0 0 0 21497336 917376 3875116 0 0 0 8 553 2432 2 0 97 0 0
 0 0 0 21497336 917376 3875112 0 0 0 0 490 2173 2 0 97 0 0
  • check kernel and driver’s log
dmesg
Advertisements