Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq2HL-0006EJ-NS for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 17:39:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aq2HK-0001y2-I3 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 17:39:06 +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 1aq2HI-0001w8-Lh for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 17:39:04 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aq2HF-0004N4-5d for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 17:39:03 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E6258209ED for ; Tue, 12 Apr 2016 13:38:59 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 12 Apr 2016 13:38:59 -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=Q9lfNW7qQ38Oh244Nctx810jzqc=; b=VcFCk B7F+cRugOqM149VA9oaU10gbwBWsQ6b930sQZHmuF6/3K3GosyrF3U92YCpKxbsR GdgnyAlILNBcHbrXv04yM8EiVLguZtgdzS7DBmjpzWEA4MSVIT4C18UMprf1AGwv pp/W6ERtwnlppAIbrQIL7ramqYYW5wdDBtyb9M= X-Sasl-enc: ouTgZ1eDqBow8JDfiGs66g4E0BuUGu669n8cexNz7baG 1460482739 Received: from intern.anarazel.de (unknown [184.23.178.130]) by mail.messagingengine.com (Postfix) with ESMTPA id 825426801FE; Tue, 12 Apr 2016 13:38:59 -0400 (EDT) Date: Tue, 12 Apr 2016 10:38:56 -0700 From: Andres Freund To: Kevin Grittner , pgsql-hackers@postgresql.org Cc: pgsql-committers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160412173856.6jumsz7es5zac42o@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 2016-04-12 16:49:25 +0000, Kevin Grittner wrote: > On a big NUMA machine with 1000 connections in saturation load > there was a performance regression due to spinlock contention, for > acquiring values which were never used. Just fill with dummy > values if we're not going to use them. FWIW, I could see massive regressions with just 64 connections. I'm a bit scared of having an innoccuous sounding option regress things by a factor of 10. I think, in addition to this fix, we need to actually solve the scalability issue here to a good degree. One way to do so is to apply the parts of 0001 in http://archives.postgresql.org/message-id/20160330230914.GH13305%40awork2.anarazel.de defining PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY and rely on that. Another to apply the whole patch and simply put the lsn in an 8 byte atomic. - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers