Skip to main content

Do you know about vmstat command? - explain all the vmstat command operations


vmstat 
command in Linux/Unix is a performance monitoring command of the system as it gives the information about processes, memory, paging, block IO, disk and CPU scheduling. All these functionalities makes the command vmstat also known as virtual memory statistic reporter
.
Syntax :


vmstat


Delay:
It is the time interval in between two updates. It can be termed as a sampling period after each interval of the sampling period report that will be printed with the updated details. If there will be no delay specified only one report will be printed with average value since boot.

Count:
It is the number of updates which is printed after each interval(sampling period). In absence of count and delay is specified, the default value of count is 
infinite.

Do you know about vmstat command? - explain all the vmstat command operations

Free: It specifies the amount of free memory/idle memory spaces which are not being used.

si: Memory that is swapped in every second from disk in kilobytes.

so: Memory that is swapped out every second to disk in kilobytes.


Syntax:

vmstat -a

-a Active: 
It displays active and inactive memory of the system running.

It shows he best part of it is we can see how much memory is actively used and how much is inactive.

Do you know about vmstat command? - explain all the vmstat command operations


Syntax:

vmstat -f

Forks: It displays the number of forks since boot. Each process is represented by one or more task, depending on thread usage. This display doesn’t repeat.


Do you know about vmstat command? - explain all the vmstat command operations


Syntax:

vmstat -m

Slabs:
This command is used to display slab information.



Do you know about vmstat command? - explain all the vmstat command operations


Syntax:

vmstat -s

State:
This command is used to display a table of various event counters and memory statistics. This display doesn’t repeat.


Do you know about vmstat command? - explain all the vmstat command operations



Syntax:

vmstat -d




Disk Statics: This command is used to display all disk statistics.

Do you know about vmstat command? - explain all the vmstat command operations


Syntax:

vmstat -t

Time stamp: Vmstat command with -t option shows timestamp with every updation, along with the process there lies time of each update. By default memory status is shown in kilobytes

Do you know about vmstat command? - explain all the vmstat command operations


Syntax:

vmstat -S M Delay Count
Eg. vmstat -S M 3 5





Syntax:

vmstat -n

n One header: It is used to display header only once rather than periodically.

Do you know about vmstat command? - explain all the vmstat command operations

Syntax :

man vmstat

It will give you a more information related to the vmstat and its versions, a manual page exist which can be seen in the terminal only. This is one of the best parts of the terminal that it itself provides the manual on how to use the command and what are its aspects.


Do you know about vmstat command? - explain all the vmstat command operations



Comments

Popular posts from this blog

What is STP? - Explain Advantages and Disadvantages

The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. STP is a protocol. It actively monitors all links of the network. To finds a redundant link, it uses an algorithm, known as the STA (spanning-tree algorithm). The STA algorithm first creates a topology database then it finds and disables the redundant links. Once redundant links are disabled, only the STP-chosen links remain active. If a new link is added or an existing link is removed, the STP re-runs the STA algorithm and re-adjusts all links to reflect the change. STP (Spanning Tree Protocol) automatically removes layer 2 switching loops by shutting down the redundant links. A redundant link is an additional link between two switches. A redundant link is usually created for backup purposes. Just like every coin has two sides, a redundant link, along with...

How to Reset Steam Password? – Recover Your Steam Password

Are you suffering with Reset Steam Password? This blog will help you. What is Steam? Steam is the online website for getting the best games for paid. If you are a true game lover then you should have an active account on Steam. Many of people lost their password during the  PC clean-up  or any other circumstances. At that time they have to reset Password of all accounts. Then if you facing issues with the password, you forced to Steam reset password to access the Steam account. We are going to share the guide that how to recover your forgotten Steam Password and make your existing account ready. First of all, you should have enough knowledge about what is Steam and why Steam Account required? Why Steam Account Requires? Before jump into password recovery and Login details, let me clear about why Steam Account required? There are several benefits of this Steam Account from where you can easily download PC games as well as software. Though it will be p...