Details about attributes listed by the vmstat command

Source: Internet
Author: User
Vmstat items:
Procs:
R --> Number of processes waiting in the running queue
B --> Number of processes waiting for Io
W --> processes that can enter the running queue but are replaced
Memoy
Swap --> available swap memory (k)
Free --> idle memory (k)
Pages
Re -- recycling page
Mf -- non-serious error page
Pi -- number of incoming pages (k)
Po -- number of outgoing pages (k)
Fr -- number of free pages (k)
De -- number of missed pages read in advance
Sr -- clock Algorithm Scanned page
Disk Displays disk operations per second. S indicates the SCSI disk, and 0 indicates the disk number.
Fault displays the number of interrupts per second
In -- device interruption
Sy -- System interruption
Cy -- CPU Switching
CPU indicates the CPU usage status
CS -- time used by the user process
Sy -- time used by the system process
Id -- CPU idle time
If R is often greater than 4 and the ID is often less than 40, it indicates that 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.
1) if the process R running in processes is continuously greater than the number of CPUs in the system, the system is running slowly, and most processes are waiting for the CPU.
2 .) if the output number of R is four times higher than the number of available CPUs in the system, the system is facing a CPU shortage problem, or the CPU speed is too low. Most processes in the system are waiting for the CPU, the process in the system is slow.
3. If the idle time (cpu id) remains 0 and the system time (CPU Sy) is twice the user time (cpu us), the system is facing a shortage of CPU resources.
Solution:
When the above problems occur, adjust the application first. Program CPU usage, so that the application can use the CPU more effectively. You can also consider adding more CPUs. The CPU usage can also be combined with mpstat, PS aux top prstat

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.