Current location - Music Encyclopedia - Chinese History - What is the command to check virtual memory and cpu usage in linux?
What is the command to check virtual memory and cpu usage in linux?
Linux virtual memory statistics: vmstat

order

vmstat

-

Report statistics of virtual memory. vmstat

About the process of the system, memory usage, exchange pages and

Input-output

Block usage, interrupts, and

cpu

Use statistics and report corresponding information. memory

swpd:

Virtual memory usage, in KBfree:

Available memory in KBbuff:

The amount of memory used as cache, in KB.si:

Number of pages swapped from disk to memory in KB/ sec, so:

The number of pages swapped from memory to disk, in KB/ sec. run quickly

vmstat

No special permission is required.

These system information are used to provide users with information to analyze system bottlenecks. Linux will not run when calculating the process situation.

vmstat

Do the math yourself.

Vmstat monitors the virtual memory, processes and CPU activities of the system, and it also summarizes the number of disks and forks and VFWorks operations.

The disadvantage is that vmstat can't deeply analyze a process, but can only analyze the overall situation of the system.

For example: [Angel @ Home]

/Angel] #

vmstat

procs

memory

exchange

superorthicon

system

cpu

r

b

w

swpd

free

amateur

stash

The seventh note of the major scale

therefore

Bisexual

pah

exist

cesium (Cs)

we

Syria

Identification (identification)

7 180

1852

56092

48400

six

five

24

eight

18

These include:

Procs

r:

Number of processes waiting to run

B:

Number of processes in uninterrupted sleep state

Female:

The number of runnable processes that have been swapped out.

memory

swpd:

Virtual memory usage (KB)

Free:

Available memory, KB

Pale yellow:

The amount of memory used as a cache, in KB.

exchange

si:

The number of pages swapped from disk to memory, in KB/ sec.

So:

The number of pages swapped from memory to disk, in KB/ sec.

Image orthographic tube

bi:

Number of blocks sent to the block device, unit: blocks/second.

Bo:

Number of blocks received from the block device, unit: blocks/second.

system

At:

The number of interrupts per second, including clock interrupts.

cs:

The number of environment (context) switches per second.

cpu

according to

cpu

The total usage percentage that will be displayed.

United States:

cpu

Use time

Sai:

cpu

System service time

id:

idle time