Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 95999 invoked from network); 11 Feb 2006 19:46:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Feb 2006 19:46:59 -0000 Received: (qmail 25155 invoked by uid 500); 11 Feb 2006 19:46:58 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25121 invoked by uid 500); 11 Feb 2006 19:46:58 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 25112 invoked by uid 99); 11 Feb 2006 19:46:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2006 11:46:58 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.43] (HELO brmea-mail-2.sun.com) (192.18.98.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2006 11:46:57 -0800 Received: from phys-epost-1 ([129.159.136.14]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k1BJka8u020126 for ; Sat, 11 Feb 2006 12:46:36 -0700 (MST) Received: from conversion-daemon.epost-mail1.sweden.sun.com by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IUJ00I01G98X8@epost-mail1.sweden.sun.com> (original mail from Oystein.Grovlen@Sun.COM) for derby-dev@db.apache.org; Sat, 11 Feb 2006 20:46:36 +0100 (MET) Received: from [129.150.156.8] (vpn-129-150-156-8.India.Sun.COM [129.150.156.8]) by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTPA id <0IUJ009W2G9JZ0@epost-mail1.sweden.sun.com> for derby-dev@db.apache.org; Sat, 11 Feb 2006 20:46:35 +0100 (MET) Date: Sat, 11 Feb 2006 20:46:27 +0100 From: =?ISO-8859-1?Q?=D8ystein_Gr=F8vlen?= Subject: Re: Discussion of incremental checkpointing In-reply-to: To: derby-dev@db.apache.org Message-id: <43EE3F13.4090108@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Raymond Raymond wrote: > If the background I/O thread can refer to this list.I think it can help > solve the problem you mentioned. I am not very familiar with the background > I/O thread. If I am wrong, please point it out. As I said in the previous email: This is NOT a good idea! The background writer should focus on writing out pages that are candidates for replacement. > > In the list, the dirt pages are sorted in ascending order of the time when > they were firt updated, which means the oldest dirty page is in the head of > the list and the latest updated dirty page is in the end of the list. > The operations on the list are : > - When a page is updated and it is not in the list, we will append it to > the end of the list. You have to be a bit careful here. I do not think there is a guarantee that the order operations are executed, reflect the order of their log records. Hence, you may be prepared to search from the end of the list and forward to find the correct position. However, you will normally insert it very close to the end of the list. > - When a dirty page in the list is written out to disk, it will be released > from the list. > -- �ystein