Linux resource monitoring and analysis

A, top

The first line, the task queue information, with the uptime command execution results

  • System Time: 15: 23:10
  • Running time: up 236 day, 4min,
  • Currently logged on user: 2 user
  • Load Balancing (uptime) load average: 1.90, 1.81, 1.79
  • Average number of the latter three are 1 minute, 5 minutes, 15 minutes load.
  • load average is the number of data every five seconds to check a dynamic process, and then calculate the value of a specific algorithm. If this number is divided by the number of logical CPU, the result is higher than 5 when he shows that the system is overloaded

The second line Tasks

  • The total process: 160 total, 
  • Run: 1 running,
  • Sleep: 157 sleeping,
  • Stop: 1 stopped,
  • Zombie process: 0 zombie

Third row: CPU status

  • [User space] 6.2% us - the percentage of space occupied by the user's CPU.
  • [] Sysctl 0.7% sy - the percentage of space occupied by the CPU core.
  • Percentage change over the priority of the process CPU - 0.0% ni []
  • 92.4% id] [idolt - the percentage of CPU idle
  • 0.0% wa [wait] - the percentage of CPU-IO wait
  • The percentage of CPU's hardware interrupt - 0.0% hi [Hardware IRQ]
  • 0.6% si [Software Interrupts] - soft interrupt the CPU occupancy percentage 
  • 0.1% st (Steal time): When the hypervisor is servicing another virtual processor, a virtual CPU waits for the actual percentage of CPU time.

The fourth line, memory status

  •  Total memory: 8035560k total,
  •  Used: 5679464k used, 
  • Available: 2356096k free, 
  • Cache memory capacity: 281576k buffers

Fifth row, swap swap information (virtual memory)

  • Virtual memory total capacity: 1998844k total, 
  • Used: 0k used, 
  • Available: 1998844k free, 
  • Total swap buffer: 3840756k cached

Remarks:

  • Available memory = free + buffer + cached
  • For memory monitoring, where we in the top fifth line should always monitor swap swap partition used, if this value is constantly changing, indicating ongoing core data exchange and swap memory, which is a real memory is not enough.
  • The total amount of memory (used) used in the fourth row refers to the number of the memory system is now controlled by the kernel,
  • The total amount of free memory in the fourth row (Free) is the number of cores has not been included in its scope of control.
  • Into the kernel memory management are not necessarily in use, also includes used in the past can now be reused in the memory, the kernel does not return these can be re-used memory to go free, so free memory will be on linux less and less, but do not worry about it.

Guess you like

Origin www.cnblogs.com/jalja/p/11777423.html