Re: What is the posix_memalign() equivalent for the PostgreSQL?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Anderson Carniel <accarniel(at)gmail(dot)com>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: What is the posix_memalign() equivalent for the PostgreSQL?
Date: 2016-09-02 17:05:37
Message-ID: 19198.1472835937@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Anderson Carniel <accarniel(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2016-09-02 17:17:49 Re: What is the posix_memalign() equivalent for the PostgreSQL?
Previous Message Tom Lane 2016-09-02 16:32:51 Re: Implement targetlist SRFs using ROWS FROM() (was Changed SRF in targetlist handling)