Virtual Memory in Linux - Using VMSTAT

HOWTECH
HOWTECH
6.5 هزار بار بازدید - 11 سال پیش - The vmstat command in the
The vmstat command in the Linux virtual memory can be used to perform different actions and provide you with various statistics.

Don't forget to check out our site http://howtech.tv/ for more free how-to videos!
ithowtovids - our feed
Facebook: howtechtv - join us on facebook
https://plus.google.com/1034403827176... - our group in Google+

The virtual memory in Linux can be accessed easily which allows us to use different commands so as to allow us to print different statistics and perform other actions.

Follow the tutorial below so as to learn how to use the vmstat Linux command.

Step 1 -- Open the terminal application
First of all, click on dash and open up the terminal application.
With that done, type the command "vmstat" and hit the "enter" key.
Over here you can see all the statistics related to the virtual memory being utilized, including information about processes, memory, paging, block IO, traps, and cpu activity.

Step 2 -- Apply various switches
There are various switches that can be applied with the "vmstat" command for different purposes. Let's look into some of them over here.
If you want to view the version of procps in linux type vmstat --V.

Step 3 -- Type in "vmstat --n"
If you type in vmstat --n, the -n switch over here causes the header to be displayed only once rather than being reprinted regularly.

Step 4 -- Print the inactive/active page stats
The vmstat --a command prints the inactive/active page stats in linux.

Step 5 -- Check the disk statistics
If you want to check out the disk statistics, type in vmstat --d.

Step 6 -- Print the disk table
Similarly, entering in the command: vmstat --D, prints the disk table.

Step 7 -- Print the disk partition statistics
The vmstat --p sda1 command (or any other partition) prints the disk partition statistics.

Step 8 -- Enter the "vmstat --s" command
To print the table of virtual memory table in Linux in the terminal application, enter the vmstat --s command.

Step 9 -- Display the unit size
vmstat --S k is used to display the unit size in kilobytes and vmstat --S m is used to display the unit size in megabytes.

Hence different vmstat Linux commands can be used to perform different actions and provide you with various statistics.
11 سال پیش در تاریخ 1392/01/14 منتشر شده است.
6,533 بـار بازدید شده
... بیشتر