Re: Huge pages not working on PG 9.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Heaney <mheaney(at)jcvi(dot)org>
Cc: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Huge pages not working on PG 9.4
Date: 2015-01-16 23:58:14
Message-ID: 28981.1421452694@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Heaney <mheaney(at)jcvi(dot)org> writes:
>> FATAL: huge pages not supported on this platform

> <sigh> Nope, that didn't make any difference. Since I compile my own
> binary,
> I'm wondering if there's something that 'configure' didn't set properly.

A quick look at the PG source code says that that message means that
MAP_HUGETLB isn't defined. Our code is expecting <sys/mman.h> to provide
that symbol, which it should do by default according to what I can see on
my RHEL 6.6 box. Perhaps you've defined some of the feature restriction
macros like _POSIX_SOURCE?

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Heaney 2015-01-17 02:08:29 Re: Huge pages not working on PG 9.4
Previous Message Scott Ribe 2015-01-16 23:39:30 Re: Huge pages not working on PG 9.4