Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqRgq-000864-2R for pgsql-committers@arkaria.postgresql.org; Wed, 13 Apr 2016 20:47:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqRgp-0001Sm-LE for pgsql-committers@arkaria.postgresql.org; Wed, 13 Apr 2016 20:47:07 +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 1aqRgp-0001RK-0W for pgsql-committers@postgresql.org; Wed, 13 Apr 2016 20:47:07 +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 1aqRgm-0005Lm-6U for pgsql-committers@postgresql.org; Wed, 13 Apr 2016 20:47:05 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3806620821 for ; Wed, 13 Apr 2016 16:47:03 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 13 Apr 2016 16:47:03 -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=tSEhtrB1ouKf2/HJj3YQRnNduCM=; b=ffTds WXqVmoEwu4mh+Zs4YbzRHs2imWrybbjlgC6o0Q4sOl/0l6+FXl/9+V7/ld7dyn5u HqoycTjwd+q+Qss9x77ox1Rlh/+MS5EaWsIiWAh9v0GcUDxZ8Qc2fStqC6JIvTu+ GAjFXbvAqNFxZs1Oee115m2lXs3+qGIgx/d1g4= X-Sasl-enc: RbclD5gim+5x+QIKw3GmRGt6g5m7M5EC9mHeQghLUwP2 1460580422 Received: from intern.anarazel.de (unknown [184.23.178.130]) by mail.messagingengine.com (Postfix) with ESMTPA id D0958680184; Wed, 13 Apr 2016 16:47:02 -0400 (EDT) Date: Wed, 13 Apr 2016 13:47:01 -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: <20160413204701.jj2m2tpt6awrxvis@alap3.anarazel.de> References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160412192801.wffn2vjyszyw4qa4@alap3.anarazel.de> <20160413171955.i53me46fqqhdlztq@alap3.anarazel.de> <20160413192110.fogwesjti3kxycnu@alap3.anarazel.de> <20160413200148.bawmwjdmggbllhha@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 15:21:31 -0500, Kevin Grittner wrote: > On Wed, Apr 13, 2016 at 3:01 PM, Andres Freund wrote: > > > If you want me to rn some other tests I can, but ISTM we have the > > data we need? > > Thanks for the additional detail on how this was run. I think I > still need a little more context, though: > > What is the kernel on which these tests were run? 3.16. I can upgrade to 4.4 if necessary. But I still believe very strongly that this is side-tracking the issue. An exclusive lock (or spinlock) in a very hot path, which previously didn't have a specific exclusively locked lock, will present scalability issues, regardless of kernel. > Which pg commit were these tests run against? 85e00470. + some reverts (the whitespace commits make this harder...) in the reverted case. > If 2201d801 was not included in your -1 tests, have you identified > where the 2% extra run time is going on -1 versus reverted? No. It's hard to do good profiles on most virtualized hardware, since hardware performance counters are disabled. So you only can do OS sampling; which has a pretty big performance influence. I'm not entirely sure what you mean with "2201d801 was not included in your -1 tests". The optimization was present. > Since several other threads lately have reported bigger variation than > that based on random memory alignment issues, can we confirm that this > is a real difference in what is at master's HEAD? It's unfortunately hard to measure this conclusively here (and in general). I guess we'll have to look, on native hardware, where the difference comes from. The difference is smaller on my laptop, and my workstation is somewhere on a container ship, other physical hardware I do not have. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers