View Linux system load

Source: Internet
Author: User

Security code: There is no degree of loneliness is impossible to have inner peace.


1. Concept

Load information has 3 values, the first value represents the average load value of the system within 1 minutes , the second value represents the average load value of the system within 5 minutes , and the third value represents the average load value of the system within 15 minutes .

The average load value represents the number of CPU active processes per unit time. the larger the value, the greater the pressure on the server. in general, this value should not exceed the number of CPUs in the server (Linux, a CPU core represents a CPU) is not related.

2. Viewing methods

2.1 W Command

[[Email protected] ~] #w16:18:00 up 378 days, 6:51, 1 user, load average:0.03, 0.01, 0.00USER TTY from   [Email protected] IDLE jcpu PCPU Whatzs pts/0 192.168.10.5 16:17 0.00s 0.01s 0.02s sshd:test [Priv]



1.2 Uptime command

[[Email protected] ~] #uptime16:25:04 up 378 days, 6:58, 1 user, load average:0.01, 0.01, 0.00


1.3 Top Command

[[Email protected] ~] #toptop -16:27:01 up 378 days, 1 user, Load average:0.00, 0.00, 0.00tasks:70 total, 1 R Unning, sleeping, 0 stopped, 0 zombiecpu (s): 0.7%us, 0.0%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%s tmem:1920740k Total, 1848492k used, 72248k free, 156548k buffersswap:0k total, 0k used, 0k Free, 1434032k Cached



Top Command The system resources used for the dynamic monitoring process are changed every 3 seconds, putting the processes that occupy the highest amount of system resources (CPU, memory, disk IO, and so on) to the front, a bit like the Windows Task Manager.

  • The first line is the task queue information, with the uptime command execution results, respectively, the current time, the system run time (format: Days, Hours: minutes), the current user login, system load.

  • The second line is the process information, the total number of processes, the number of processes to sleep, the number of processes to stop, and the number of zombie processes.

  • The third line is the CPU information, the US indicates that the user space consumes CPU percentage, SY indicates that the kernel space consumes CPU percentage, NI represents the CPU percent of the process that has changed the priority in the user process space, the ID represents the idle percentage, and WA represents the percentage of CPU time waiting for the input output. Hi indicates the percentage of hardware CPU terminal occupancy, SI represents the percentage of soft interrupt occupancy, and St represents the percentage of virtual machine occupancy.

  • Row Four is memory information, which is the total amount of physical memory, the total amount of physical memory used, the total amount of free memory, and the amount of memory used as the kernel cache.

  • The five lines are swap information, respectively, the total number of swap areas, the total amount of swap areas used, the total amount of free swap areas, the total amount of the buffer swap (in-memory content is swapped out to the swap area, and then swapped into memory, but the used swap area has not been overwritten, the value is the size of these contents already exist in the When the corresponding memory is swapped out again, it is no longer necessary to write to the swap area. )

  • Line Six is the details of each process, the PID indicates that the process Id,user represents the user name of the process owner, the PR represents the priority, NI represents the nice value (negative values are high priority, positive values represent low priority), and VIRT represents the total amount of virtual memory used by the process (unit kb,virt=swap+ RES), res represents the amount of physical memory (in Kb,res=code+data) that the process uses, not swapped out, and SHR represents the shared memory size (in kilobytes), S represents the process state (d= non-interruptible sleep state, r= run, s= sleep, t= trace/Stop, z= Zombie process),%CPU represents the percentage of CPU time that was last updated to current,%mem represents the percentage of physical memory used by the process, time+ represents the total CPU time used by the process (in 1/100 seconds), and the command represents the name or command line.


This article is from the "Concise Linux" blog, so be sure to keep this source http://easylinux.blog.51cto.com/9732761/1945263

View Linux system load

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.