From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Greg Stark <stark(at)mit(dot)edu>, Peter Geoghegan <pg(at)heroku(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Misaligned BufferDescriptors causing major performance problems on AMD |
Date: | 2014-02-06 08:40:32 |
Message-ID: | 20140206084032.GI28649@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2014-02-05 12:36:42 -0500, Robert Haas wrote:
> >> It may well be that your proposal is spot on. But I'd like to see some
> >> data-structure-by-data-structure measurements, rather than assuming that
> >> alignment must be a good thing.
> >
> > I am fine with just aligning BufferDescriptors properly. That has
> > clearly shown massive improvements.
>
> I thought your previous idea of increasing BUFFERALIGN to 64 bytes had
> a lot to recommend it.
Good.
I wonder if we shouldn't move that bit of logic:
if (size >= BUFSIZ)
newStart = BUFFERALIGN(newStart);
out of ShmemAlloc() and instead have a ShmemAllocAligned() and
ShmemInitStructAligned() that does it. So we can sensibly can control it
per struct.
> But that doesn't mean it doesn't need testing.
I feel the need here, to say that I never said it doesn't need testing
and never thought it didn't...
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Yeb Havinga | 2014-02-06 08:54:12 | Re: Row-security on updatable s.b. views |
Previous Message | Marti Raudsepp | 2014-02-06 08:39:41 | Re: PoC: Partial sort |