Re: Patch für MAP_HUGETLB for mmap() shared memory

Christian Kruse <cjk@defunct.ch>

From: Christian Kruse <cjk@defunct.ch>
To: pgsql-hackers@postgresql.org
Date: 2012-10-29T20:57:19Z
Lists: pgsql-hackers
Hi,

On Monday 29 October 2012 16:33:25 Tom Lane wrote:
> Christian Kruse <cjk+postgres@defunct.ch> writes:
> > I created a patch which implements MAP_HUGETLB for sysv shared memory
> > segments (PGSharedMemoryCreate). It is based on tests of Tom Lane and
> > Andres Freund, I added error handling, huge page size detection and a GUC
> > variable.
> My recollection is we'd decided not to pursue that because of fears that
> it could make performance horribly worse on some platforms.

This is why I created a GUC variable huge_tlb_pages = on|off|try to 
enable/disable this feature.

A performance improvement up to 10% seems worth the trouble of setting another 
config value, IMO.

Greetings,
 CK



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Give a better error message when trying to change