Summary of hp unix top commands

Source: Internet
Author: User

Hp unix has maintained a high market share in large enterprise-level hosts. For its top commands, I have read some documents before. Here I will summarize how to analyze the contents.

1.TopThe command syntax is as follows:

Top [-s time] [-D count] [-q] [-u] [-H] [-N number] [-f filename]

-S time: set the screen refresh latency, in seconds. The default value is 5 seconds.

-D count: set the number of screen refreshes, and exit after the display count is refreshed.

-Q: If you are authorized by nice, using-Q can make top running faster.

-U: replace username with the displayed user ID to speed up command running

-H: When the system has multiple CPUs, the status information of individual CPUs is hidden and only the average status value is displayed.

-N number: set the number of processes displayed on each screen. If the number value exceeds the maximum number of processes, the setting is invalid.

-F filename: name of the file to be redirected. The default value is 16 processes.

 

2.The keyboard control command is as follows:

J: switch to the next Screen

K: switch to the previous screen.

T: switch to the initial Screen

Q: Exit top running at any time

 

3.Display format analysis:

HeaderDisplay Information:System: the current date of the machine name. Load averages indicates the number of loads that the system runs in 1 minute, 5 minutes, and 15 minutes (that is, the average number of processes in the running queue, which is recommended to be normal under 3, if the value is greater than 5, it indicates a serious performance problem). Next, the total number of processes and the number of various types of processes (the status categories include run, sleep, idle stop, and zombie botnets ).

 

CPU state:Lists the running status of all the CPUs in the system. Each CPU occupies an exclusive row, in turn, the percentages represent the average load process count, the user-Occupied time ratio, the nice command-changed priority task time ratio, the Sys system time ratio, and the idle time ratio., the remaining columns are the percentage of time used by the block, swait, Intr (indicating the interruption), and SSYS states. The final AVG indicates the average value of the active process (listed only when the multi-processor system is used)

 

Memory State:Lists the memory usage, including the total memory size (activity value) of the actual (real) activity, the total memory size (activity value) of the virtual (virtual) activity, and the remaining available memory value. (If you need to know the total memory value of the machine, you 'd better view it through machinfo)

 

Process state:Lists the default 16 running states of processes, including the CPU at which the process is processed; tty indicates the terminal number; PID indicates the process number; username indicates the user name; pri indicates the task priority; nice indicates the nice value of the task. A process with a low nice value will have a higher priority. Size indicates the code of the task plus data and stack size. Res indicates the total number of physical memory used by the task; state indicates the status of the task. Time indicates the total CPU time used since the start of the task, in seconds. % WCPU indicates the CPU utilization weight percentage of the process; % CPU indicates the percentage of the original CPU usage of the process, and the CPU usage of the dependent task is refreshed from the last screen. Command indicates the command name of the process to be started. If it is too long, it will be abbreviated

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.