From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: Kevin Grittner <kgrittn@gmail.com>
Cc: Kevin Grittner <kgrittn@postgresql.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Date: Wed, 13 Apr 2016 11:30:32 -0400
Message-ID: <857.1460561432@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobgREg+g_9ObMGA6i3bKtCdZ0iKiZVpgv_0ZSWcEsiNew@mail.gmail.com>
References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de>
<20160413025214.GA954515@alvherre.pgsql>
<20160413030530.dfldqhmtojo222c4@alap3.anarazel.de>
<CA+TgmoZqN0xevR+1pZ6j-99-ZCBoOphr-23tiREb+QW1Eu=KOA@mail.gmail.com>
<20591.1460555524@sss.pgh.pa.us>
<CA+TgmoY9VeZdTZkTp8SKoXPKKj0PGu2aKPt0dLTDDsgu+vm0yw@mail.gmail.com>
<21698.1460557237@sss.pgh.pa.us>
<CA+TgmoZYFZqLukuiRvz_izNPno+WqKVorcEvAi0jOSs0MsKhWA@mail.gmail.com>
<22526.1460558523@sss.pgh.pa.us>
<CA+TgmobgREg+g_9ObMGA6i3bKtCdZ0iKiZVpgv_0ZSWcEsiNew@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Apr 13, 2016 at 10:42 AM, Tom Lane <tgl@sss.pgh.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, andres@anarazel.de, alvherre@2ndquadrant.com, noah@leadboat.com, kgrittn@gmail.com, kgrittn@postgresql.org, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
In-Reply-To: <857.1460561432@sss.pgh.pa.us>
References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160413025214.GA954515@alvherre.pgsql> <20160413030530.dfldqhmtojo222c4@alap3.anarazel.de> <CA+TgmoZqN0xevR+1pZ6j-99-ZCBoOphr-23tiREb+QW1Eu=KOA@mail.gmail.com> <20591.1460555524@sss.pgh.pa.us> <CA+TgmoY9VeZdTZkTp8SKoXPKKj0PGu2aKPt0dLTDDsgu+vm0yw@mail.gmail.com> <21698.1460557237@sss.pgh.pa.us> <CA+TgmoZYFZqLukuiRvz_izNPno+WqKVorcEvAi0jOSs0MsKhWA@mail.gmail.com> <22526.1460558523@sss.pgh.pa.us> <CA+TgmobgREg+g_9ObMGA6i3bKtCdZ0iKiZVpgv_0ZSWcEsiNew@mail.gmail.com> <857.1460561432@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox