Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15930

Limit memory used by DBCC CHECKDB without using resource governor.

$
0
0

When running DBCC checkdb it allocates over 189GB of memory as can be seen at(SELECT granted_memory_kb FROM sys.dm_exec_query_memory_grants). The server has 1TB memory and if that was the only database we had to run DBCC CHECKDB in our short maintenance window we would have been fine. Unfortunately we need to run up to 5 checkdb's and if we ever run few of them simultaneously no user queries can run since they cannot allocate memory. We had the similar issue with creating large indexes on heavily partitioned tables, which was also reserving 189GB + memory but using sp_configure 'index create memory (KB)' option we limited the memory used by index creation to something lower.

Is there any way to limit the amount of memory used by DBCC as it was possible for limiting index create memory option? We do not want to implement resource governor or limit the number of dbcc that can be run together. As stated above even though we limited the memory used for index creation our index creation duration did not increase, the amount of memory sql server reserves seems to linearly increasing by system memory and it's trying to allocate more than needed memory for a DBCC.

Thank you


Gokhan Varol


Viewing all articles
Browse latest Browse all 15930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>