mysql
MySQL的QPS计算
show global status where Variable_namein('com_select','com_insert','com_delete','com_update');
等待10秒
show global status where Variable_namein('com_select','com_insert','com_delete','com_update');
计算差值
MySQL的TPS计算
show global status where Variable_namein('com_insert','com_delete','com_update');
等待10秒
show global status where Variable_namein('com_insert','com_delete','com_update');
计算差值
磁盘IOPS计算与测量
IOPS是指单位时间内系统能处理的I/O请求数量,一般以每秒处理的I/O请求数量为单位,I/O请求通常为读或写数据操作请求。随机读写频繁的应用,如OLTP,IOPS是关键衡量指标。
数据吞吐量(Throughput),指单位时间内可以成功传输的数据数量。对于大量顺序读写的应用,如VOD(Video OnDemand),则更关注吞吐量指标。
磁盘完成一个I/O请求所花费的时间,它由寻道时间、旋转延迟和数据传输时间三部分构成。
寻道时间Tseek是指将读写磁头移动至正确的磁道上所需要的时