Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqNED-0005e0-2x for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 16:01:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqNEC-0006Qx-Lm for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 16:01:16 +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 1aqNCq-0004gA-IJ for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 15:59:52 +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 1aqNCj-0002vn-Pk for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 15:59:52 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D068820EF6 for ; Wed, 13 Apr 2016 11:59:43 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 13 Apr 2016 11:59:43 -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=G8dRU5uZMRr7eMRhmuEEQdfBf1I=; b=HobAE cRyGQ6ssGgoE3rZTEzLGH95FDWN4NOooC03t+qMHvGKvPkWqZk5OEMbJwzV+YNee +HwLg7JDF3tBiuqDQRp1J2SE/pZELOvEprtF8T0CWVs2N9VgJR8iDkrJl2zAjTCg YhydxrCXOmfzKdd4cugVy2yKLek1AfwN/q38fk= X-Sasl-enc: /kihrHfh10wdkwaAM/rxDVqP3Xu4cjPE98X6xpnIG0q+ 1460563183 Received: from intern.anarazel.de (unknown [192.77.237.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 76BC16801A6; Wed, 13 Apr 2016 11:59:43 -0400 (EDT) Date: Wed, 13 Apr 2016 08:59:42 -0700 From: Andres Freund To: Kevin Grittner Cc: Robert Haas , Alvaro Herrera , Noah Misch , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160413155942.fx6bnpwpoanbn3i4@alap3.anarazel.de> References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160413025214.GA954515@alvherre.pgsql> <20160413030530.dfldqhmtojo222c4@alap3.anarazel.de> <20160413150116.ixitwrmpdc2shcfy@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 10:31:19 -0500, Kevin Grittner wrote: > With a real-world application with realistic simulated user load > there was no such regression and a big gain in performance over > time, so we're talking about adjusting how broad a range of > workloads it benefits. I think it depends very heavily on the type of application. To be affected you need a high rate of snapshot acquisitions. So lots of small statements, or possibly longer running stuff involving volatile functions (which IIRC get new snapshots continually). > but as an example, if I only see such regression on a Linux kernel > with version a version < 3.8 I am going to be less concerned about > getting something into 9.6, since IMO it is completely irresponsible > to run a NUMA machine with 4 or more nodes on an OS with a substandard > NUMA scheduler. I'm not sure when 3.8 became available, but according > to Wikipedia Version 3.10 of the Linux kernel was released in June > 2013, so it's not like you need to be on the bleeding edge to have a > decent scheduler. I don't think effect of adding a single spinlock (an exclusive lock!) in a hot path is likely to be hugely dependant on the kernel version. We've had such cases before, and felt the pain. E.g. the spinlock in the ProcArrayLock used to be a *HUGE* contention point, and it has pretty much the same acquisition pattern as this spinlock now. 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