Installing MEGACLI
#cd/opt
#rpm-IVH megacli-2.00.12-1.el5.x86_64.rpm
#/opt/megaraid/megacli/megacli64-ldinfo-lall-aall
Look, it's a 6-plate RAID5.
650) this.width=650; "class=" Confluence-embedded-image "src=" http://wiki.tbox.me/download/attachments/10192235/ Clipboard.png?version=2&modificationdate=1423560072000&api=v2 "style=" margin:0px;padding:0px;border:0px ; "alt=" Clipboard.png?version=2&modificationdate "/>
View Disk Performance
# iostat-d-x-k 1 10
Disk IO is too high.
650) this.width=650; "class=" Confluence-embedded-image "src=" http://wiki.tbox.me/download/attachments/10192235 /clipboard.png?version=2&modificationdate=1423560072000&api=v2 "style=" margin:0px;padding:0px;border:0 px; "alt=" clipboard.png?version=2&modificationdate "/>
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. RSEC/S: Number of sectors read per second; wsec/: Number of sectors written per second. Rkb/s:the number of read requests that were issued to the device per second;wkb/s:the number of requests that were issued The size of the average request sector to the device per Second;avgrq-sz Avgqu-sz is the length of the average request queue. There is no doubt that the shorter the queue, the better. Await: The average time (in milliseconds) 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. This time includes the queue time and service time, that is, in general, await is greater than SVCTM, their difference is smaller, then the shorter the queue time, conversely, the greater the difference, the longer the queue time, indicating that the system has a problem. SVCTM represents the average service time (in milliseconds) for each device I/O operation. If the value of SVCTM is close to await, indicating that there is little I/O waiting, disk performance is good, and if the value of await is much higher than the value of SVCTM, the I/O queue waits too long for the applications running on the system to become slower.
- C parameter
Iostat can also be used to get CPU partial state values:
Iostat-c 1 10avg-cpu:%user%nice%sys%iowait%idle1.98 0.00 0.35 11.45 86.22avg-cpu:%user%nice%sys%iowait%idle1.62 0.00 0.25 34.46 63.67
Common usage
Iostat-d-K 1 #查看TPS和吞吐量信息 (disk read and write speed in KB) iostat-d-M 2 #查看TPS和吞吐量信息 (disk read and write speed in MB) iostat-d-x-k 1 10 #查看设备使用率 (%util), Response time (await) Iostat-c 1 #查看cpu状态
View raid information for Dell server 192.168.66.235 with MEGACLI