Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqQLz-0004vV-37 for pgsql-committers@arkaria.postgresql.org; Wed, 13 Apr 2016 19:21:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqQLy-0006SE-Ls for pgsql-committers@arkaria.postgresql.org; Wed, 13 Apr 2016 19:21:30 +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 1aqQLk-0005Zz-CR for pgsql-committers@postgresql.org; Wed, 13 Apr 2016 19:21:16 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqQLh-0003Qm-Dt for pgsql-committers@postgresql.org; Wed, 13 Apr 2016 19:21:15 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0496720B97 for ; Wed, 13 Apr 2016 15:21:12 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 13 Apr 2016 15:21:12 -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=RkvZAeoDwx1NhKIxSBAQpc5ZFUU=; b=lsAul gDqgTIaelJT+oVeJrZqq6vJgz7wyRXX7aldHmSWf1atVCBa6s86kikY/ji+tTYxX DDuk16sHSsI8+cwHhOfZg/sqU5aRaLqco5ZKI0RR3/ZY1TB1HC9lmmj1X21R1n69 oixgcKhlPCUKVQSseTJiKhLjvegdrWpUgndxdQ= X-Sasl-enc: dGuz90tG9I7FwKDw/ZsGhs0994ZQAiq7Dcyf2pnnBsUP 1460575271 Received: from intern.anarazel.de (unknown [184.23.178.130]) by mail.messagingengine.com (Postfix) with ESMTPA id A9D48680230; Wed, 13 Apr 2016 15:21:11 -0400 (EDT) Date: Wed, 13 Apr 2016 12:21:10 -0700 From: Andres Freund To: Kevin Grittner Cc: Robert Haas , Kevin Grittner , "pgsql-hackers@postgresql.org" , "pgsql-committers@postgresql.org" Subject: Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160413192110.fogwesjti3kxycnu@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-committers Precedence: bulk Sender: pgsql-committers-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. > > > 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. Longer tests are running, but, again on the previous hardware with only two sockets, the results for 128 clients are: 0: progress: 100.0 s, 593351.0 tps, lat 0.215 ms stddev 0.118 progress: 200.0 s, 594035.9 tps, lat 0.215 ms stddev 0.118 progress: 300.0 s, 594013.3 tps, lat 0.215 ms stddev 0.117 -1: progress: 100.0 s, 600835.3 tps, lat 0.212 ms stddev 0.049 progress: 200.0 s, 601466.1 tps, lat 0.212 ms stddev 0.048 progress: 300.0 s, 601529.5 tps, lat 0.212 ms stddev 0.047 reverted: progress: 100.0 s, 612676.6 tps, lat 0.208 ms stddev 0.048 progress: 200.0 s, 613214.3 tps, lat 0.208 ms stddev 0.047 progress: 300.0 s, 613384.3 tps, lat 0.208 ms stddev 0.047 This is all on virtualized (though using a dedicated instance) hardware. So they numbers are to be taken with a grain of salt. But I did run shorter tests in various orders, and the runtime difference apears to be very small. - Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers