You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't calculate the percent of memory grant that was used by the query because the two numbers aren't related. There's also no reason to believe that the maximum/minimum used grant reflects the amount of memory used when the maximum/minimum grant was granted.
If the current behavior is a bug, please provide the steps to reproduce.
Run SP
What is the expected behavior?
A better calculation would use total_used_grant_kb / total_grant_kb as this will cover all memory usage since SP was compiled
Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?
All versions of SQL Server and All OS's are affected. This appears to have been how the metric has always been calculated.
The text was updated successfully, but these errors were encountered:
mdpenguin
changed the title
Incorrect Percent Memory Grant Used Calculations
sp_BlitzCache - Incorrect Percent Memory Grant Used Calculations
Jul 26, 2023
@mdpenguin yes, I assigned the issue you to you because you opened it and seemed to have a clear idea of what the code change should be. If you don't want it assigned to you I can remove it.
Version of the script
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
total_used_grant_kb
/total_grant_kb
as this will cover all memory usage since SP was compiledWhich versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?
The text was updated successfully, but these errors were encountered: