Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crTT4-0006J6-RV for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Mar 2017 17:57:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1crTT4-0000dE-ER for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Mar 2017 17:57:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1crTRY-0004oq-94 for pgsql-hackers@postgresql.org; Fri, 24 Mar 2017 17:56:08 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1crTRV-0003Vr-FF for pgsql-hackers@postgresql.org; Fri, 24 Mar 2017 17:56:07 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CD18120D46; Fri, 24 Mar 2017 13:56:03 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 24 Mar 2017 13:56:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=F/yLgymuPPvQ268s/r fFEqdg+3gKDekM3a3osrGUzgc=; b=blGBMewkLA7v3pLiDJr/9GBpDjUC1sqnDU 4NbVVqyUXwxnPP5r+BuSpmY/HTZgnHaakUfMkL9Fc1yc4l/2aC2heZtEBqVgB7Ue xk1wzLFCdrX6LO3+CVCXlKuOZeISuJWPjKb1VdgadB8msXrSAz7tL8KKHAQmX35k WGK6qA7FxwrQYRJUqG1YBCSjfMhUHzViLOTmz5bK6EFEiygV1qrbCnTgD0Px+APQ sejNKb5pWUUhOwSYyPEe4sQYDOZHA33wVq0y2EtkRarP1SnSf/2d5UymPy8/uuXF /plUtTinIbju7VO5Dm1ZIf16DiPyZcgFGtnOEKy8xAb9jJPc79HA== X-ME-Sender: X-Sasl-enc: HxCtVjGmGFxvZ3gfR8fFe8y2iYNT9hxdveejpEX7ng5y 1490378163 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A7567E31E; Fri, 24 Mar 2017 13:56:03 -0400 (EDT) Date: Fri, 24 Mar 2017 10:56:02 -0700 From: Andres Freund To: Robert Haas Cc: Simon Riggs , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Avoid SnapshotResetXmin() during AtEOXact_Snapshot() Message-ID: <20170324175602.yaxb633jpgcyc5vx@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 On 2017-03-24 13:50:54 -0400, Robert Haas wrote: > On Fri, Mar 24, 2017 at 12:27 PM, Robert Haas wrote: > > On Fri, Mar 24, 2017 at 12:14 PM, Robert Haas wrote: > >> On Fri, Mar 24, 2017 at 10:23 AM, Simon Riggs wrote: > >>> Avoid SnapshotResetXmin() during AtEOXact_Snapshot() > >>> > >>> For normal commits and aborts we already reset PgXact->xmin > >>> Avoiding touching highly contented shmem improves concurrent > >>> performance. > >>> > >>> Simon Riggs > >> > >> I'm getting occasional crashes with backtraces that look like this: > >> > >> #4 0x0000000107e4be2b in AtEOXact_Snapshot (isCommit= >> temporarily unavailable, due to optimizations>, isPrepare=0 '\0') at > >> snapmgr.c:1154 > >> #5 0x0000000107a76c06 in CleanupTransaction () at xact.c:2643 > >> > >> I suspect that is the fault of this patch. Please fix or revert. > > > > Also, the entire buildfarm is turning red. > > > > longfin, spurfowl, and magpie all show this assertion failure in the > > log. I haven't checked the others. > > > > TRAP: FailedAssertion("!(MyPgXact->xmin == 0)", File: "snapmgr.c", Line: 1154) > > Another thing that is interesting is that when I run make -j8 > check-world, the overall tests appear to succeed even though there are > failures mid-way through: > > test tablefunc ... FAILED (test process exited with exit code 2) > > ...but then later we end with: > > ok > All tests successful. > Files=11, Tests=80, 251 wallclock secs ( 0.07 usr 0.02 sys + 19.77 > cusr 14.45 csys = 34.31 CPU) > Result: PASS > real 4m27.421s > user 3m50.047s > sys 1m31.937s > That's unrelated to the current problem of course, but it seems to > suggest that make's -j option doesn't entirely do what you'd expect > when used with make check-world. > That's likely the output of a different test from the one that failed. It's a lot easier to see the result if you're doing && echo success || echo failure - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers