Re: Patch für MAP_HUGETLB for mmap() shared memory - Mailing list pgsql-hackers

From Christian Kruse
Subject Re: Patch für MAP_HUGETLB for mmap() shared memory
Date
Msg-id 1772727.TYfkZv6Nri@achilles.local.defunct.ch
Whole thread Raw
In response to Re: Patch für MAP_HUGETLB for mmap() shared memory  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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




pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Creating indexes in the background
Next
From: David Lee
Date:
Subject: Re: Creating indexes in the background