From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Ivan Kartyshov <i.kartyshov@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: less expensive pg_buffercache on big shmem
Date: Wed, 21 Sep 2016 01:43:24 +0200
Message-ID: <bd07cf41-56f0-7ff1-8000-361dcc4d266d@2ndquadrant.com> (raw)
In-Reply-To: <CA+TgmobrEja6V3Jgw+KJR1um7VNT2Mup=vrrJwnvWiFmM2vjNw@mail.gmail.com>
References: <f9d6cab2-73a7-7a84-55a8-07dcb8516ae5@postgrespro.ru>
<CA+TgmoZqSrHH2qpBTs2EmsFwnxhLGN7iAgK8RtCz4Kqvps4Xzw@mail.gmail.com>
<20160902031927.mchzocis5lnymykz@alap3.anarazel.de>
<CA+TgmobrEja6V3Jgw+KJR1um7VNT2Mup=vrrJwnvWiFmM2vjNw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 09/02/2016 11:01 AM, Robert Haas wrote:
> On Fri, Sep 2, 2016 at 8:49 AM, Andres Freund <andres@anarazel.de> wrote:
>> On 2016-09-02 08:31:42 +0530, Robert Haas wrote:
>>> I wonder whether we ought to just switch from the consistent method to
>>> the semiconsistent method and call it good.
>>
>> +1. I think, before long, we're going to have to switch away from having
>> locks & partitions in the first place. So I don't see a problem relaxing
>> this. It's not like that consistency really buys you anything... I'd
>> even consider not using any locks.
>
> I think we certainly want to lock the buffer header, because otherwise
> we might get a torn read of the buffer tag, which doesn't seem good.
> But it's not obvious to me that there's any point in taking the lock
> on the buffer mapping partition; I'm thinking that doesn't really do
> anything unless we lock them all, and we all seem to agree that's
> going too far.
+1 from me to only locking the buffer headers. IMHO that's perfectly
fine for the purpose of this extension.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, 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
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-hackers@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, robertmhaas@gmail.com, andres@anarazel.de, i.kartyshov@postgrespro.ru
Subject: Re: less expensive pg_buffercache on big shmem
In-Reply-To: <bd07cf41-56f0-7ff1-8000-361dcc4d266d@2ndquadrant.com>
References: <f9d6cab2-73a7-7a84-55a8-07dcb8516ae5@postgrespro.ru> <CA+TgmoZqSrHH2qpBTs2EmsFwnxhLGN7iAgK8RtCz4Kqvps4Xzw@mail.gmail.com> <20160902031927.mchzocis5lnymykz@alap3.anarazel.de> <CA+TgmobrEja6V3Jgw+KJR1um7VNT2Mup=vrrJwnvWiFmM2vjNw@mail.gmail.com> <bd07cf41-56f0-7ff1-8000-361dcc4d266d@2ndquadrant.com>
* 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