In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux memory monitoring vmstat command how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Vmstat is the abbreviation of Virtual Meomory Statistics (Virtual memory Statistics), which can monitor the virtual memory, processes and CPU activities of the operating system. He is to carry on the statistics to the overall situation of the system, the deficiency is unable to carry on the in-depth analysis to a certain process. It is usually tested with the vmstat 5 5 command, which means 5 samples are taken in 5 seconds. There will be a summary of data that can reflect the real system.
# vmstat 5 5
Procs-memory--swap---io-----system---cpu
R b swpd free buff cache si so bi bo in cs us sy id wa
10 62792 3460 9116 88092 6 30 189 89 1061 569 17 28 54 2
00 62792 3400 9124 88092 0 00 14 884 434 4 14 81 0
00 62792 3400 9132 88092 0 00 14 877 424 4 15 81 0
1 0 62792 3400 9140 88092 0 00 14 868 418 6 20 74 0
1 0 62792 3400 9148 88092 0 00 15 847 400 9 25 67 0
The output of the Linux memory monitoring vmstat command is divided into six parts:
(1) process procs:
R: the number of processes waiting in the run queue.
B: the number of processes waiting for io.
(2) Linux memory monitoring memory memoy:
Swpd: currently available swap memory (in KB).
Free: free memory (in KB).
Buff: the number of memory buffered out (in KB).
Cache: the amount of memory used for caching (in KB).
(3) Linux memory monitoring swap exchange page
Si: the number of swapped pages swapped from disk to memory, in KB/ seconds.
So: the number of swapped pages swapped from memory to disk, in KB/ seconds.
(4) Linux memory monitoring io block devices:
Bi: the number of blocks sent to the block device, in blocks per second.
Bo: the number of blocks received from the block device, in blocks per second.
(5) Linux memory monitoring system system:
In: number of interrupts per second, including clock interrupts.
Cs: number of environment (context) transitions per second.
(6) Linux memory monitoring cpu CPU:
Cs: the time spent by the user process. Expressed as a percentage.
Sy: the time used by the system process. Expressed as a percentage.
Id: idle time of the CPU. Expressed as a percentage.
If r is often greater than 4 and id is often less than 40, the CPU is heavily loaded. If bi,bo is not equal to 0 for a long time, the physical memory capacity is too small.
Thank you for reading this article carefully. I hope the article "how to use vmstat commands in memory Monitoring in Linux" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.