updated lsn-estimation stuff.

This commit is contained in:
Sears Russell 2006-09-06 00:42:53 +00:00
parent 896dd9b8cd
commit e0b43b64ad
2 changed files with 12 additions and 1 deletions

View file

@ -767,6 +767,17 @@ a lower bound for the LSN of each page, rather than reading it from the page.
One possible lower bound is the LSN of the most recent checkpoint.
Alternatively, \yad could occasionally store its list of dirty pages
and their LSNs to the log (Figure~\ref{fig:lsn-estimation}).
If a page is present in the most recent list of dirty pages we use
the LSN in the list as our estimate. Otherwise, we use the LSN of the
log entry. This is safe because
the page was not updated between the most recent update to the on-disk
version (the ``true'' LSN of the page), and the point at which the
list was written to log. Therefore, each dirty list is an
accurate sparse representation of the LSNs of the entire page file. The
buffer pool must maintain this information whether or not LSN-free
pages are in use, so we expect the runtime overhead to be minimal.
\begin{figure}
\includegraphics[%
viewport=0bp 0bp 460bp 225bp,

Binary file not shown.