How to Troubleshoot High Disk IO Problems in WHM
Disk I/O describes how long the read and write operations require on a hard disk. The speed at which your server can read and write information to disk directly affects your server’s performance and the performance of cPanel & WHM. Your server’s load will increase if the system experiences high disk I/O wait time.
Symptoms of high disk I/O
|High server load||The average system load exceeds
||You receive notifications about an offline service or that the system cannot restart a service.|
|Slow hosted websites||Hosted websites may require more than a minute to load.|
|Slow delivery of email||The Exim service performs slowly or does not respond. Exim contains a large outbound mail queue.|
|Slow connection for email||The POP or IMAP services perform slowly or do not respond.|
|Slow Webmail interfaces||The Webmail interfaces perform slowly or do not respond. For example, RoundCube, Horde, or SquirrelMail.|
|Slow WHM or cPanel interfaces||The WHM or cPanel interfaces perform slowly when you add email accounts, databases, or other items.|
How to determine the disk I/O wait on your server
top command to find the average wait time on your server
%wa statistic at the top of the output indicates your server’s average disk wait.
If the I/O wait percentage is greater than one divided by the number of your CPU cores, the CPU cores must wait to process data on hard disk. For example, if the system possesses four CPU cores and the server
%wa statistic is
8.0, then the actual
2.0. Because the actual
%wa is larger than
1.0, the CPU cores must wait before they can process data on hard disk.
sar command to determine the history of your server’s disk I/O wait
sar command provides you with the history of the server’s load averages. Use this command to determine the times when your server experiences high disk I/O.
How to resolve a problem with high disk I/O
|Hard disk specifications with low RPM speed or slow interface technology||Upgrade the hard disk on your server or split the application load between separate hard disks.|
|No bandwidth available on the hard disk||Upgrade the hard disk on your server or split the application load between separate hard disks.|
|Write caching is disabled||Enable write caching on the disk.|
|Degraded RAID array||Check the Raid array for a hardware malfunction. You should test and verify the hardware.|
|Software RAID array on the server reports busy; CPU uses slow parity calculation||Check the Raid array for a hardware malfunction. You should test and verify the hardware.|
|Software processes slowly||Upgrade the hard disk on your server or split the application load between separate hard disks.|