Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9BD5164FCC6 for ; Tue, 22 Jul 2008 09:39:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 62987-02 for ; Tue, 22 Jul 2008 09:39:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mk-outboundfilter-5.mail.uk.tiscali.com (mk-outboundfilter-5.mail.uk.tiscali.com [212.74.114.1]) by postgresql.org (Postfix) with ESMTP id 08ED764FCB9 for ; Tue, 22 Jul 2008 09:39:11 -0300 (ADT) X-Trace: 60614282/mk-outboundfilter-5.mail.uk.tiscali.com/F2S/$F2S-NILDRAM-ACCEPTED/f2s-temporary-group/85.211.229.155 X-SBRS: None X-RemoteIP: 85.211.229.155 X-IP-MAIL-FROM: simon@2ndquadrant.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuQAAP9xhUhV0+Wb/2dsb2JhbAAIsCc X-IronPort-AV: E=Sophos;i="4.31,231,1215385200"; d="scan'208";a="60614282" X-IP-Direction: IN Received: from 85-211-229-155.dyn.gotadsl.co.uk (HELO [192.168.0.3]) ([85.211.229.155]) by smtp.f2s.tiscali.co.uk with ESMTP; 22 Jul 2008 13:38:14 +0100 Subject: Re: [HACKERS] Hint Bits and Write I/O From: Simon Riggs To: Tom Lane Cc: Pavan Deolasee , List pgsql-patches In-Reply-To: <17500.1216672435@sss.pgh.pa.us> References: <1211916951.4489.232.camel@ebony.site> <15901.1211931165@sss.pgh.pa.us> <1213797209.9468.126.camel@ebony.site> <87hcbfq71p.fsf@oxford.xeocode.com> <1214578938.3845.423.camel@ebony.site> <1214865781.3845.525.camel@ebony.site> <2e78013d0807202306t21ff41a9q53673dc9a48bf859@mail.gmail.com> <1216670891.3894.34.camel@ebony.2ndQuadrant> <17500.1216672435@sss.pgh.pa.us> Content-Type: text/plain Date: Tue, 22 Jul 2008 13:44:33 +0100 Message-Id: <1216730673.3894.308.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/222 X-Sequence-Number: 6916 On Mon, 2008-07-21 at 16:33 -0400, Tom Lane wrote: > Simon Riggs writes: > > On Mon, 2008-07-21 at 11:36 +0530, Pavan Deolasee wrote: > >> I think we should try at least one or two possible optimizations and > >> get some numbers before we jump and make substantial changes to the > >> code. > > > You know you're suggesting months of tests and further discussion. :-( > > I agree with Pavan that we should have something that'd at least serve > as test scaffolding to verify that the framework patch is sane. The > test code needn't be anything we'd want to commit. The test code is/was there, in the sense that the patch was (supposed to) do exactly what it does now, just with extra code to keep track of hint counts. Probably the most important point is not yet covered: we don't keep any track of which blocks are dirtied solely for hint bits. We need to do this so we can measure the efficacy of *any* patch that seeks to improve the current situation. The best time to do this is in integration phase of release, so will do it then. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support