Top is designed for Linux

Source: Internet
Author: User
Tags add numbers
Top is designed for Linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. Top is designed for Linux. The concept of Free in FreeBSD VM is completely different from that in other operating systems. Using top to view Free memory is meaningless for FreeBSD. The correct method is to check vmstat.

# Vmstat
Procs memory page disk faults cpu
R B w avm fre flt re pi po fr sr ad0 in sy cs us sy id
0 2 1 270512 20316 30 0 0 26 5 1223 1589 98 593 1 1 99

It is best to use the vmstat t [n] command, for example, vmstat 5 5, which indicates that N (5) sampling is performed within T (5) seconds. If only vmstat is used, the actual system conditions cannot be reflected.

Procs:
R --> Number of processes running
B --> Number of processes waiting for io (waiting for I/o, paging, etc)
W --> processes that can enter the running queue but are replaced

Memoy (in k units, including virtual kernel and real memory, the virtual memory used by running or the last 20 seconds in the running process will be considered active)
Avm --> active virtual memory
Free --> idle memory

Pages)
Flt --> total number of error pages
Re --> recycle page
Pi --> enter page count
Po --> Number of outgoing pages
Fr --> Number of free pages
Sr --> pages scanned by clock algorithm per second

Disk Displays disk operations per second (the first two letters and numbers of the disk name are displayed. By default, only two disks are displayed, you can add-n to add numbers or fill in the disk names under the command line .)

Fault displays the number of interrupts per second
In --> device interruption
Sy --> system interruption
Cy --> cpu Switch

Cpu indicates the cpu usage status
Cs --> time used by the user process
Sy --> time used by the system process
Id --> cpu idle time

Explanation:
If r is often greater than 4 and the id is often less than 40, the cpu load is heavy.
If pi and po are not equal to 0 for a long time, the memory is insufficient.
If the disk is often not equal to 0 and the queue in B is greater than 3, the io performance is poor.

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.