BUG: The value of the UserModeTime element is displayed as the value of the KernelModeTime element in the XML output of the record column in SQL Server 2005 (922123)



The information in this article applies to:

  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Express Edition
  • Microsoft SQL Server 2005 Express Edition with Advanced Services
  • Microsoft SQL Server 2005 Workgroup
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium Based Systems
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • SQL Server 2005 Standard Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Standard X64 Edition

Bug #: 437288 (SQLBUDT)SQL BU Defect Tracking:437288

SYMPTOMS

In Microsoft SQL Server 2005, you query data from the sys.dm_os_ring_buffers SQL Server Operating System-related dynamic management view. When you do this, the following symptoms occur in the XML output of the record column:
  • The value of the UserModeTime element is displayed as the value of the KernelModeTime element.
  • The value of the KernelModeTime element is displayed as the value of the UserModeTime element.
This problem occurs only in the rows that have the RING_BUFFER_SCHEDULER_MONITOR value in the ring_buffer_type column.

For example, the XML output of the record column may be displayed as follows.
<Record id = "12962" type ="RING_BUFFER_SCHEDULER_MONITOR" time ="2051487332">
<SchedluerMonitorEvent>
<SystemHealth>
<ProcessUtilization>0</ProcessUtilization>
<SystemIdle>99</SystemIdle>
<UserModeTime>0</UserModeTime>
<KernelModeTime>156250</KernelModeTime>
<PageFaults>0</PageFaults>
<WorkingSetDelta>0</WorkingSetDelta>
<MemoryUtilization>53</MemoryUtilization>
</SystemHealth>
</SchedluerMonitorEvent>
</Record>
However, you expect the XML output of the record column to be displayed as follows.
<Record id = "12962" type ="RING_BUFFER_SCHEDULER_MONITOR" time ="2051487332">
<SchedluerMonitorEvent>
<SystemHealth>
<ProcessUtilization>0</ProcessUtilization>
<SystemIdle>99</SystemIdle>
<UserModeTime>156250</UserModeTime>
<KernelModeTime>0</KernelModeTime>
<PageFaults>0</PageFaults>
<WorkingSetDelta>0</WorkingSetDelta>
<MemoryUtilization>53</MemoryUtilization>
</SystemHealth>
</SchedluerMonitorEvent>
</Record>

CAUSE

This problem occurs because the XML output incorrectly reverses the kernel mode time value and the user mode time value.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

REFERENCES

For more information about the sys.dm_os_ring_buffers SQL Server Operating System-related dynamic management view, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:7/14/2006
Keywords:kbBug kbExpertiseAdvanced kbtshoot kbsql2005engine kbsql2005xml KB922123 kbAudDeveloper kbAudITPRO