[CentOS 7系列]監控系統狀態(下)
1、iostat/iotop 磁盤使用
[[email protected] ~]# iostat ##靜態顯示 Linux 3.10.0-514.el7.x86_64 (server01) 2017年07月11日 _x86_64_ (1 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 0.32 0.00 4.05 0.29 0.00 95.34 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sda 1.62 53.20 3.89 234652 17158 sdb 0.03 0.21 0.00 920 0 scd0 0.00 0.01 0.00 44 0 [[email protected]
2、free 內存使用
[[email protected] ~]# free total used free shared buff/cache available Mem: 1008392 113948 614756 6868 279688 719948 Swap: 2097148 0 2097148 [[email protected] ~]# free -m ##兆 total used free shared buff/cache available Mem: 984 111 600 6 273 703 Swap: 2047 0 2047 [[email protected]