Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arYKd-0001ZV-0c for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Apr 2016 22:04:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arYKc-0002zz-JR for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Apr 2016 22:04:46 +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 1arYKb-0002zs-V4 for pgsql-hackers@postgresql.org; Sat, 16 Apr 2016 22:04:45 +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 1arYKY-0006WX-6V for pgsql-hackers@postgresql.org; Sat, 16 Apr 2016 22:04:45 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8D55E20AD7 for ; Sat, 16 Apr 2016 18:04:40 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 16 Apr 2016 18:04:40 -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=OJeDUFDsM3JNYkE+EndRXF9o+Xo=; b=Y+w6J AqHluzyHKUpKt0+P5gzJGqAaJFxd0HUMFkVrZwwAFyPW/fqOMQVpkqP4XXs8wKZ4 DbZ1Pnrn4lr4Xkt+gFq1dWNFzUtDMiFQMgm9OiV/Wx8lTR1uUPu/wlbYEP9/TKgq YU4f+iek4e2YRRtIgvN7Rckp2zLLgerjuaR/pE= X-Sasl-enc: UW6ZXz8Kb5MOkQr+C49+31oRbALh91Ei3gVvIHBPo9oG 1460844280 Received: from intern.anarazel.de (unknown [192.77.237.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 289D36801ED; Sat, 16 Apr 2016 18:04:40 -0400 (EDT) Date: Sat, 16 Apr 2016 15:04:39 -0700 From: Andres Freund To: Tom Lane Cc: Noah Misch , Kevin Grittner , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160416220439.56ga5ghy4zgt356h@alap3.anarazel.de> References: <20160413171955.i53me46fqqhdlztq@alap3.anarazel.de> <20160413192110.fogwesjti3kxycnu@alap3.anarazel.de> <20160413200148.bawmwjdmggbllhha@alap3.anarazel.de> <20160416204452.GA1910190@tornado.leadboat.com> <20160416205630.puxsglckxi3sn5ec@alap3.anarazel.de> <23903.1460843564@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23903.1460843564@sss.pgh.pa.us> 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-16 17:52:44 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2016-04-16 16:44:52 -0400, Noah Misch wrote: > >> That is more controversial than the potential ~2% regression for > >> old_snapshot_threshold=-1. Alvaro[2] and Robert[3] are okay releasing > >> that way, and Andres[4] is not. > > > FWIW, I could be kinda convinced that it's temporarily ok, if there'd be > > a clear proposal on the table how to solve the scalability issue around > > MaintainOldSnapshotTimeMapping(). Postponing the optimization around > > something as trivial as a spinlock around reading an LSN is one thing, > > postponing something we don't know the solution to is anohter. > > The message Noah cited mentions only a 4% regression, but this one > seems far worse: > > http://www.postgresql.org/message-id/20160413200148.bawmwjdmggbllhha@alap3.anarazel.de > > That's more than a 5X penalty, which seems like it would make the > feature unusable; unless there is an argument that that's an extreme > case that wouldn't be representative of most real-world usage. > Which there may well be; I've not been following this thread carefully. The 4 % was with the feature disabled (in comparison to before it's introduction), we're not sure where that's coming from. But the 5x - and that was just on a mid-sized box - is with the feature enabled. - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers