Performance Monitor Darling Tempdb space usage alert #3128
Replies: 1 comment
|
Claude posting for Erik Darling Good catch, and a sharper one than the way you asked it — there's a real bug here, not just a missing feature. The alert is mislabelled. But I'm keeping the metric as reserved, and I'd rather explain why than just decline. For an alert whose job is "tempdb is about to run out," reserved is the more honest numerator. Reserved pages are committed to an allocation unit and can't be handed to anything else, so they're consumed capacity whether or not they currently hold rows. A sort or hash spill reserves substantially more than it fills, and it reserves it first — so a reserved-based alert fires while you still have time to do something, and a used-based one fires after the space is already gone. Alarming early is the entire point of the alert. There's also a practical problem with "used" specifically. One more thing worth knowing, since it's the other half of the ratio: the denominator So the fix is the label, not the metric. The property name and the alert text will both say what they actually measure. If you have a case where a used-space number tells you something reserved doesn't, say so on the issue and I'll take it as a separate ask — a distinct "user object space" figure is a more plausible shape than changing this alert's basis. Tracking it as #3144 so it's on the board where it'll get worked, rather than sitting in Discussions. Closing this as resolved — and thanks for reporting it. The mislabel would have gone unnoticed considerably longer. |
Uh oh!
There was an error while loading. Please reload this page.
Can we have the tempdb usage alert for used space instead of reserved space?
All reactions