When I first joined MySQL one of the things that was evident was the Support Engineers spent quite some time with customers issues that were focused on performance tuning. Performance tuning issues generally start with a engineer requesting a bunch of information from the customer such as:
- SHOW GLOBAL VARIABLES
 - SHOW GLOBAL STATUS (a number of times, to give us some rate information)
 - SHOW FULL PROCESSLIST
 - SHOW INNODB STATUS (if InnoDB is widely being used)
 - vmstat output for a number of short periods
 - iostat -dx output for a number of short periods
 
A lot of this output is pretty easy to go through when you know what you are looking for. However where we spend a lot of our time is looking through the SHOW GLOBAL STATUS output - trying to piece together the rates of change etc. so that we can get more insight in to what is hurting the database.
I also …
[Read more]