系统监控工具:glances、iotop

2020-03-06  本文已影响0人  Simon_Ye

glances命令(EPEL源):

基于cross研发的跨平台的监控工具

node1 (CentOS Linux 7.6.1810 64bit / Linux 3.10.0-957.el7.x86_64)                                                                                        Uptime: 8:27:17

CPU  [||||                                                            7.1%]   CPU       7.1%  nice:     0.0%   MEM     49.0%  active:     408M   SWAP      0.1%   LOAD    1-core
MEM  [||||||||||||||||||||||||||||||                                 49.0%]   user:     1.6%  irq:      0.0%   total:  1.02G  inactive:   221M   total:   2.00G   1 min:    0.05
SWAP [                                                                0.1%]   system:   1.0%  iowait:   0.0%   used:    513M  buffers:     24K   used:    1.26M   5 min:    0.06
                                                                              idle:    97.4%  steal:    0.0%   free:    534M  cached:     384M   free:    2.00G   15 min:   0.05

NETWORK     Rx/s   Tx/s   TASKS 186 (327 thr), 3 run, 183 slp, 0 oth sorted automatically by cpu_percent, flat view
ens33       456b   34Kb
ens37        7Kb     0b     CPU%  MEM%  VIRT   RES   PID USER        NI S     TIME+ IOR/s IOW/s Command 
lo            0b     0b    100.7   1.5  225M 15.4M 13493 root         0 R   0:00.28     0     0 /usr/bin/python /usr/bin/glances
virbr0        0b     0b      0.0   0.3 88.3M 3.12M  6548 root         0 S   0:01.75     0     0 /sbin/rngd -f
_rbr0-nic     0b     0b      0.0   1.5  608M 15.6M  7696 gdm          0 S   0:00.90     0     0 /usr/libexec/gsd-wacom 
                             0.0   0.0     0     0    21 root       -20 S   0:00.00     0     0 kblockd
DISK I/O     R/s    W/s      0.0   0.0     0     0  4881 root       -20 S   0:00.00     0     0 xfs-data/sda5
sda1           0      0      0.0   1.3  454M 13.2M  7599 gdm          0 S   0:00.70     0     0 /usr/libexec/ibus-x11 --kill-daemon
sda2           0      0      0.0   0.5 48.1M 4.96M  3015 root         0 S   0:00.85     0     0 /usr/lib/systemd/systemd-udevd 
sda3           0      0      0.0   0.0     0     0  4879 root       -20 S   0:00.00     0     0 xfs-buf/sda3
sda4           0      0      0.0   0.0     0     0   732 root       -20 S   0:00.00     0     0 scsi_tmf_1
sda5           0      0      0.0   0.2  123M 1.65M  6970 root         0 S   0:00.43     0     0 /usr/sbin/crond -n
sda6           0      0      0.0   0.8  459M 8.20M  7643 gdm          0 S   0:00.20     0     0 /usr/libexec/gsd-datetime 
sda7           0      0      0.0   0.0     0     0  4915 root       -20 S   0:00.00     0     0 xfs-eofblocks/s
sr0            0      0      0.0   0.1 57.6M  956K  7514 gdm          0 S   0:00.00     0     0 dbus-launch --exit-with-session /usr/libexec/gnome-session-binary --autostart /us
                             0.0   0.5  401M 5.18M  7624 root         0 S   0:00.22     0     0 /usr/libexec/packagekitd 
FILE SYS    Used  Total      0.0   0.0     0     0  6479 root       -20 S   0:00.00     0     0 rpciod
/ (sda2)   3.65G  50.0G      0.0   0.4  389M 3.70M  7622 root         0 S   0:00.40     0     0 /usr/libexec/boltd 
/boot       163M  1014M      0.0   0.4  220M 4.16M  6553 root         0 S   0:00.40     0     0 /usr/bin/abrt-watch-log -F BUG: WARNING: at WARNING: CPU: INFO: possible recursiv
/data       169M  30.0G      0.0   0.0     0     0  4931 root         0 S   0:01.18     0     0 xfsaild/sda3
/home      32.3M  20.0G      0.0   0.1 16.5M 1.22M  6535 root        19 S   0:00.00     0     0 /usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfi
_ia/cdrom  10.0G  10.0G      0.0   0.0     0     0  4898 root       -20 S   0:00.00     0     0 xfs-cil/sda5
/var        403M  30.0G      0.0   0.0     0     0  4905 root       -20 S   0:00.00     0     0 xfs-reclaim/sda
                             0.0   0.0     0     0    23 root       -20 S   0:00.00     0     0 edac-poller
                             0.0   0.3  365M 2.89M  7682 gdm          0 S   0:00.00     0     0 /usr/libexec/gsd-screensaver-proxy 
                             0.0  12.0 2.79G  125M  7549 gdm          0 S   0:07.35     0     0 /usr/bin/gnome-shell 
                             0.0   0.5  442M 5.21M  7593 gdm          0 S   0:00.52     0     0 ibus-daemon --xim --panel disable
                             0.0   1.6  560M 16.8M  6955 root         0 S   0:03.12     0     0 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
                             0.0   0.6  470M 6.31M  6969 root         0 S   0:00.20     0     0 /usr/sbin/gdm 
                             0.0   0.0     0     0    44 root       -20 S   0:00.00     0     0 kaluad
                             0.0   0.0     0     0  4835 root       -20 S   0:00.00     0     0 hci0
                             0.0   0.0     0     0     9 root         0 R   0:00.73     0     0 rcu_sched
                             0.0   0.4  110M 4.17M  6952 root         0 S   0:00.10     0     0 /usr/sbin/sshd -D
                             0.0   0.5  223M 4.82M  6552 root         0 S   0:00.20     0     0 /usr/sbin/abrtd -d -s
                             0.0   0.6  410M 6.08M  7721 colord       0 S   0:00.30     0     0 /usr/libexec/colord 
                             0.0   0.0     0     0  2912 root         0 S   0:00.20     0     0 xfsaild/sda2
                             0.0   0.0     0     0   786 root         0 S   0:00.00     0     0 irq/16-vmwgfx
                             0.0   0.0     0     0  2888 root       -20 S   0:00.00     0     0 bioset
                             0.0   0.0     0     0    30 root         0 S   0:00.18     0     0 kswapd0
                             0.0   0.3  293M 2.80M  7672 gdm          0 S   0:00.00     0     0 /usr/libexec/gsd-rfkill 

2020-02-04 21:31:17       No warning or critical alert detected

iotop命令:

用来监控磁盘I/O使用状况的top类工具,iotop具有与top相似的UI,其中包括PID、用户、I/O、进程等相关信息,可查看每个进程是如何使用I/O

上一篇 下一篇

猜你喜欢

热点阅读