Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment
Date: 2022-11-08 03:54:25
Message-ID: CAApHDvox5un-TaViSxi1jD_1XgN60+VQbO_30B+rjQdCK9bP8g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 8 Nov 2022 at 15:17, John Naylor <john(dot)naylor(at)enterprisedb(dot)com> wrote:
>
>
> On Tue, Nov 8, 2022 at 8:57 AM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> > Is there anything we could align to CPU cacheline size that would
> > speed something up?
>
> InitCatCache() already has this, which could benefit from simpler notation.

Thanks. I wasn't aware. I'll convert that to use palloc_aligned in the patch.

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message houzj.fnst@fujitsu.com 2022-11-08 03:56:43 RE: Perform streaming logical transactions by background workers and parallel apply
Previous Message David Rowley 2022-11-08 03:53:49 Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment