Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86907 invoked from network); 19 Aug 2005 09:17:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 09:17:26 -0000 Received: (qmail 82488 invoked by uid 500); 19 Aug 2005 09:17:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 82246 invoked by uid 500); 19 Aug 2005 09:17:25 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 82233 invoked by uid 99); 19 Aug 2005 09:17:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 02:17:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.42.13] (HELO nwkea-mail-1.sun.com) (192.18.42.13) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 02:17:43 -0700 Received: from phys-epost-1 ([129.159.136.14]) by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id j7J9HM2B024694 for ; Fri, 19 Aug 2005 02:17:22 -0700 (PDT) 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 <0ILG00H01PCR0A@epost-mail1.sweden.sun.com> (original mail from Oystein.Grovlen@Sun.COM) for derby-dev@db.apache.org; Fri, 19 Aug 2005 11:17:21 +0200 (MEST) Received: from atum11.norway.sun.com.sun.com (atum11.Norway.Sun.COM [129.159.112.211]) by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0ILG004SVPSWOC@epost-mail1.sweden.sun.com> for derby-dev@db.apache.org; Fri, 19 Aug 2005 11:17:21 +0200 (MEST) Date: Fri, 19 Aug 2005 11:17:20 +0200 From: Oystein.Grovlen@Sun.COM (=?iso-8859-1?q?=D8ystein_Gr=F8vlen?=) Subject: Re: Can anyone give me some suggestions? In-reply-to: <4304FC92.90707@sbcglobal.net> To: Derby Development Message-id: MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Lines: 34 References: <4304FC92.90707@sbcglobal.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >>>>> "MM" == Mike Matrigali writes: MM> As Oystein says I think the main reason to tune checkpoint interval is MM> some sort of balance between recovery time and performance overhead of MM> the checkpoint. The last change in this area bumped the log file size MM> from 100k to 1 meg, and the checkpoint size from 1 log file to 10 log MM> files. Even this change makes us do many more checkpoints than MM> competing databases, especially in benchmark situations when other dbs MM> don't do any checkpoints. Some time based approach may be interesting, MM> with inputs of how long does a checkpoint take and how long since the MM> last checkpoint and total log volume rate. There is also the log file MM> garbage collection issue. It would be interesting to see a study of how different settings for the checkpoint interval impact throughput and recovery times. That seems like well suited for a student project. MM> I don't think checkpointing is the way to control # dirty pages in the MM> cache. The current system tries to do this in the clock algorithm, by MM> having a background thread "clean" dirty pages when it thinks there MM> are too many. This buffer cache, clock algorithm is pretty simple so MM> there may be improvements possible there - I believe some have already MM> been discussed on the list with respect to weighting various MM> pages. OK, I was not aware of this mechanism. I guess the benefit of having two mechanisms that write pages to disk is that the clock algorithm only writes those pages that are likely to soon be thrown of the cache. Hence, hot spot pages are normally only written at each checkpoint. -- �ystein