Re: Use PGAlignedBlock instead of "char buf[BLCKSZ]" in more places

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Use PGAlignedBlock instead of "char buf[BLCKSZ]" in more places
Date: 2023-12-05 03:47:08
Message-ID: ZW6dPETB5cvaHB3a@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Dec 04, 2023 at 09:47:24AM -0800, Andres Freund wrote:
> If we change something, we should consider making buffers like these aligned
> to page sizes, rather than just MAXALIGNED.

You mean 4k kernel pages, right? That makes sense to me.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2023-12-05 04:18:09 Re: CRC32C Parallel Computation Optimization on ARM
Previous Message Nathan Bossart 2023-12-05 03:46:47 introduce dynamic shared memory registry