Re: What is the posix_memalign() equivalent for the PostgreSQL? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: What is the posix_memalign() equivalent for the PostgreSQL?
Date
Msg-id 19198.1472835937@sss.pgh.pa.us
Whole thread Raw
In response to Re: What is the posix_memalign() equivalent for the PostgreSQL?  (Anderson Carniel <accarniel@gmail.com>)
Responses Re: What is the posix_memalign() equivalent for the PostgreSQL?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Anderson Carniel <accarniel@gmail.com> writes:
> I would like to know if the PostgreSQL provides a memory function that
> allocates aligned memory.

Not beyond MAXALIGN (although the shared-memory alloc functions do align
to cacheline boundaries IIRC).

> If not, according to your experience, is there a
> significance difference between the performance of the O_DIRECT or not?

AFAIK, nobody's really bothered to measure whether that would be useful
for Postgres.  The results would probably be quite platform-specific
anyway.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Implement targetlist SRFs using ROWS FROM() (was Changed SRF in targetlist handling)
Next
From: Andres Freund
Date:
Subject: Re: What is the posix_memalign() equivalent for the PostgreSQL?