shallow丿oveios
監控系統狀態git
[root@localhost ~]# w 10:41:30 up 9:20, 2 users, load average: 0.00, 0.01, 0.05 USER TTY LOGIN@ IDLE JCPU PCPU WHAT root pts/0 01:23 6:59m 0.32s 0.32s -bash root pts/1 10:41 2.00s 0.04s 0.01s w
系統時間 啓動時間 登陸用戶 系統負載(1分鐘,5分鐘,15分鐘) 登陸用戶 登陸方式 登陸時間
爲1是最理想的,centos
[root@localhost ~]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz stepping : 3 microcode : 0x1e cpu MHz : 2501.000 cache size : 6144 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat epb xsaveopt pln pts dtherm fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid bogomips : 5002.00 clflush size : 64 cache_alignment : 64 address sizes : 42 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz stepping : 3 microcode : 0x1e cpu MHz : 2501.000 cache size : 6144 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat epb xsaveopt pln pts dtherm fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid bogomips : 5002.00 clflush size : 64 cache_alignment : 64 address sizes : 42 bits physical, 48 bits virtual power management:
[root@localhost ~]# vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 1591432 692 110200 0 0 2 0 7 9 0 0 100 0 0
[root@localhost ~]# vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 1591292 692 110232 0 0 2 0 7 9 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 27 35 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 22 21 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 14 13 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 20 18 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 8 18 21 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 22 20 0 0 100 0 0 ^C [root@localhost ~]# 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 1 0 0 1591340 692 110232 0 0 2 0 7 9 0 0 100 0 0 0 0 0 1591332 692 110232 0 0 0 0 24 32 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 16 13 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 19 20 0 0 100 0 0 0 0 0 1591300 692 110232 0 0 0 0 19 16 0 0 100 0 0
r爲run,表示進程處於運行的狀態 b爲block,表示CPU被某些硬件設備阻斷 swpd交換空間,表示物理內存不夠用 free cache si讀入 so讀出 bi寫入,若大於5000則須要注意 bo寫出,若大於5000則須要注意 in cs us用戶級別,若長時間大於50表示系統資源不足 sy id wa若數字越大,表示CPU資源不足 st
us、sy、id和wa相加等於100%api
[root@localhost ~]# top #每3秒更新一次 top - 11:27:16 up 10:06, 1 user, load average: 0.00, 0.01, 0.05 Tasks: 361 total, 1 running, 360 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 1870784 total, 277496 used, 1593288 free, 692 buffers KiB Swap: 2097148 total, 0 used, 2097148 free. 110344 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3524 root 20 0 123836 1804 1156 R 0.3 0.1 0:00.05 top 1 root 20 0 43824 6440 3888 S 0.0 0.3 0:03.00 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root rt 0 0 0 0 S 0.0 0.0 0:00.16 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/0 10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/1 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/2 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/3
361 total指361個進程 1 running指有1個進程正在運行 360 sleeping有360個進程處於臨時睡眠狀態 0 stopped指進程中止 0 zombie殭屍進程,指子進程由父進程回收,沒有父進程的則變成了殭屍進程 RES爲佔用物理內存的大小,單位爲K
[root@localhost ~]# top -c #更加詳細的command顯示 top - 11:40:19 up 10:19, 1 user, load average: 0.00, 0.01, 0.05 Tasks: 360 total, 1 running, 359 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.2 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 1870784 total, 277520 used, 1593264 free, 692 buffers KiB Swap: 2097148 total, 0 used, 2097148 free. 110344 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3522 root 20 0 0 0 0 S 0.3 0.0 0:00.03 [kworker/1:1] 3529 root 20 0 123864 1892 1232 R 0.3 0.1 0:00.11 top -c 1 root 20 0 43824 6440 3888 S 0.0 0.3 0:03.01 /usr/lib/systemd/systemd --s+ 2 root 20 0 0 0 0 S 0.0 0.0 0:00.06 [kthreadd] 3 root 20 0 0 0 0 S 0.0 0.0 0:00.10 [ksoftirqd/0] 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/0:0H] 7 root rt 0 0 0 0 S 0.0 0.0 0:00.16 [migration/0] 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 [rcu_bh] 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 [rcuob/0] 10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 [rcuob/1] 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 [rcuob/2]
[root@localhost ~]# top -bn1 #靜態顯示全部進程 top - 11:42:03 up 10:20, 1 user, load average: 0.16, 0.05, 0.06 Tasks: 360 total, 1 running, 359 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni, 99.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 1870784 total, 277404 used, 1593380 free, 692 buffers KiB Swap: 2097148 total, 0 used, 2097148 free. 110344 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3530 root 20 0 123836 1620 1056 R 12.8 0.1 0:00.02 top 1 root 20 0 43824 6440 3888 S 0.0 0.3 0:03.01 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.06 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root rt 0 0 0 0 S 0.0 0.0 0:00.16 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/0 10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/1 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/2 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/3 13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/4 14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/5 15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/6 16 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/7 17 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/8 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/9 19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/10 20 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/11 21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/12 22 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/13 23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/14 24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/15 25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/16 26 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/17 27 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/18 28 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/19 29 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/20 30 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/21 31 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/22 32 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/23 33 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/24 34 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/25 35 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/26 36 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/27 37 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/28 38 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/29 39 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/30 40 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/31 41 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/32 42 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/33 43 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/34 44 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/35 45 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/36 46 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/37 47 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/38 48 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/39 49 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/40 50 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/41 51 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/42 52 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/43 53 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/44 54 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/45 55 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/46 56 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/47 57 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/48 58 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/49 59 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/50 60 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/51 61 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/52 62 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/53 63 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/54 64 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/55 65 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/56 66 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/57 67 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/58 68 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/59 69 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/60 70 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/61 71 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/62 72 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/63 73 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/64 74 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/65 75 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/66 76 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/67 77 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/68 78 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/69 79 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/70 80 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/71 81 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/72 82 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/73 83 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/74 84 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/75 85 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/76 86 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/77 87 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/78 88 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/79 89 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/80 90 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/81 91 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/82 92 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/83 93 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/84 94 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/85 95 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/86 96 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/87 97 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/88 98 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/89 99 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/90 100 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/91 101 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/92 102 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/93 103 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/94 104 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/95 105 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/96 106 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/97 107 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/98 108 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/99 109 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/100 110 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/101 111 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/102 112 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/103 113 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/104 114 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/105 115 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/106 116 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/107 117 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/108 118 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/109 119 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/110 120 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/111 121 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/112 122 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/113 123 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/114 124 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/115 125 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/116 126 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/117 127 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/118 128 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/119 129 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/120 130 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/121 131 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/122 132 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/123 133 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/124 134 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/125 135 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/126 136 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/127 137 root 20 0 0 0 0 S 0.0 0.0 0:00.83 rcu_sched 138 root 20 0 0 0 0 S 0.0 0.0 0:00.89 rcuos/0 139 root 20 0 0 0 0 S 0.0 0.0 0:01.24 rcuos/1 140 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/2 141 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/3 142 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/4 143 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/5 144 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/6 145 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/7 146 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/8 147 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/9 148 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/10 149 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/11 150 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/12 151 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/13 152 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/14 153 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/15 154 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/16 155 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/17 156 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/18 157 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/19 158 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/20 159 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/21 160 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/22 161 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/23 162 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/24 163 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/25 164 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/26 165 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/27 166 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/28 167 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/29 168 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/30 169 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/31 170 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/32 171 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/33 172 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/34 173 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/35 174 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/36 175 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/37 176 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/38 177 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/39 178 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/40 179 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/41 180 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/42 181 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/43 182 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/44 183 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/45 184 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/46 185 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/47 186 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/48 187 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/49 188 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/50 189 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/51 190 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/52 191 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/53 192 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/54 193 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/55 194 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/56 195 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/57 196 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/58 197 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/59 198 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/60 199 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/61 200 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/62 201 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/63 202 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/64 203 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/65 204 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/66 205 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/67 206 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/68 207 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/69 208 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/70 209 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/71 210 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/72 211 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/73 212 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/74 213 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/75 214 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/76 215 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/77 216 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/78 217 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/79 218 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/80 219 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/81 220 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/82 221 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/83 222 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/84 223 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/85 224 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/86 225 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/87 226 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/88 227 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/89 228 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/90 229 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/91 230 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/92 231 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/93 232 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/94 233 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/95 234 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/96 235 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/97 236 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/98 237 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/99 238 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/100 239 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/101 240 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/102 241 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/103 242 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/104 243 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/105 244 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/106 245 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/107 246 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/108 247 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/109 248 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/110 249 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/111 250 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/112 251 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/113 252 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/114 253 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/115 254 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/116 255 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/117 256 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/118 257 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/119 258 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/120 259 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/121 260 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/122 261 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/123 262 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/124 263 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/125 264 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/126 265 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/127 266 root rt 0 0 0 0 S 0.0 0.0 0:00.24 watchdog/0 267 root rt 0 0 0 0 S 0.0 0.0 0:00.23 watchdog/1 268 root rt 0 0 0 0 S 0.0 0.0 0:00.51 migration/1 269 root 20 0 0 0 0 S 0.0 0.0 0:00.07 ksoftirqd/1 271 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H 272 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper 273 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 274 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 275 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback 276 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd 277 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset 278 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 279 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khubd 280 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md 282 root 20 0 0 0 0 S 0.0 0.0 0:26.02 kworker/0:1 284 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0 285 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 286 root 39 19 0 0 0 S 0.0 0.0 0:00.17 khugepaged 287 root 20 0 0 0 0 S 0.0 0.0 0:00.00 fsnotify_mark 288 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 297 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld 298 root 20 0 0 0 0 S 0.0 0.0 0:01.68 kworker/u256:1 299 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kmpath_rdacd 300 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 320 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq 345 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kauditd 386 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff 387 root 20 0 0 0 0 S 0.0 0.0 0:00.01 scsi_eh_0 388 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_0 390 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 392 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_1 394 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 mpt_poll_0 396 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 mpt/0 404 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2 405 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_2 407 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ttm_swap 425 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfsalloc 426 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfs_mru_cache 427 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfslogd 428 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfs-data/sda3 429 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfs-conv/sda3 430 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfs-cil/sda3 431 root 0 -20 0 0 0 S 0.0 0.0 0:00.12 kworker/0:1H 432 root 20 0 0 0 0 S 0.0 0.0 0:01.04 xfsaild/sda3 506 root 20 0 36796 2592 2288 S 0.0 0.1 0:00.53 systemd-journal 535 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 rpciod 537 root 20 0 46104 5080 2700 S 0.0 0.3 0:00.27 systemd-udevd 538 root 20 0 342028 5584 2468 S 0.0 0.3 0:00.01 lvmetad 645 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfs-data/sda1 646 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfs-conv/sda1 647 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xfs-cil/sda1 648 root 20 0 0 0 0 S 0.0 0.0 0:00.00 xfsaild/sda1 650 root 16 -4 51232 1824 1344 S 0.0 0.1 0:00.09 auditd 696 root 20 0 217560 3876 2448 S 0.0 0.2 0:00.12 rsyslogd 698 root 20 0 565520 16404 5852 S 0.0 0.9 0:05.16 tuned 699 root 20 0 26392 1720 1416 S 0.0 0.1 0:00.16 systemd-logind 702 avahi 20 0 28092 1704 1416 S 0.0 0.1 0:00.19 avahi-daemon 704 dbus 20 0 100484 1924 1416 S 0.0 0.1 0:00.83 dbus-daemon 705 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kdmflush 706 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset 713 avahi 20 0 27980 448 216 S 0.0 0.0 0:00.00 avahi-daemon 719 root 20 0 197232 1916 1384 S 0.0 0.1 0:00.00 gssproxy 730 root 20 0 126340 1696 1064 S 0.0 0.1 0:00.51 crond 735 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:1H 736 root 20 0 110048 836 704 S 0.0 0.0 0:00.02 agetty 808 root 20 0 461032 9216 7260 S 0.0 0.5 0:01.54 NetworkManager 953 polkitd 20 0 530084 10840 4880 S 0.0 0.6 0:00.10 polkitd 1327 root 20 0 83028 3568 2724 S 0.0 0.2 0:00.02 sshd 1657 root 20 0 6492 340 220 S 0.0 0.0 0:00.40 iprupdate 1658 root 20 0 6492 340 224 S 0.0 0.0 0:00.40 iprinit 1732 root 20 0 39132 320 224 S 0.0 0.0 0:00.00 iprdump 2359 root 20 0 91772 2184 1152 S 0.0 0.1 0:00.30 master 2361 postfix 20 0 91944 3932 2936 S 0.0 0.2 0:00.09 qmgr 2439 rpc 20 0 64892 1460 868 S 0.0 0.1 0:00.11 rpcbind 2452 rpcuser 20 0 44568 1768 924 S 0.0 0.1 0:00.00 rpc.statd 2453 root 20 0 19324 396 200 S 0.0 0.0 0:00.00 rpc.idmapd 2454 root 20 0 44924 2012 1044 S 0.0 0.1 0:00.01 rpc.mountd 2464 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 nfsd4 2465 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 nfsd4_callbacks 2466 root 20 0 0 0 0 S 0.0 0.0 0:00.00 lockd 2469 root 20 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 2470 root 20 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 2471 root 20 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 2472 root 20 0 0 0 0 S 0.0 0.0 0:00.01 nfsd 2473 root 20 0 0 0 0 S 0.0 0.0 0:00.04 nfsd 2474 root 20 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 2475 root 20 0 0 0 0 S 0.0 0.0 0:00.03 nfsd 2476 root 20 0 0 0 0 S 0.0 0.0 0:00.07 nfsd 2481 root 20 0 0 0 0 S 0.0 0.0 0:01.75 kworker/u256:2 3454 root 20 0 139144 5072 3852 S 0.0 0.3 0:00.20 sshd 3458 root 20 0 116188 2932 1768 S 0.0 0.2 0:00.09 bash 3521 postfix 20 0 91876 3912 2916 S 0.0 0.2 0:00.01 pickup 3522 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kworker/1:1 3525 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0 3527 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kworker/0:0 3528 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kworker/0:2
[root@localhost ~]# yum install -y sysstat Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel/x86_64/metalink | 4.9 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/3): epel/x86_64/group_gz | 266 kB 00:00:01 (2/3): epel/x86_64/updateinfo | 851 kB 00:00:02 (3/3): epel/x86_64/primary_db | 6.1 MB 00:01:06 Determining fastest mirrors * epel: mirrors.tongji.edu.cn Resolving Dependencies --> Running transaction check ---> Package sysstat.x86_64 0:10.1.5-12.el7 will be installed --> Processing Dependency: libsensors.so.4()(64bit) for package: sysstat-10.1.5-12.el7.x86_64 --> Running transaction check ---> Package lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================== Package Arch Version Repository Size =================================================================================================== Installing: sysstat x86_64 10.1.5-12.el7 base 310 k Installing for dependencies: lm_sensors-libs x86_64 3.4.0-4.20160601gitf9185e5.el7 base 41 k Transaction Summary =================================================================================================== Install 1 Package (+1 Dependent package) Total download size: 351 k Installed size: 1.2 M Downloading packages: (1/2): sysstat-10.1.5-12.el7.x86_64.rpm | 310 kB 00:00:00 (2/2): lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64.rpm | 41 kB 00:00:01 --------------------------------------------------------------------------------------------------- Total 227 kB/s | 351 kB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 1/2 Installing : sysstat-10.1.5-12.el7.x86_64 2/2 Verifying : sysstat-10.1.5-12.el7.x86_64 1/2 Verifying : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 2/2 Installed: sysstat.x86_64 0:10.1.5-12.el7 Dependency Installed: lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 Complete!
每一個10分鐘纔會生成/var/log/sa/sa日期 #最多保留一個月bash
[root@localhost ~]# sar Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 03:00:01 PM CPU %user %nice %system %iowait %steal %idle 03:10:01 PM all 0.00 0.00 0.05 0.00 0.00 99.95 03:20:01 PM all 0.00 0.00 0.05 0.00 0.00 99.95 Average: all 0.00 0.00 0.05 0.00 0.00 99.95
[root@localhost ~]# sar -n DEV Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 03:00:01 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 03:10:01 PM eno16777736 0.48 0.00 0.03 0.00 0.00 0.00 0.00 03:10:01 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:20:01 PM eno16777736 0.46 0.00 0.03 0.00 0.00 0.00 0.00 03:20:01 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:01 PM eno16777736 0.90 0.25 0.06 0.06 0.00 0.00 0.00 03:30:01 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 Average: eno16777736 0.61 0.09 0.04 0.02 0.00 0.00 0.00 Average: lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 [root@localhost ~]# sar -n DEV 1 #則每一個1秒則返回網卡流量 Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 03:42:03 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 03:42:04 PM eno16777736 1.00 0.00 0.06 0.00 0.00 0.00 0.00 03:42:04 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:42:04 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 03:42:05 PM eno16777736 2.00 1.00 0.12 0.38 0.00 0.00 0.00 03:42:05 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 ^C 03:42:05 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 03:42:06 PM eno16777736 6.78 6.78 0.47 1.18 0.00 0.00 0.00 03:42:06 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 Average: IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s Average: eno16777736 2.70 1.93 0.18 0.42 0.00 0.00 0.00 Average: lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
第一列爲時間,第二列爲網卡名字,第三列rxpck/s上千爲正常,達到萬則要注意dom
[root@localhost ~]# sar -n DEV 1 10 Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 04:17:28 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 04:17:29 PM eno16777736 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:17:29 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:17:29 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 04:17:30 PM eno16777736 1.00 1.00 0.06 0.38 0.00 0.00 0.00 04:17:30 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:17:30 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 04:17:31 PM eno16777736 1.00 1.00 0.06 0.38 0.00 0.00 0.00 04:17:31 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:17:31 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 04:17:32 PM eno16777736 3.00 2.00 0.22 0.49 0.00 0.00 0.00 04:17:32 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 ^C 04:17:32 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 04:17:33 PM eno16777736 3.09 4.12 0.23 0.72 0.00 0.00 0.00 04:17:33 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 Average: IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s Average: eno16777736 1.61 1.61 0.11 0.39 0.00 0.00 0.00 Average: lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
[root@localhost ~]# sar -q 1 10 Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 04:41:22 PM runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 blocked 04:41:23 PM 1 383 0.00 0.01 0.05 0 04:41:24 PM 0 383 0.00 0.01 0.05 0 04:41:25 PM 1 383 0.00 0.01 0.05 0 04:41:26 PM 1 383 0.00 0.01 0.05 0 04:41:27 PM 1 383 0.00 0.01 0.05 0 04:41:28 PM 0 383 0.00 0.01 0.05 0 ^C 04:41:28 PM 0 383 0.00 0.01 0.05 0 Average: 1 383 0.00 0.01 0.05 0 [root@localhost ~]# sar -q -f /var/log/sa/sa27 Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 03:00:01 PM runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 blocked 03:10:01 PM 1 383 0.00 0.01 0.05 0 03:20:01 PM 0 382 0.00 0.01 0.05 0 03:30:01 PM 0 383 0.00 0.01 0.05 0 03:40:01 PM 0 383 0.00 0.01 0.05 0 03:50:01 PM 0 382 0.00 0.01 0.05 0 04:00:02 PM 0 383 0.00 0.01 0.05 0 04:10:01 PM 0 382 0.00 0.01 0.05 0 04:20:01 PM 0 383 0.00 0.01 0.05 0 04:30:01 PM 1 383 0.00 0.01 0.05 0 04:40:01 PM 0 383 0.00 0.01 0.05 0 Average: 0 383 0.00 0.01 0.05 0
[root@localhost ~]# sar -b Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 03:00:01 PM tps rtps wtps bread/s bwrtn/s 03:10:01 PM 0.06 0.00 0.06 0.00 0.42 03:20:01 PM 0.03 0.00 0.03 0.00 0.21 03:30:01 PM 0.10 0.00 0.10 0.01 0.74 03:40:01 PM 0.03 0.00 0.03 0.00 0.19 03:50:01 PM 0.03 0.00 0.03 0.00 0.25 04:00:02 PM 0.04 0.00 0.04 0.00 0.31 04:10:01 PM 0.04 0.00 0.04 0.00 0.25 04:20:01 PM 0.04 0.00 0.04 0.00 0.31 04:30:01 PM 0.06 0.00 0.06 0.00 0.43 04:40:01 PM 0.04 0.00 0.04 0.00 0.29 Average: 0.05 0.00 0.05 0.00 0.34 [root@localhost ~]# sar -b 1 5 Linux 3.10.0-123.el7.x86_64 (localhost.localdomain) 11/27/2017 _x86_64_ (2 CPU) 04:45:30 PM tps rtps wtps bread/s bwrtn/s 04:45:31 PM 0.00 0.00 0.00 0.00 0.00 04:45:32 PM 0.00 0.00 0.00 0.00 0.00 04:45:33 PM 0.00 0.00 0.00 0.00 0.00 04:45:34 PM 0.00 0.00 0.00 0.00 0.00 04:45:35 PM 0.00 0.00 0.00 0.00 0.00 Average: 0.00 0.00 0.00 0.00 0.00
[root@localhost ~]# yum install -y epel-release
32位centos7 不支持epel-releasessh
[root@localhost ~]# yum install -y nload Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: mirrors.tongji.edu.cn Resolving Dependencies --> Running transaction check ---> Package nload.x86_64 0:0.7.4-4.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================== Package Arch Version Repository Size =================================================================================================== Installing: nload x86_64 0.7.4-4.el7 epel 70 k Transaction Summary =================================================================================================== Install 1 Package Total download size: 70 k Installed size: 176 k Downloading packages: warning: /var/cache/yum/x86_64/7/epel/packages/nload-0.7.4-4.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Public key for nload-0.7.4-4.el7.x86_64.rpm is not installed nload-0.7.4-4.el7.x86_64.rpm | 70 kB 00:00:01 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-9.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : nload-0.7.4-4.el7.x86_64 1/1 Verifying : nload-0.7.4-4.el7.x86_64 1/1 Installed: nload.x86_64 0:0.7.4-4.el7 Complete!
Device eno16777736 [192.168.9.134] (1/2): =================================================================================================== Incoming: Curr: 1.39 kBit/s Avg: 1.23 kBit/s Min: 720.00 Bit/s Max: 4.16 kBit/s Ttl: 10.15 MByte Outgoing: Curr: 8.35 kBit/s Avg: 8.41 kBit/s Min: 4.27 kBit/s Max: 12.51 kBit/s Ttl: 965.00 kByte