pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feedFrom: Andres Freund <andres@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Lockless StrategyGetBuffer() clock sweep
Date: Tue, 23 Dec 2014 22:51:40 +0100
Message-ID: <20141223215140.GG23613@alap3.anarazel.de> (raw)
In-Reply-To: <CA+TgmoYEWEb+-p3Ru2Go4w2n1tyRPiBoKu_HdADw14Boi6c-Mw@mail.gmail.com>
References: <20141027133218.GA2639@awork2.anarazel.de>
<CA+TgmoaZS7Dx2EqcXjxc2PMrFq=ciJibi6rbwcRO-Hdn64H0tg@mail.gmail.com>
<20141029190927.GF17724@awork2.anarazel.de>
<CA+TgmobPya2PSku=wRxugZK70C+3VHV1pJSO2KZvvteNONv+pw@mail.gmail.com>
<20141208195139.GB30157@alap3.anarazel.de>
<CA+Tgmob=CK8ib6YqcfjG+oAYahXQFiH8ffk7M_dVhscDQvaBYQ@mail.gmail.com>
<20141223203052.GC23613@alap3.anarazel.de>
<CA+TgmoYEWEb+-p3Ru2Go4w2n1tyRPiBoKu_HdADw14Boi6c-Mw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2014-12-23 16:42:41 -0500, Robert Haas wrote:
> I don't think I have anything to say about the substance of the patch.
> If fetch-and-add is faster than a spinlock cycle, then it is. And
> it's good to be fast.
I don't think the primary advantage is that it's fast (even though it
should be as fast as a single TAS on x86). It's that you can never sleep
while holding the spinlock when there's no such spinlock and that
everytime you transfer the cacheline from another cpu to you you'll also
make progress...
Will fix the other stuff.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
view thread (12+ messages)
Message-ID: <20141223215140.GG23613@alap3.anarazel.de>
Permalink: ../20141223215140.GG23613@alap3.anarazel.de/
Also on: postgresql.org/message-id/20141223215140.GG23613@alap3.anarazel.de
reply
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: andres@2ndquadrant.com, robertmhaas@gmail.com
Subject: Re: Lockless StrategyGetBuffer() clock sweep
In-Reply-To: <20141223215140.GG23613@alap3.anarazel.de>
* 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