Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 28303 invoked from network); 28 Feb 2007 20:23:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2007 20:23:01 -0000 Received: (qmail 99420 invoked by uid 500); 28 Feb 2007 20:23:08 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 99311 invoked by uid 500); 28 Feb 2007 20:23:08 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 99298 invoked by uid 99); 28 Feb 2007 20:23:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 12:23:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [64.202.165.12] (HELO smtpout08-04.prod.mesa1.secureserver.net) (64.202.165.12) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 28 Feb 2007 12:22:56 -0800 Received: (qmail 25570 invoked from network); 28 Feb 2007 20:22:33 -0000 Received: from unknown (24.15.193.17) by smtpout08-04.prod.mesa1.secureserver.net (64.202.165.12) with ESMTP; 28 Feb 2007 20:22:32 -0000 Message-ID: <45E5E488.9040602@rowe-clan.net> Date: Wed, 28 Feb 2007 14:22:32 -0600 From: "William A. Rowe, Jr." User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: dev@apr.apache.org Subject: Re: svn commit: r512557 - in /apr/apr-util/trunk: CHANGES dbm/sdbm/sdbm.c References: <20070228014733.1D0C61A981A@eris.apache.org> <45E4E908.8000804@rowe-clan.net> <5c902b9e0702272028x35473377uac613c78a9ce1f1a@mail.gmail.com> <45E542EB.2050809@rowe-clan.net> <5c902b9e0702280112x25d6d5afy294c0119b46353b9@mail.gmail.com> <20070228104507.GA23630@redhat.com> <5c902b9e0702280829t30101d48o137300f56f345962@mail.gmail.com> <20070228165144.GA31587@redhat.com> In-Reply-To: <20070228165144.GA31587@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Joe Orton wrote: > On Wed, Feb 28, 2007 at 08:29:10AM -0800, Justin Erenkrantz wrote: >> The performance implications of not doing buffered reads just *kills* >> our server - so we need to do something and adding buffering lessens >> the load quite dramatically. In our situation, we couldn't care less >> about modifying the file - we only care to optimize the read-only case >> - and I believe that code is just fine and stable. Though I guess I'd >> prefer we fix the problems with buffering if they do exist. >> >> Would you be concerned if we added APR_BUFFERED to APR_DBM_DBMODE_RO >> for sdbm? -- justin > > No, that sounds fine, or just moving your change up inside the !(flags & > APR_WRITE) condition so that all apr_sdbm_* users benefit equally. -1 on this change unless you compare the datum you do hit that it's still the record you expected. If we hit the wrong record (our copy of the buffered index page mismatched the found page) we must flush and retry once. If the retry fails, then error out. Bill