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 IO
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.
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 IO 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 disk IO 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.
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.
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.
Direct Memory Access
Direct Memory Access (DMA) improves hard drive and backup speeds. We strongly recommend that you enable DMA.
To enable DMA for a hard drive, run the hdparm -d1 /dev/hda command.
To disable DMA for a hard drive, run the hdparm -d0 /dev/hda command.
To measure a hard drive’s transfer rate, run the hdparm -Tt /dev/hda command.
To view a hard drive’s enabled options, run the hdparm /dev/hda command.
To view more information about a hard drive, run the hdparm -i /dev/hda command.
Note:
Some older drives and motherboards have compatibility issues with DMA. Ask your data center, hard drive manufacturer, or motherboard manufacturer whether you can enable DMA on your drives.