pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Move each SLRU's lwlocks to a separate tranche.
Date: Sun, 10 Apr 2016 16:08:56 -0700
Message-ID: <20160410230856.xont3ukgmsnpygrf@alap3.anarazel.de> (raw)
In-Reply-To: <CA+TgmobOqZt1FG2YpmvpUoOBRPHL5vjnHy8cay6fs_h1pM-hLw@mail.gmail.com>
References: <E1Zwy2E-0003Rt-1O@gemulon.postgresql.org>
	<20160325070506.56i5p7jzxwqfljm6@alap3.anarazel.de>
	<CA+TgmoZ4PsKukByQbpADpshmhWY99C-fM_Pk5RE2_ahXTn8BNA@mail.gmail.com>
	<31588.1458913723@sss.pgh.pa.us>
	<CA+TgmoZyRUV=SFEppyDiDNApEH_p=5C8_GSnochQRQksVSpAAQ@mail.gmail.com>
	<14166.1458924422@sss.pgh.pa.us>
	<CA+TgmobOqZt1FG2YpmvpUoOBRPHL5vjnHy8cay6fs_h1pM-hLw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 2016-04-05 15:48:22 -0400, Robert Haas wrote:
> On Fri, Mar 25, 2016 at 12:47 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Robert Haas <robertmhaas@gmail.com> writes:
> >> On Fri, Mar 25, 2016 at 9:48 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >>> Robert Haas <robertmhaas@gmail.com> writes:
> >>>> It's stupid that we keep spending time and energy figuring out which
> >>>> shared memory data structures require alignment and which ones don't.
> >>>> Let's just align them *all* and be done with it.  The memory cost
> >>>> shouldn't be more than a few kB.
> >
> >>> I think such a proposal should come with a measurement, not just
> >>> speculation about what it costs.
> >
> >> About 6kB with default settings.  See below.
> >
> > Sold, then.
> 
> Excellent.  Done.

InitBufferPool() manually fixes up alignment; that should probably be
removed now.

I also wonder if it doesn't make sense to fix PG_CACHE_LINE_SIZE to
64byte on x86. I personally think a manual ifdef in pg_config_manual.h
is ok for that.

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



view thread (15+ messages)  latest in thread

Message-ID: <20160410230856.xont3ukgmsnpygrf@alap3.anarazel.de>
Permalink:  ../20160410230856.xont3ukgmsnpygrf@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160410230856.xont3ukgmsnpygrf@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 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: andres@anarazel.de, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Move each SLRU's lwlocks to a separate tranche.
  In-Reply-To: <20160410230856.xont3ukgmsnpygrf@alap3.anarazel.de>
  References: <E1Zwy2E-0003Rt-1O@gemulon.postgresql.org> <20160325070506.56i5p7jzxwqfljm6@alap3.anarazel.de> <CA+TgmoZ4PsKukByQbpADpshmhWY99C-fM_Pk5RE2_ahXTn8BNA@mail.gmail.com> <31588.1458913723@sss.pgh.pa.us> <CA+TgmoZyRUV=SFEppyDiDNApEH_p=5C8_GSnochQRQksVSpAAQ@mail.gmail.com> <14166.1458924422@sss.pgh.pa.us> <CA+TgmobOqZt1FG2YpmvpUoOBRPHL5vjnHy8cay6fs_h1pM-hLw@mail.gmail.com> <20160410230856.xont3ukgmsnpygrf@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