Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 32532 invoked from network); 1 Feb 2006 22:17:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Feb 2006 22:17:40 -0000 Received: (qmail 52724 invoked by uid 500); 1 Feb 2006 22:17:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 52679 invoked by uid 500); 1 Feb 2006 22:17:38 -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 52669 invoked by uid 99); 1 Feb 2006 22:17:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2006 14:17:37 -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.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2006 14:17:35 -0800 Received: from phys-gadget-1 ([129.156.85.171]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id k11MHEQj027078 for ; Wed, 1 Feb 2006 15:17:15 -0700 (MST) Received: from conversion-daemon.gadget-mail1.uk.sun.com by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IU100B014BXPP@gadget-mail1.uk.sun.com> (original mail from Kristian.Waagan@Sun.COM) for derby-dev@db.apache.org; Wed, 01 Feb 2006 22:17:14 +0000 (GMT) Received: from [129.150.116.134] (vpn-129-150-116-134.UK.Sun.COM [129.150.116.134]) by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTPA id <0IU100DLN4KPAB@gadget-mail1.uk.sun.com> for derby-dev@db.apache.org; Wed, 01 Feb 2006 22:17:14 +0000 (GMT) Date: Wed, 01 Feb 2006 23:17:13 +0100 From: Kristian Waagan Subject: Re: Discussion of how to map the recovery time into Xmb of log --Checkpoint issue In-reply-to: <43E10A09.2070602@sbcglobal.net> To: derby-dev@db.apache.org Message-id: <43E13369.9050801@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) References: <43E10A09.2070602@sbcglobal.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Mike, A question totally on the side of this discussion: Do you, or anyone else, have any opinion about how the "runtime performance" of Derby would be affected by not having checkpoints at all, say for a large database (around 20 GB) and 0.5 GB of page cache in a disk-bound application load? Is the Derby background-writer (and Clock.java) written/designed to handle such "extreme cases" without major performance degradation? Any information on the goal/function of the background-writer? What mechanisms would kick in when the page-cache is full and Derby needs slots for new pages? I do know this is not a smart way to handle things, I'm just curious what people think about this! And I am not seeking answers about long recovery times and log disk space usage ;) -- Kristian Mike Matrigali wrote: >I think this is the right path, though would need more details: >o does boot mean first time boot for each db? >o how to determine "this machine" >o and the total time to run such a test. > >There are some very quick and useful tests that would be fine to >add to the default system and do one time per database Measureing >how long to do a commit and how long to do a single database read from >disk would be fine. Seems like >just these 2 numbers could be used to come up with a very good >default estimate of log recovery time per log record. Then as you >propose the actual estimate can be improved by meauring real >recovery time in the future. > >I am not convinced of the need for the bigger test, but if the default >is not to run it automatically and it is your "itch" to have such >a configuration option then I would not oppose. I do see great value >in coming up with a very good default estimate of recovery time estimate >based on outstanding number of log records. And >I even envision >a framework in the future where derby would schedule other non-essential >background tasks that have been discussed in the > >On a different track I am still unclear on the checkpoint dirty page >lru list. Rather than talk about implementation details, I would >like to understand the problem you are trying to solve. For instance >I well understand the goal to configure checkpoints such that they >map to user understandable concept of the tradeoff of current runtime >performance vs. how long am I willing to wait the next time I boot >the database after a crash. > >What is the other problem you are looking at. > >Raymond Raymond wrote: > > > >>Mike, >> Last time we discussed about how to map the recovery time into Xmb of log. >>I have been thinking on it recently and have a proposal. >> How about when the very first time derby boots (not every time) on a >>certain >>machine, we let the user to chose whether he (or she) want to do some >>statistic >>collection about the system performance. If he (or she) want to do, >>derby runs >>some test, if not, derby doesn't run test. Later, just as what you said, >>we let derby >>collect information every time it does recovery to refine the former >>information. >> Thanks. >> >> >>Raymond >> >>_________________________________________________________________ >>Don�t just search. Find. Check out the new MSN Search! >>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >> >> >> >>