linux-Common Commands-iostat&vmstat

Source: Internet
Author: User
Tags disk usage

1, hard disk read and write performance,

650) this.width=650; "height=" 362 "src=" http://b378.photo.store.qq.com/psb?/V11JpMrT3dJHqc/ 5q26btwye.n08pmofyonuwbxs86rgadiythts7e4i1a!/b/dkmjwefubwaa&ek=1&kp=1&pt=0&bo=7qqoagaaaaafamy! &t=5&su=0112115169&tm=1484053200&sce=0-12-12&rf=2-9 "width=" 870 "style=" margin:0px;padding:0 px;border-width:0px;border-style:none;vertical-align:top;width:847px;height:352.43px; "Alt=" DKMJWeFuBwAA&ek =1&kp=1&pt=0&bo=7qqoagaaa "/>

-D: Show a specific hard disk, there is no hard drive path is the default all
-K: Displayed in kilobytes
1: Statistical interval of 1 seconds
10: Total Statistics 10 times
TPS: The number of transmissions per second of the device (indicate, transfers per second, were issued to the.). "One-time transfer" means "one-time I/O request". Multiple logical requests may be merged into "one I/O request". The size of the "one transfer" request is unknown.
KB_READ/S: The amount of data read from the device (drive expressed) per second, KB_WRTN/S: The amount of data written to the device (drive expressed) per second, Kb_read: Total amount of data read, KB_WRTN: Total amount of data written ; These units are kilobytes.
The initial value is large because the cumulative read and write volume is displayed.

2,iostat-x parameters, viewing device usage (%util), Response time (await)
650) this.width=650; "height=" 332 "src=" http://b378.photo.store.qq.com/psb?/V11JpMrT3dJHqc/ qudmzgyomo8fwxdo8hqlwmmmkmcffo89mkuvvbm4fnc!/b/dhyexefvbwaa&ek=1&kp=1&pt=0&bo=ugtoaqaaaaafafi! &t=5&su=0112173041&tm=1484053200&sce=0-12-12&rf=2-9 "width=" 870 "style=" margin:0px;padding:0 px;border-width:0px;border-style:none;vertical-align:top;width:847px;height:323.223px; "Alt=" dHyeXeFvBwAA& Ek=1&kp=1&pt=0&bo=ugtoaqaaa "/>

650) this.width=650, "height=", "src=" http://b378.photo.store.qq.com/psb?/V11JpMrT3dJHqc/ 6fp.zsvzjq5xcm9oxbk6h70rxhfzxq.dphx6mit*wmy!/b/dahkuefwbwaa&ek=1&kp=1&pt=0&bo=iawdaqaaaaafaiq! &t=5&su=0181123889&tm=1484053200&sce=0-12-12&rf=2-9 "width=" 870 "style=" margin:0px;padding:0 px;border-width:0px;border-style:none;vertical-align:top;width:847px;height:249.232px; "Alt=" dAhkUeFwBwAA& Ek=1&kp=1&pt=0&bo=iawdaqaaa "/>
RRQM/S: How much of this device-dependent read request is merged per second (when the system call needs to read the data, the VFS sends the request to each FS, and if FS finds that different read requests read the same block data, FS merges the request into the merge); wrqm/ S: How much of this device-related write request per second has been merge.
R/S: Number of Read requests per second in response, w/s: Number of Write requests per second, rkb/s: Amount of data read per second, wkb/s: Amount of data written per second
Await: The average time (in microseconds) of processing per IO request. This can be understood as the response time of IO, generally the system IO response time should be less than 5ms, if greater than 10ms is relatively large.
%util: All processing io time, divided by total statistic time, in the statistical time. For example, if the statistic interval is 1 seconds, the device has 0.8 seconds to process Io, and 0.2 seconds is idle, then the device's%util = 0.8/1 = 80%, so this parameter implies the device's busy level. Generally, if this parameter is 100% indicates that the device is already running close to full load (of course if it is a multi-disk, even if%util is 100% because of the concurrency of the disk, disk usage may not be the bottleneck).

 
650 ) this.width=650; "height=" 514 "src=" http://b380.photo.store.qq.com/psb?/V11JpMrT3dJHqc/ x9hwo4yctdhg836ggvkoplz5y5k71taeaeq6yb0gsac!/b/dpkkholalqaa&ek=1&kp=1&pt=0&bo=owsaagaaaaafaj4! &t=5&su=0222477041&tm=1484053200&sce=0-12-12&rf=2-9 "width=" 870 "style=" margin:0px;padding:0 px;border-width:0px;border-style:none;vertical-align:top;width:847px;height:500.411px; "Alt=" dPkkhOLALQAA& Ek=1&kp=1&pt=0&bo=owsaagaaa "/> 

 
650) this.width=650, "height=" 211 "src=" http://b380.photo.store.qq.com/psb?/V11JpMrT3dJHqc/ xenv7b4vxc7kvci2f1ynhrjf8fhazj.dcxe6wryumls!/b/doqagek5lqaa&ek=1&kp=1&pt=0&bo=zaqraqaaaaafafm! &t=5&su=0215112513&tm=1484053200&sce=0-12-12&rf=2-9 "width=" 870 "style=" margin:0px;padding:0 px;border-width:0px;border-style:none;vertical-align:top;width:847px;height:205.422px; "Alt=" dOQAgeK5LQAA& Ek=1&kp=1&pt=0&bo=zaqraqaaa "/> 

Procs
R: Number of processes waiting in the run queue
B: Number of processes waiting on Io

Memory
SWPD: Virtual memory usage, unit: KB
Free: idle memory, in kilobytes
Buff: The amount of memory that is used as a cache, in kilobytes: KB

Swap
Si: Number of swap pages from disk swap to memory, in kb/seconds
So: number of swap pages from memory swap to disk, in kb/seconds

Io
BI: Number of blocks sent to block device, units: Blocks/sec
Bo: Number of blocks received from a block device, units: Blocks/sec

System
In: Number of interrupts per second, including clock interrupts
CS: The number of environment (context) switches per second

Cpu
Display as a percentage of total CPU usage
Us:cpu Use time
SY:CPU System Usage Time
ID: Idle Time
R, column B is typically 0, which means there is no wait process, and if not 0 indicates a problem with the system performance
Si, so two columns, indicating the frequency of memory exchange, if the value of a large number of long-term memory is not enough, to exchange data with the hard disk, you can also indicate that the data to read and write is different every time
Bi, bo two columns, which indicates that I/O input and output is very frequent


linux-Common Commands-iostat&vmstat

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.