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

From: Christian Kruse <cjk(at)defunct(dot)ch>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch für MAP_HUGETLB for mmap() shared memory
Date: 2012-10-29 20:57:19
Message-ID: 1772727.TYfkZv6Nri@achilles.local.defunct.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Monday 29 October 2012 16:33:25 Tom Lane wrote:
> Christian Kruse <cjk+postgres(at)defunct(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2012-10-29 21:14:53 Re: [HACKERS] Patch für MAP_HUGETLB for mmap() shared memory
Previous Message Andres Freund 2012-10-29 20:54:51 Re: Patch für MAP_HUGETLB for mmap() shared memory