码迷,mamicode.com
首页 > 其他好文 > 详细

What is a COLD, DIRTY or CLEAN Buffer

时间:2015-10-14 14:23:09      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:

A clean buffer is a data page in memory that is NOT MODIFIED.   Modified buffers that have not been written to disk are termed DIRTY buffers and are typically written to disk by checkpoint processing.   DBCC DROPCLEANBUFFERS removes the UNMODIFIED buffers from the buffer pool (no longer hashed) and places them on the free list.      This is often used in basic performance testing to clear the data cache and force the data to be retrieved from disk as a physical read instead of a logic read.    

 

The cold buffer cache has a couple of variants within SQL Server.    Typically it refers to the buffer pool right after restart.   The data cache is not loaded (cold) and requires physical reads to populate the cache.   This is often termed the RAMPUP phase.     Internally it can also refer to the free list activity.   SQL Server understands the time of last access to buffers and when appropriate takes this into account when handling the free buffer lists.   Buffers on the free list that have some age to them may be termed cold because the age increases the chance that they accessible with a near memory transfer from a location such as CPU cache.  

 

In data processing, a cold buffer is a buffer (segment of computer memory reserved for temporary data storage) that hasn‘t been used or accessed recently.

 

转自:

http://blogs.msdn.com/b/psssql/archive/2009/03/17/sql-server-what-is-a-cold-dirty-or-clean-buffer.aspx

What is a COLD, DIRTY or CLEAN Buffer

标签:

原文地址:http://www.cnblogs.com/ljhdo/p/4877253.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!