[FIXED] SQL Server Check DB IO requests taking longer than 15 seconds warning

Issue

I am experiencing some problems with performing CHECKDB on my SQL Server. I am running SQL Server 2008 SP4 and SQL Server 2014 SP2 CU4. The SQL Server 2008 instance uses SAN storage, the SQL Server 2014 instance uses just local storage.

During CHECKDB is running I get messages in the error log like the following:

SQL Server has encountered 61 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file ...

I am aware that my disks (local and SAN) are not optimal regarding throughput but unfortunately that's the setup I have to stick with in the nearer future. Furthermore the throughput is sufficient for my daily workload but the time CHECKDB is running things tend to get out of control and the disks are overwhelmed by the traffic generated.

CHECKDB is invoked by Ola Hallengren's Backup solution using commands like

DBCC CHECKDB ([mydb]) WITH NO_INFOMSGS, ALL_ERRORMSGS, DATA_PURITY

The IO warnings in the error log are mainly for tempdb and for a few user database files.

Tempdb is configured according to the setup checklist by Brent Ozar: 8 datafiles, each pregrown to the sames size, autogrowth disabled. The transaction log file resides on a different volume. I do not use any traceflags like 1117 and 1118 so far.

Interestingly I get the IO warnings on the SQL 2014 instance just after my biggest database have grown from 100GB to 200GB in a few days (resulting from data being migrated into the database...the usual growth rate is much lower).

The IO warnings on the SQL 2014 go along with timeouts in Nagios monitoring. Here's a screenshot of the disk throughput from Nagios: The time CHECKDB runs the overall throughput (read and write) is identical with the max values over time: disk throughput

Here's a statistic of disk throughput on checkdb with physical_only: disk throughput physical only

Interestingly the IO warnings have gone now. Additionally there were no further timeouts on Nagios checks.

Is there anything I could do to get rid of the warnings and the IO overkill situation like

  • telling CHECKDB to run slower and use less resources
  • optimize the structure of my biggest database (VLF count? Index maintenance is running daily)
  • moving tempdb to the SAN

The 2014 instance just got one local RAID drive consisting of two sata disks (due to blade server) which is partitioned for windows and has separate partitions for data, log and tempdb. I am aware that this is against best practice configuration using different disks for tempdb, windows, data and log. But unfortunately there is currently no way to implement such a solution. I could switch using the SAN but unfortunately this is even slower most of the time (poorly configured...outdated technology...etc).

It's perfectly acceptable for you to think "man get a better IO subsystem and shut up" but as I wrote that's not possible short term. Therefore it would help tremeandously to be able to solve the problem in another way. As I said for my regular workload the current IO subsystem (however old fashioned it might seem) is perfectly sufficient.


Solution

I would suggest you to use DBCC CHECKDB with physical_only option if you are checking consistency very day and weekly (on weekend - off peak time) execute normal DBCC CHECKDB, backup should include "checksum" option too.



Answered By - Bilal Ayub
Answer Checked By - Gilberto Lyons (sql.easybugfix Admin)

Related Posts

Post a Comment