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

Requested memory for execution plan information

$
0
0

Hello,

May I have some information regarding the memory parameters that appear into the execution plan ? here is an example of what I see on a XML Execution plan:

"

MemoryGrantInfo / SerialRequiredMemory="1536" SerialDesiredMemory="2160" RequiredMemory="1536" DesiredMemory="2160" RequestedMemory="2160" GrantWaitTime="0" GrantedMemory="2160" MaxUsedMemory="0"
"

I have noticed that sometimes those informations are available, sometimes they aren't. Can you please explain me this ? And when this information are available (I mean during compile time ? execution time ? After the end of the execution ?)

Another point is that some execution of an execution plan requests 85Mb of memory and some others executions resquest 190Gb (yes, Giga Bytes!) of memory. I've captured thoses inforamtions whith the requested_memory_kb column on the sys.dm_exec_query_memory_grants DMV. Do you know what can justified such difference between two execution ?

Many thank's for your answer, any informations regarding this part (requested_memory) would be usefull.

Olivier MAITRE


Viewing all articles
Browse latest Browse all 5123

Trending Articles



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