What command does linux use to view virtual memory?-linux operation and maintenance

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, process and CPU activities of the operating system. It is to make statistics on the overall situation of the system. The disadvantage is that it cannot conduct in-depth analysis on 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]: show active and inactive memory [-n]: Only display the field name once at the beginning, and output a little more humane for multiple collections of information [-t]: At the end of each message, Display the time of collecting information [-S unit]: Use the specified unit to display. The parameters are k , K , m , M , representing 1000, 1024, 1000000, 1048576 bytes (byte) respectively. The default unit is K (1024 bytes) [delay [count]]: delay is the information collection interval, and count is the number of times information is collected. vmstat [-s] [-n] [-S unit] [-s]: Display memory-related statistics vmstat [-m] [-n] [delay [ count]] [-m]: display slabinfo,…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索