Monitoring iostat data using ShellIn performance testing, iostat monitoring data is too bad to display and looks very painful. For example, to display the appearance, write a shell script for transformation, as shown below:
#! /bin/bashinterval=1if [ $# -gt 0 ]; then interval=$1fiwhile (true) do iostat -k; sleep $interval; done | awk 'BEGIN{ data_flag = 0;
Iostat belongs to the Sysstat package. Can be installed directly with Yum install Sysstat.Note:
If the value of%iowait is too high, it indicates that the hard disk has an I/O bottleneck
The%idle value is high, indicating that the CPU is more idle,
If the%idle value is high but the system responds slowly, it is possible that the CPU waits for the allocated memory, and the memory capacity should be increased at this time.
If the%idl
Tips: Do you know where iostat gets IO-related information? Use the strace command to find the answer: shell gt; strace-eopeniostatopen ( quot;/proc/diskstats quot;, O_RDONLY). note: about diskstats, see the official documentation (field1 ~ Fie...
Tips: Do you know where iostat gets IO-related information? Use the strace command to track the answer:
Shell> strace-eopen iostatOpen ("/proc/diskstats", O_RDO
Iostat: ReportCentralProcessingUnit (CPU) statisticsandinputoutputstatisticsfordevicesandpartitions: collects the CPU status information about devices and partitions. [root @ billtest ~] I iostat: Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions
[root@billtest ~]# iostatLinux 2.6.18-194.el5 (billtest) 01/09/2014avg-cpu: %user %nice %system %iow
You will see this line when you use the top command:Translation: US: User state uses more CPU time than SY: The system state uses more CPU time than NI: The user-state CPU time compared to a nice-weighted process is allocated: Idle CPU time is longer than wa:cpu waiting for disk write completion hi: Hard Interrupt Time si: Soft interrupt consumption time ST: virtual machine steal time if A machine to see WA is particularly high, then the general description is disk IO problems, you can use
The Iostat in a Linux system is an abbreviation for I/O statistics (input/output statistics), and the Iostat tool willMonitor the disk operation activity. It is characterized by the reporting of disk activity statistics, as well as the reporting of CPU usage. WithVmstat, Iostat also has a weakness, that is, it cannot analyze a process in depth, only the overall s
The IOSTAT is an abbreviation for I/O statistics (input/output statistics), and the Iostat tool monitors the system's disk operation activity. It is characterized by the reporting of disk activity statistics, as well as the reporting of CPU usage. Iostat also has a weakness, that is, it can not analyze a process in depth, only the overall situation of the system
The Iostat command can provide rich IO performance status data. Iostat can collect and display statistics on system input/output storage devices. Frequently used to track storage device performance issues, including devices, local disks, and remote disks such as NFS.
IOSTAT provides several switches for custom output. The most useful are:
-C shows only CPU rows
This article explains the specific usage of vmstat and iostat, and the use of this usage if you diagnose system faults quickly and then optimize the systemBody:Monitoring memory usage with VmstatVmstat is the abbreviation for Virtual Meomory Statistics (fictitious memory statistics) that monitors virtual memory, processes, and CPU activity on the operating system. It is the overall situation of the system statistics, the disadvantage is that a process
It is mainly used to monitor the IO load of the system equipment, iostat the statistics from the start of the system startup at the first run, and then run Iostat to display statistics from the last time the command was run. Users can obtain the required statistics by specifying the number and time of the statistics. The main source of Iostat data is/proc/partiti
Iostat for output CPU and disk I/O-related statisticsCommand parameters-C Display of CPU usage-D Display disk usage-K displays in kilobytes-m displays in units of M.-N Display of disk array (LVM) information-N Display of NFS usage-p[disk] Displays disk and partition conditions-t display terminal and CPU information-X to display detailed information-V Display version informationAVG-CPU segment:%user: The percentage of CPU that is used to run at the use
Top (Topas), Vmstat,iostat is displayed under Linux and AIX operating systemsCategory: Linux basics 2013-08-09 17:26 1093 people read reviews (0) favorite reports Detailed list of commands commonly used parameters, in their own virtual machine, the requirements of each row is not listed information explained clearly, there are different operating system platform under the different commands. For example, Linux and Aix under the top command output
Use iostat to analyze IO performance http: wwwcnblogscombangerleearticles2547
Use iostat to analyze IO performance
Http://www.cnblogs.com/bangerlee/articles/2547161.html
Linux command-iotop
Http://blog.chinaunix.net/uid-434226-id-3297460.html
Linux strace command
Http://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316692.html
Inotifywait implements directory monitoring
Http://blog.csdn.net/firefoxb
Before summarizing uptime and the free command, continue today to summarize the iostat. Leave a note for yourself, and also hope to be useful to everyone.Version information:Sysstat version 9.0.4(C) Sebastien Godard (Sysstat Basic use: Iostat [-c] [-d] [-n] [-n] [-h] [-K |-m] [-t] [-v] [-X] [-z] [device [...] | ALL] [-p [device [,...] | ALL] [Inter-val [Count]]
[-c]: Output CPU statistics
[-d]: Output
The iostat command is used to monitor the load of system input/output devices.
Run the following command during installation:
Yum install sysstat
You can.
[Root @ zhaopin] # iostat
Linux 2.6.18-164. el5
Avg-cpu: % user % nice % system % iowait % steal % idle
0.45 0.00 0.26 0.09 0.24 98.96
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
X vda 6.10 7.50 80.91 150199774 1620302742
Xvda1 0.00
# iostat-x 1 10RRQM/S: Per secondThe number of read operations for the merge. ThatDelta (rmerge)/sWRQM/S: Per secondThe number of write operations for the merge. ThatDelta (wmerge)/sR/S: Reads completed per secondNumber of I/O devices. ThatDelta (RIO)/sW/S: Writes completed per secondNumber of I/O devices. ThatDelta (WIO)/sRSEC/S: Number of Read sectors per second. ThatDelta (rsect)/sWSEC/S: Number of Write sectors per second. ThatDelta (wsect)/sRKB/S
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.