Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqPy2-0003tP-6M for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 18:56:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqPy1-0001Ly-PW for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 18:56:45 +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 1aqPy0-0001Ja-Ls for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 18:56:44 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqPxx-0007Fv-GR for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 18:56:44 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8E6AB20824 for ; Wed, 13 Apr 2016 14:56:39 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 13 Apr 2016 14:56:39 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=vLcZy3jFIfY/N1M9yVaLwlnnmsM=; b=BBQ9J JvLvmevL1HqCxvWhHFZ0K+k5Ehp9fDrBPypbImw03V3rGPDHxbOaa6Ope0CTQKu/ im06Gk63lpOObVZ4w0dtLUeNMDh/qwT8RBfMIjbIkP9LJWvBsoDpJwmz+gQ2udgD +niga2j9BIxIT5I+K950LXgsEukT4sXgqJPpIo= X-Sasl-enc: pqC83wE44UagidAvObYUeuvK0JjgCtDB14sxnT/8bg6Y 1460573799 Received: from intern.anarazel.de (unknown [184.23.178.130]) by mail.messagingengine.com (Postfix) with ESMTPA id 282C2C00022; Wed, 13 Apr 2016 14:56:39 -0400 (EDT) Date: Wed, 13 Apr 2016 11:56:37 -0700 From: Andres Freund To: Kevin Grittner Cc: Robert Haas , Kevin Grittner , "pgsql-hackers@postgresql.org" , "pgsql-committers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160413185637.k4mg5w4ju6athydt@alap3.anarazel.de> References: <20160412173856.6jumsz7es5zac42o@alap3.anarazel.de> <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160412192801.wffn2vjyszyw4qa4@alap3.anarazel.de> <20160413171955.i53me46fqqhdlztq@alap3.anarazel.de> 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 2016-04-13 13:52:15 -0500, Kevin Grittner wrote: > On Wed, Apr 13, 2016 at 12:25 PM, Robert Haas wrote: > > > [test results with old_snapshot_threshold = 0 and 10] > > From the docs: > > | A value of -1 disables this feature, and is the default. Hm, ok, let me run that as well then. The reason for the massive performance difference presumably is that MaintainOldSnapshotTimeMapping() is cut short due to /* No further tracking needed for 0 (used for testing). */ if (old_snapshot_threshold == 0) return; which means that OldSnapshotTimeMap isn't acquired exclusively. > > Yuck. Aside from the fact that performance tanks when the feature is > > turned on, it seems that there is a significant effect even with it > > turned off. > > No evidence of that has been provided. -1 is off; 0 is for testing > very fast expiration. I'll run with -1 once the current (longer) run has finished. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers