Re: O_DIRECT for relations and SLRUs (Prototype) - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: O_DIRECT for relations and SLRUs (Prototype)
Date
Msg-id D82D8F7C-A0A0-4661-9066-F69F37E64287@yandex-team.ru
Whole thread Raw
In response to O_DIRECT for relations and SLRUs (Prototype)  (Michael Paquier <michael@paquier.xyz>)
Responses Re: O_DIRECT for relations and SLRUs (Prototype)  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
> 12 янв. 2019 г., в 9:46, Michael Paquier <michael@paquier.xyz> написал(а):
>
> Note that pg_attribute_aligned() cannot be used as that's not an
> option with clang and a couple of other comilers as far as I know, so
> the patch uses a simple set of placeholder buffers large enough to be
> aligned with the OS pages, which should be 4k for Linux by the way,
> and not set to BLCKSZ, but for WAL's O_DIRECT we don't really care
> much with such details.

Is it possible to avoid those memcopy's by aligning available buffers instead?
I couldn't understand this from the patch and this thread.

Best regards, Andrey Borodin.

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: speeding up planning with partitions
Next
From: Jack LIU
Date:
Subject: Re: SPI Interface to Call Procedure with Transaction Control Statements?