146
获取磁盘IOPS数值[shell]-ipcpu-51CTO博客
source link: http://blog.51cto.com/ipcpu/2067383
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
获取磁盘IOPS数值[shell]#!/bin/shDISK="vdc1"functiongetIops(){READ1=`cat/proc/diskstats|grep"${DISK}"|awk'{print$4}'`WRIT1=`cat/proc/diskstats|grep"${DISK}"|awk'{print$8}'`sleep10READ2=`cat/proc/diskstats|gr
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK