Linux resource manager --- top command is a common performance analysis tool in Linux. it can display the resource usage of various processes in the system in real time, similar to the Windows Task Manager. The following describes how to use it. In linux, enter top, and press enter for the following information: top...
Linux resource manager --- top command is a common performance analysis tool in Linux. it can display the resource usage of various processes in the system in real time, similar to the Windows Task Manager. The following describes how to use it. In linux, enter top, and press enter for the following information: top-01:06:48 up, 1 user, load average: 0.06, 0.60, 0.48 Tasks: 29 total, 1 running, 28 sleeping, 0 stopped, 0 zombie Cpu (s): 0.3% us, 1.0% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 191272 k total, 173656 k used, 17616 k free, 22052 k buffers Swap: 192772 k total, 0 k used, 192772 k free, 123988 k cachedPID user pr ni virt res shr s % CPU % mem time + COMMAND 1379 root 16 0 7976 2456 1980 S 0.7 1.3. 03 sshd www.2cto.com 14704 root 16 0 2128 980 R 796 0.7. 72 top 1 root 16 0 1992 632 S 544 0.0. 90 init 2 root 34 19 0 0 0 S 0.0 0: 00. 00 ksoftirqd/0 3 root RT 0 0 0 0 S 0.0 0.0. 00 watchdog/0: the first five lines in the statistical information area are the overall statistics of the system. The first line is the task queue information, which is the same as the execution result of the uptime Command. The content is as follows: 01: 06: 48 current time up system running time, format: Minute 1 user current login user load average: 0.06, 0.60, 0.48 system load, that is, the average length of the task queue. The three values are the average values from 1 minute, 5 minutes, and 15 minutes ago to the present. Second and third, information about the process and CPU. When multiple CPUs exist, the content may exceed two rows. Content: Tasks: 29 total process Count 1 running processes running 28 sleeping sleep processes 0 stopped processes 0 zombie processes Cpu (s ): 0.3% us User space usage CPU percentage 1.0% sy kernel space usage CPU percentage 0.0% ni user process space change priority process occupation CPU percentage 98.7% id idle CPU percentage www.2cto.com 0.0% wa waiting for input and output CPU time percentage 0.0% hi 0.0% si last two behavior memory information. Content: Mem: 191272 k total physical memory total 173656 k used total physical memory used 17616 k free memory total 22052 k buffers used as Kernel cache memory Swap: 192772 k total swap areas total 0 k used swap areas total 192772 k free swap areas total 123988 k cached buffer swap areas total. The content in the memory is swapped out to the swap zone and then into the memory, but the used swap zone has not been overwritten. this value is the size of the swap zone where the content already exists. When the corresponding memory is swapped out again, you do not have to write data to the swap zone. Detailed information about each process is displayed at the bottom of the process information area. First, let's take a look at the meaning of each column. Serial number column name meaning www.2cto.com a PID process id B PPID parent process id c RUSER Real user name d UID process owner USER id e user process owner USER name f GROUP process owner GROUP name g TTY start the terminal name of the process. Processes not started from the terminal are displayed? H PR priority I NI nice value. A negative value indicates a high priority. a positive value indicates the CPU used at the low priority j P, only meaningful k % CPU usage percentage of cpu time last updated to the present in multi-CPU environment l total cpu time used by the TIME process, in seconds m TIME + total cpu time used by the process, unit: 1/100 seconds n % MEM percentage of physical memory used by the process o total virtual memory used by the VIRT process, unit: kb. VIRT = SWAP + RES p in the virtual memory used by the SWAP process, measured in kb. The size of the physical memory used by the q RES process, not swapped out, in kb. RES = CODE + DATA r CODE: the physical memory occupied by executable CODE. unit: kb. the physical memory occupied by parts other than the executable CODE (DATA segment + stack, unit: kb t SHR shared memory size. unit: kb u nFLT page error count: www.2cto.com v. the number of modified pages that were last written to the present. W S process status. D = non-disruptive sleep state R = Running S = sleep T = tracking/stopping Z = Zombie process x COMMAND name/COMMAND line y WCHAN if the process is sleeping, displays the system function name z Flags task mark in sleep.
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.