Linuxdaily operation and maintenance management skills
Monitor system Status
1.w/uptime View the status of the system, execute this command to know who is currently logged into the system, and what programs they are executing , and what the current load is.
2.cat/proc/cpuinfo View CPU cores , refer to logical CPUs
3.vmstat Monitoring System status for information about processes, virtual storage, paging space, and CPU activity
4. usage vmstat 1 dynamic display once per second
R: same as Run, showing the number of processes executing at this time,
B: The number of processes waiting for IO, and how many processes are waiting.
SWPD: swap partition, when memory is not enough, the system will use a portion of the memory space to do in the SWPD space
Free: primary display of memory status
Si: How many data have entered into memory (unit K)
So: How many data are out of memory (unit K)
Bi: How much data is in memory from the disk, that is, the amount of data read
Bo: How much data is written to disk
US: represents the user level,the number under US indicates the percentage of resources occupied by the user
ID: The percentage of idle resource consumption
sy+us+us=100
WA: The percentage of CPU waiting , how many processes are waiting for CPU
5.top: View the specific process,op display system current process and other conditions , is a dynamic display process
6.top–c Show detailed process information
7.TOP–BN1 static display of all processes
8.sar:sar( system Activity Reporter report) is one of the most comprehensive system performance analysis tools available on Linux, and can be used to report the activities of the systems in many ways. Includes: Read and write of files, usage of system calls, disk I/O,CPU efficiency, memory usage, process activity and IPC -related activities, etc.
-A: Sum of all reports
-u: Output statistics about CPU usage
-V: output statistics for inode, files, and other kernel tables
-D: Output activity information for each block device
-r: Output memory and swap space statistics
-B: Display statistics for I/O and transfer rates
-A: file read and write status
-C: Output process statistics, number of processes created per second
-r: Output memory page Statistics
-y: terminal equipment activity Situation
-W: Output system Exchange activity information
9.nolad: Monitor network card traffic
Linux daily operations management tips