MySQL Performance – How to Calculate MySQL Server Reads and Writes Per Second

MySQLperformance

Can anyone let me know how to calculate mysql server writes,reads,deletes,updates per second.

Best Answer

From a different perspective...

SHOW GLOBAL STATUS;, then

For SQL counts, divide Com_delete by Uptime to get the DELETE statements per second since MySQL was started. Etc.

For actual I/O, divide these by Uptime to get "per second since MySQL started":

  • Key_reads and Key_writes track I/O for MyISAM index operations.
  • Innodb_buffer_pool_reads and Innodb_buffer_pool_pages_flushed track all data and index activity for InnoDB.
  • Innodb_dblwr_writes for double-buffer writes.

Binlog, iblog, MyISAM data, and a few other things are not included above.