In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, what the editor shares with you is what the command for linux to view virtual memory is. I believe many people do not know much about it. In order to let you know more about the command for linux to view virtual memory, I have summarized the following contents for you. Let's look down together. I'm sure you'll get something.
Linux uses the vmstat command to view virtual memory.
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. 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.
By default, the vmstat command is not installed, you need to install the sysstat package, which contains the vmstat program.
Basic parameters:
Vmstat [- a] [- n] [- t] [- S unit] [delay [count]]
[- a]: displays active and inactive memory
[- n]: display the field name only once at the beginning, and output a bit more humanized in the case of multiple collections of information
[- t]: displays the time when the information was collected at the end of each message
[- S unit]: displays in specified units. The parameters are k, K, m, M, which represent 1000, 1024, 1000000, and 1048576 bytes (byte), respectively. The default unit is K (1024 bytes)
[delay [count]]: delay is the interval of information collection, and count is the number of times information is collected.
Vmstat [- s] [- n] [- S unit]
[- s]: displays memory-related statistics
Vmstat [- m] [- n] [delay [count]]
[- m]: displays the slabinfo,slabinfo information recorded in the / proc/slabinfo file. Slab is a memory allocation mechanism of linux.
Vmstat [- d] [- n] [delay [count]]
[- d]: displays statistics for related disks
Note: the difference between this and downstairs-p statistical information is different, statistical object this is disk-p is a subpartition, this cannot specify all output
Vmstat [- p disk partition] [- n] [delay [count]]
[- p disk partition]: displays statistics for disk partitions, which are not as useful as iostat information
Vmstat [- f]
[- f]: number of fork since boot
Note: the fork here should be the fork () function of the kernel. In the parent process, fork returns the process ID of the newly created child process.
On the linux to view the virtual memory command is shared here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well share it for more people to see.
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.