With a discussion on identifying CPU and Memory bottlenecks achieved, let us now look at how Disk can affect MySQL performance.
One of the first steps when addressing a MySQL performance tuning problem is to perform a system audit of the physical hardware resources (CPU,Memory,Disk,Network), then identify any obvious bottlenecks in these resources.
There are several commands you can use including vmstat, iostat and sar (both part of the sysstat package) to provide information on disk I/O.
vmstat is a good place to start for an overall view for multiple resources, however for disk it only provides a total system overview.
procs -----------memory---------- ---swap-- -----io---- -system-- …[Read more]