How to Troubleshoot High Disk IO Problems in WHM

How to Troubleshoot High Disk IO Problems in WHM

Overview

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

Problem

Description

High server load

The average system load exceeds 1.

chkservd notifications

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

Use the top command to find the average wait time on your server

The %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 %wa is 2.0. Because the actual %wa is larger than 1.0, the CPU cores must wait before they can process data on hard disk.

Use the sar command to determine the history of your server’s disk I/O wait

The 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.