Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux detection command (vmstat)     - CentOS 6.5 Linux System Customization and Packaging Quick Implementation Script (Linux)

- Python cause yum upgrade error (Linux)

- Android Studio utility plug organize, create sharp artifact (Programming)

- Linux partition command (Linux)

- Linux install deploy Ansible (Linux)

- Linux file and directory permissions settings (Linux)

- Linux common network tools: batch scanning of nmap hosting service (Linux)

- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)

- Install Ubuntu Software Center App Grid (Linux)

- Oracle DataGuard principles and basic configuration (Database)

- iOS development -Launch Image and Launchscreen (Programming)

- Simple to install Tor browser to Ubuntu 14.04 and Linux Mint 17 (Linux)

- CentOS Linux build SVN server (Server)

- How to experience Unity 8 Mir on Ubuntu 16.04 (Linux)

- Oracle 11g R2 RAC RMAN backup script example (Database)

- How to manage your to-do list with the Go For It on Ubuntu (Linux)

- Linux Demo dd IO test (Linux)

- Automatic batch resolve dependencies problem locally installed rpm package (Linux)

- systemd Power Management (Linux)

- For the FreeBSD install Adobe Flash plug-in (Linux)

 
         
  Linux detection command (vmstat)
     
  Add Date : 2018-11-21      
         
         
         
  Linux detection command (vmstat) command format:
vmstat [-a] [-n] [-S unit] [delay [count]] vmstat [-s] [-n] [-S unit] vmstat [-m] [-n] [delay [count]] vmstat [-d] [-n] [delay [count]] vmstat [-p disk partition] [-n] [delay [count]] vmstat [-f] vmstat [-V]
Command functions: virtual memory to display information about the command parameters:
-a: Display active and inactive memory
-f: the number of fork display start date from the system.
-m: show slabinfo
-n: show only once at the beginning of each field name.
-s: display memory-related statistics for the number of systems and a variety of activities.
delay: refresh interval. If not specified, show only one result.
count: refreshes. If you do not specify a refresh frequency, but specifies the refresh interval, then refresh frequency is infinite.
-d: display disk statistics.
-p: display statistics for a specified disk partition
-S: Using the specified units. Parameters k, K, m, M, representing 1000,1024,1000000,1048576 byte (byte). The default unit is K (1024 bytes)
-V: Display vmstat version information.
[Root@www.linuxidc.com ~] # vmstat 2 8 procs ----------- memory ---------- - --swap-- ----- io- --- --system-- ----- cpu ----- rb swpd free buff cache si so bi bo in cs us sy id wa st 0 0 0 21928380 471140 9757520 0 0 0 6 9 12 0 0 100 0,000,021,928,388,471,140 9,757,524,002,601,091 20990010000000 21928372 471140 9,757,524,000,581,067 20850010000000 21,928,240 471140 9757524 00060108321040 0 1,000,000,021,928,224 471,144 9,757,524,000,641,079 21000010000100 21928224 471 144 9,757,528,002,521,081 20920010000000 21,921,000 471,144 9757528 00680118821620 0 99 0,010,021,920,628,471,144 9,757,548 0,007,410,942,110,001,000 0
Linux memory monitor vmstat command output is divided into six parts:
(1) Process procs:
r: The number of processes in the run queue waiting. When this value exceeds the number of CPU, there will be a CPU bottleneck. The top of the load and also has a relationship, generally more than 3 load is relatively high, more than 5 will be high, more than 10 is not normal, the status of the server is very dangerous. top load similar second run queue. If the run queue is too large, that your CPU is very busy, usually resulting in high CPU utilization.
b: the number of waiting for io process. When this value is a high Description I / O wait serious.
(2) Linux memory monitor memory memoy:
swpd: now available swap memory (in KB).
free: free memory (in KB).
buff: the buffer to the number (unit: KB) of memory.
cache: is used as a cache memory (Unit: KB).
(3) Linux memory monitor exchange swap page
si: the amount of swap pages from memory to disk swapping, unit: KB / sec.
so: the number of swap pages from memory is swapped to disk, unit: KB / sec.
(4) Linux memory monitoring io block device:
bi: Blocks sent to a block device, unit: blocks / sec.
bo: Blocks received from a block device to the number of units: Block / sec.
(5) Linux system memory monitoring system:
in: the number of interrupts per second, including the clock interrupts.
cs: second environment (context) conversions.
(6) Linux memory cpu monitor CPU:
cs: user process time. Expressed as a percentage. If you are using more than 40%, then we should consider the optimization process
sy: system time used by the process. Expressed as a percentage. If you use more than 40%, then we should consider the operating system BUG or by public transport, and so on .....
id: central processor idle time if long-term use of more than 50% if more than 40%, then we should consider the optimization algorithm or program to add CPU wa: the percentage of CPU time consumed by IO wait wa value is high, indicating IO wait Comparison severe, this may be due to the large number of disks in random access cause, there may be a bottleneck of bandwidth disk (operation block). If r is often greater than 4, and id is often less than 40 indicates a heavy load on the central processor. If bi, bo long-term is not equal to 0, indicating that the physical memory is too small
Summary: Use this command to gather information that can help us analyze it server I / O problem, or CPU problem, very useful command.
     
         
         
         
  More:      
 
- Python basis: os module on the file / directory using methods commonly used functions (Programming)
- Java factory pattern (Factory mode) (Programming)
- EChart simple and practical control on chart (Programming)
- Use window.name + iframe cross-domain access to data Detailed (Programming)
- using Docker Kitematic on windows (Linux)
- Java developers question (Programming)
- How open source code libraries hosted on Github (Linux)
- Install Firefox 32 official version of the Linux system (Linux)
- Steps to build MPICH2 development environment on CentOS 6.4 (Linux)
- 12 kinds of detection of CPU information on a Linux system tools (Linux)
- Generated characters using Java Videos (Programming)
- 7 JavaScript interview questions (Programming)
- Linux variable learning experience (Linux)
- Linux vi command list (Linux)
- Linux desktop system using the remote server in clear text ssh password (Server)
- Fedora network set up simple (Linux)
- Shell script on the variables with double quotation marks grep small problem (Programming)
- PCM audio under Linux (Linux)
- How linux network security configuration (Linux)
- CentOS7 install and configure Nagios (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.