[root@aminglinux-02 ~]# w
21:05:02 up 1:00, 1 user, load average: 0.00, 0.01, 0.05
USER(登录的用户) TTY(登录的类型) FROM(登录的地址) LOGIN@(登录时间) IDLE JCPU PCPU WHAT
root pts/0 192.168.16.1 20:35 6.00s 0.12s 0.06s w
[root@aminglinux-02 ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
[root@aminglinux-02 ~]# uptime
21:16:47 up 1:12, 1 user, load average: 0.00, 0.01, 0.05
[root@aminglinux-02 ~]#
[root@aminglinux-02 ~]# 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
2 0 0 736148 876 155576 0 0 27 3 31 57 0 0 99 0 0
0 0 0 736132 876 155576 0 0 0 0 30 42 0 0 100 0 0
0 0 0 736132 876 155576 0 0 0 0 25 39 0 0 100 0 0
0 0 0 736132 876 155576 0 0 0 0 25 34 0 0 100 0 0
0 0 0 736132 876 155576 0 0 0 0 26 37 0 0 100 0 0
top - 22:18:36 up 11 min, 1 user, load average: 0.00, 0.04, 0.07
Tasks: 91 total, 1 running, 90 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.3 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 1008392 total, 734964 free, 116836 used, 156592 buff/cache
KiB Swap: 2097148 total, 2097148 free, 0 used. 723560 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
42 root 20 0 0 0 0 S 0.3 0.0 0:01.54 kworker/0:2
533 root 20 0 302712 6140 4712 S 0.3 0.6 0:01.30 vmtoolsd
1 root 20 0 128092 6696 3948 S 0.0 0.7 0:01.77 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.09 ksoftirqd/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kworker/0:0
6 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/u128:0
7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 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.61 rcu_sched
10 root rt 0 0 0 0 S 0.0 0.0 0:00.01 watchdog/0
[root@aminglinux-02 ~]# sar -n DEV 1 10
Linux 3.10.0-514.el7.x86_64 (aminglinux-02) 2017年07月22日 _x86_64_ (1 CPU)
23时23分55秒 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s
23时23分56秒 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
23时23分56秒 ens33 1.00 1.00 0.06 0.18 0.00 0.00 0.00
Device ens33 [192.168.16.120] (1/2):
=====================================================================================
Incoming:
当前Curr: 944.00 Bit/s
平均Avg: 1.15 kBit/s
最小Min: 936.00 Bit/s
最大Max: 1.83 kBit/s
Ttl: 146.41 MByte
Outgoing:
Curr: 8.05 kBit/s
Avg: 7.05 kBit/s
Min: 4.21 kBit/s
Max: 8.05 kBit/s
Ttl: 3.18 MByte
原文地址:http://blog.51cto.com/akui2521/2112935