the iostat (turn https://www.cnblogs.com/ftl1012/p/iostat.html)

iostat is the I / O statistics (input / output statistics) acronym, iostat disk operating system will be the active tool is monitored. It features disk activity statistics reporting the situation, while also reporting the CPU usage. iostat also has a weakness, is that it can not conduct in-depth analysis of a process, the overall situation in the system only for analysis

Common commands show 

iostat installation

1
# iostat属于sysstat软件包。可以直接安装。
1
yum install sysstat

Show all devices load

1
iostat
image

 

Description:

cpu Property Value Description:

% User: CPU the percentage of time the user mode.

% Nice: CPU the percentage of time the user mode with NICE value.

% System: CPU the percentage of time the system mode.

% Iowait: CPU waits for input and output completion percentage.

% Steal: the management of the program to maintain another virtual processor, a virtual CPU waits for the percentage of time unconscious.

% Idle: the percentage of CPU idle time.

Remarks:

If the value of% iowait too high, indicates the presence of the hard disk I / O bottlenecks

If% idle value is high, said more CPU Idle

% Idle value is high if the system slow to respond, the CPU may wait to allocate memory, should increase the memory capacity.

If the value is consistently lower than 10% idle, indicating relatively low CPU processing power, system resources are most needed to solve the CPU.

cpu Property Value Description:

tps: the number of transfers per second device

kB_read / s: the amount of data read from the device (drive expressed) per second;

kB_wrtn / s: the amount of data to a second device (drive expressed) written;

kB_read: The total amount of data read;

kB_wrtn: the amount of the total number of data writing;

Display all the timing information

1
2
# 【每隔2秒刷新显示,且显示3次】
iostat 2  3

Displays the disk information

1
iostat -d /dev/sda

Tty and display information Cpu

1
iostat -t

M units to display all the information

1
iostat -m

See capacity utilization (% util), response time (the await)

1
2
3
#  【-d 显示磁盘使用情况,-x 显示详细信息】
#  d: detail
iostat -d -x -k 1 1

image

Description:

rrqm / s:. for the number of read operations per second merge i.e., delta (rmerge) / s

wrqm / s: the number of write operations performed per second merge i.e. delta (wmerge) / s.

% Util: What percentage of one second of time for I / O

If% util close to 100%, indicating that the generated I / O requests too, I / O system full load

   less than 70% IO idle pressure is large, and generally have more speed read wait.

View cpu state

1
iostat -c 1 1

image

iostat is the I / O statistics (input / output statistics) acronym, iostat disk operating system will be the active tool is monitored. It features disk activity statistics reporting the situation, while also reporting the CPU usage. iostat also has a weakness, is that it can not conduct in-depth analysis of a process, the overall situation in the system only for analysis

Common commands show 

iostat installation

1
# iostat属于sysstat软件包。可以直接安装。
1
yum install sysstat

Show all devices load

1
iostat
image

 

Description:

cpu Property Value Description:

% User: CPU the percentage of time the user mode.

% Nice: CPU the percentage of time the user mode with NICE value.

% System: CPU the percentage of time the system mode.

% Iowait: CPU waits for input and output completion percentage.

% Steal: the management of the program to maintain another virtual processor, a virtual CPU waits for the percentage of time unconscious.

% Idle: the percentage of CPU idle time.

Remarks:

If the value of% iowait too high, indicates the presence of the hard disk I / O bottlenecks

If% idle value is high, said more CPU Idle

% Idle value is high if the system slow to respond, the CPU may wait to allocate memory, should increase the memory capacity.

If the value is consistently lower than 10% idle, indicating relatively low CPU processing power, system resources are most needed to solve the CPU.

cpu Property Value Description:

tps: the number of transfers per second device

kB_read / s: the amount of data read from the device (drive expressed) per second;

kB_wrtn / s: the amount of data to a second device (drive expressed) written;

kB_read: The total amount of data read;

kB_wrtn: the amount of the total number of data writing;

Display all the timing information

1
2
# 【每隔2秒刷新显示,且显示3次】
iostat 2  3

Displays the disk information

1
iostat -d /dev/sda

Tty and display information Cpu

1
iostat -t

M units to display all the information

1
iostat -m

See capacity utilization (% util), response time (the await)

1
2
3
#  【-d 显示磁盘使用情况,-x 显示详细信息】
#  d: detail
iostat -d -x -k 1 1

image

Description:

rrqm / s:. for the number of read operations per second merge i.e., delta (rmerge) / s

wrqm / s: the number of write operations performed per second merge i.e. delta (wmerge) / s.

% Util: What percentage of one second of time for I / O

If% util close to 100%, indicating that the generated I / O requests too, I / O system full load

   less than 70% IO idle pressure is large, and generally have more speed read wait.

View cpu state

1
iostat -c 1 1

image

Guess you like

Origin www.cnblogs.com/agang-php/p/11710333.html