Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqMlz-0004NN-RR for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 15:32: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 1aqMlz-0003wm-1n for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 15:32: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 1aqMkd-0002P6-6V for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 15:30:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqMkX-0006eF-I5; Wed, 13 Apr 2016 15:30:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3DFUW2N000858; Wed, 13 Apr 2016 11:30:32 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , Alvaro Herrera , Noah Misch , Kevin Grittner , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < In-reply-to: References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160413025214.GA954515@alvherre.pgsql> <20160413030530.dfldqhmtojo222c4@alap3.anarazel.de> <20591.1460555524@sss.pgh.pa.us> <21698.1460557237@sss.pgh.pa.us> <22526.1460558523@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 13 Apr 2016 11:01:37 -0400" Date: Wed, 13 Apr 2016 11:30:32 -0400 Message-ID: <857.1460561432@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) 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 Robert Haas writes: > On Wed, Apr 13, 2016 at 10:42 AM, Tom Lane wrote: >> No, you're ignoring my point, which is what happens on single-CPU >> 32-bit machines, and whether we aren't going to destroy performance >> on low-end machines in pursuit of better performance on high-end. > One of us is confused, or we're just talking past each other, because > I don't think I'm ignoring your point at all. In fact, I think I just > responded to it rather directly. I agree that the exact risk you are > describing exists. However, the multiple spinlock cycles that you are > concerned about will only occur on a platform that doesn't support > 64-bit atomics. In order to test whether there is a performance > problem on such hardware, or how serious that problem is, we'd need to > have access to such hardware, and I don't know where to find any such > hardware. Do you? As Andres says, low-end ARM machines are probably the most common such hardware right now. I have two non-ARM machines in the buildfarm that certainly haven't got such instructions (prairiedog and gaur/pademelon). Now I wouldn't propose that we need to concern ourselves very much with performance on those two decade-plus-old platforms, but I do think that performance on small ARM machines is still of interest. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers