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

What are the Advantages and Disadvantages of TCP/UDP ?? Difference between TCP and UDP

As in previous blog we have define and explain about what is TCP and UDP and from now we are moving ahead with Advantages, Disadvantages and Difference of TCP and UDP but for this you have to know about TCP and UDP hence to understand it go for a What is TCP and UDP . Advantage of TCP Here, are pros/benefits of TCP: It helps you to establish/set up a connection between different types of computers. It operates independently of the operating system. It supports many routing-protocols. It enables the internetworking between the organizations. TCP/IP model has a highly scalable client-server architecture. It can be operated independently. Supports several routing protocols. It can be used to establish a connection between two computers. Disadvantages of TCP Here, are disadvantage of using TCP: TCP never conclude a transmission without all data in motion being explicitly asked. You can't use for broadcast or multicast transmission. TCP has no block boundaries, so you