INF: DBCC SQLPERF(LRUSTATS) Reports Some Irrelevant Info.

Last reviewed: April 30, 1997
Article ID: Q123674

The information in this article applies to:

  - Microsoft SQL Server versions 4.21 and 4.21a

SUMMARY

With the introduction of the new Lazywriter process in SQL Server version 4.21, the scan limit information returned by the DBCC SQLPERF(LRUSTATS) command is no longer relevant.

MORE INFORMATION

In previous versions of SQL Server, individual processes would search the data cache for an available buffer. If a clean buffer was not found after scanning a certain number of pages (this number was referred to as the scan limit), the user process would select a dirty buffer and be required to flush the contents of the buffer to disk before claiming it.

With the introduction of the Lazywriter system process, the scan limit, as it was previously used, is no longer needed. In version 4.21 and later, the Lazywriter process awakens when the number of free buffers falls below a certain threshold and begins to flush out dirty buffers (see version 4.21 Release Notes for more information). The server now maintains a separate list of all free buffers. Therefore, SQL Server no longer has to search through all of the buffers to find a free one--it simply gets a new buffer from the list of free buffers.

When the DBCC SQLPERF(LRUSTATS) command is run, it returns information regarding scan limit, scan limit reached, and cache flushes. This information is irrelevant and should be ignored in SQL Server versions 4.21 and later due to the changes described above. Other counters reported by DBCC SQLPERF(LRUSTATS) including Average and Maximum Free Page Scan counters, now have different meanings than those described in the SQL "Administrator's Guide."

The new meanings are described below:

   Average Free Page Scan: The average number of data cache buffers scanned
   by the Lazywriter each time it searches for unused buffers to replenish
   the free pool.

   Maximum Free Page Scan: The maximum number of data cache buffers scanned
   by the Lazywriter while searching for unused buffers to replenish the
   free pool.

For the most up to date information on SQL Server performance counters, check the Explain text for that counter in Performance Monitor.


Additional query words:
Keywords : kbusage SSrvWinNT
Version : 4.21 4.21a
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.