Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmCzH-0000BL-GV for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2017 05:21:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cmCzH-0000ep-2p for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2017 05:21:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cmCzG-0000ck-9x for pgsql-hackers@postgresql.org; Fri, 10 Mar 2017 05:21:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cmCzD-0004xA-SC for pgsql-hackers@postgresql.org; Fri, 10 Mar 2017 05:21:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2A5L0OL020808; Fri, 10 Mar 2017 00:21:00 -0500 From: Tom Lane To: Robert Haas cc: Michael Paquier , Amit Kapila , Dilip Kumar , Tomas Vondra , Jim Nasby , Andres Freund , pgsql-hackers Subject: Re: Speed up Clog Access by increasing CLOG buffers In-reply-to: References: <4a52a34f-57fa-7bcf-d34c-c15db40f0361@2ndquadrant.com> <956b695d-f6c5-d652-bf0c-cea95981547c@BlueTreble.com> <5275bf49-545e-e189-48c5-17b5defc45a2@2ndquadrant.com> <04e39ac9-af28-0fda-8f72-7268197d281f@2ndquadrant.com> <84c22fbb-b9c4-a02f-384b-b4feb2c67193@2ndquadrant.com> ! <9010.1489112253@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 09 Mar 2017 21:35:50 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20806.1489123260.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 10 Mar 2017 00:21:00 -0500 Message-ID: <20807.1489123260@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Thu, Mar 9, 2017 at 9:17 PM, Tom Lane wrote: >> Buildfarm thinks eight wasn't enough. >> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dclam&dt=3D2017= -03-10%2002%3A00%3A01 > At first I was confused how you knew that this was the fault of this > patch, but this seems like a pretty indicator: > TRAP: FailedAssertion("!(curval =3D=3D 0 || (curval =3D=3D 0x03 && status= !=3D > 0x00) || curval =3D=3D status)", File: "clog.c", Line: 574) Yeah, that's what led me to blame the clog-group-update patch. > I'm not sure whether it's related to this problem or not, but now that > I look at it, this (preexisting) comment looks like entirely wishful > thinking: > * If we update more than one xid on this page while it is being writ= ten > * out, we might find that some of the bits go to disk and others don= 't. > * If we are updating commits on the page with the top-level xid that > * could break atomicity, so we subcommit the subxids first before we= mark > * the top-level commit. Maybe, but that comment dates to 2008 according to git, and clam has been, er, happy as a clam up to now. My money is on a newly-introduced memory-access-ordering bug. Also, I see clam reported in green just now, so it's not 100% reproducible :-( regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers