Source Installation Systat:
# wget http://perso.orange.fr/sebastien.godard/sysstat-8.0.4.1.tar.gz
# tar ZXVF sysstat-8.0.4.1.tar.gz
# CD sysstat-8.0.4.1
#./configure
# make
# make Install
Use Iostat to analyze servers with excessive stress:
$iostat-X 1
Linux 2.6.33-fukai (Fukai-laptop) _i686_ (2 CPU)
AVG-CPU:%user%nice%system%iowait%steal%idle
5.47 0.50 8.96 48.26 0.00 36.82
device:rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await SVCTM%util
SDA 6.00 273.00 99.00 7.00 2240.00 2240.00 42.26 1.12 10.57 7.96 84.40
SDB 0.00 4.00 0.00 350.00 0.00 2068.00 5.91 0.55 1.58 0.54 18.80
Output Option Description:
rrqm/s: The number of read operations per second for the merge. That is, the delta (rmerge)/s
wrqm/s: the number of write operations per second for the merge. That is, Delta (wmerge)/s
r/s : the number of read I/O devices completed per second. Delta (RIO)/s
w/s: number of write I/O devices completed per second. The Delta (wio)/s
rsec/s: reads the number of sectors per second. That is, Delta ( Rsect)/s
wsec/s: the number of write sectors per second. That is, Delta (wsect)/s
rkb/s: read K bytes per second. It's half the rsect/s, Because the size of each sector is 512 bytes. (Calculation required)
wkb/s: writes K bytes per second. It's half the wsect/s. (Calculation required)
Avgrq-sz: The average data size (sector) for each device I/O operation. Delta (Rsect+wsect)/delta (rio+wio)
Avgqu-sz: Average I/O queue length. That is, Delta (AVEQ)/s/1000 ( Because the Aveq unit is in milliseconds.
await: The average wait time (in milliseconds) per device I/O operation. Delta (Ruse+wuse)/delta (rio+wio)
svctm: average Per Device I The service time, in milliseconds, of the/O operation. That is, Delta (use)/delta (rio+wio)
%util: The amount of time in a second for I/O operations, Or how much time in a second I/O queues are non-empty. That is, the delta (use)/s/1000 (because the use is in milliseconds)
Attention:
%util is close to 100%, indicating that there are too many I/O requests and that the I/O system is full, and that the disk may have bottlenecks.
Idle less than 70% io pressure is larger, the general reading speed has more wait.
You can also combine vmstat to see the b parameter (the number of processes waiting for a resource) and the WA parameter (the percentage of CPU time that IO waits for, higher than 30% when the IO pressure is high)
In addition, the parameters of the await and SVCTM to reference, too many gaps, with the problem of the presence of IO.
Avgqu-sz is also a place to be aware of when doing IO tuning, which is the size of the data that is directly manipulated each time.
If the number of times, but the small amount of data, in fact, the IO will be very small.
If the data is large, the IO data will be high. It can also be determined by AVGQU-SZX (r/s or w/s) = RSEC/S or wsec/s, that is, read and write speed.
This article is from "Ghost" blog, please make sure to keep this source http://caizi.blog.51cto.com/5234706/1545001
How to install Iostat,dstat,systat Linux source code