Linux centos7 daily operation and maintenance - use w to view system load, vmstat command, top command, sar command, nload command

1. Use w to view the system load

w, uptime to view the system load, 0.00 means the load is 0 within 1 minute

cat /proc/cpuinfo to view the number of cpu cores

Second, vmstat command, view process, cpu, memory, swap, io, system

r 、 swpd 、 si 、 so 、 bi 、 bo 、 us 、 wa

Dynamic display a total of 5 times per second

 run is running, the block process is waiting, and the swap partition will not be placed until there is not enough memory.

How many kilobytes of data si/so enter/exit from swap memory, bi/bo read/write memory from disk, us user occupies cpu percentage, will not exceed 100, id is idle, wa waits for wait

 

3. top

Top view the resource usage of the process, update every 3 seconds

 

top -c shows detailed process information

top -bin1 shows all processes statically

 

q to exit, number 1 to show all core cpus, M to sort by memory usage

Big P sorted by cpu usage

 

 

 Fourth, the sar command

[root@davery ~]# yum install -y sysstat

 

sar -n DEV 1 5 NIC traffic

sar -q system load

sar -b disk read and write

 

 sar -f /var/log/sa/sa08 View historical file No. 08

Five, nload command

yum install -y epel-release

yum install -y nload

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325351254&siteId=291194637