Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YCKRP-0007EM-Fp for pgsql-admin@arkaria.postgresql.org; Sat, 17 Jan 2015 03:52:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YCKRO-00045x-Rz for pgsql-admin@arkaria.postgresql.org; Sat, 17 Jan 2015 03:52:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YCKRM-00045i-RM for pgsql-admin@postgresql.org; Sat, 17 Jan 2015 03:52:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YCKRF-0004oC-3X for pgsql-admin@postgresql.org; Sat, 17 Jan 2015 03:52:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t0H3qbYi002825; Fri, 16 Jan 2015 22:52:37 -0500 From: Tom Lane To: Michael Heaney cc: "pgsql-admin@postgresql.org" Subject: Re: Huge pages not working on PG 9.4 In-reply-to: <54B9C41D.10109@jcvi.org> References: <54B98BB5.4050902@jcvi.org> <73DC9DCF-7C2D-49F7-8E8C-19F9C9E13854@elevated-dev.com> <54B991F5.7040505@jcvi.org> <54B995CE.5010301@jcvi.org> <28981.1421452694@sss.pgh.pa.us> <54B9C41D.10109@jcvi.org> Comments: In-reply-to Michael Heaney message dated "Fri, 16 Jan 2015 21:08:29 -0500" Date: Fri, 16 Jan 2015 22:52:37 -0500 Message-ID: <2824.1421466757@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Michael Heaney writes: > On 1/16/2015 6:58 PM, Tom Lane wrote: >> A quick look at the PG source code says that that message means that >> MAP_HUGETLB isn't defined. Our code is expecting 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? > Thanks for the helpful clue, Tom. I haven't knowingly defined > _POSIX_SOURCE or any other macros. I go through the same configure/make > process on the Centos 6.6 VM on my home PC, and huge pages works just > fine. Maybe it's an issue with CentOS 6.4? Dunno, hard to believe that hugetlb support wasn't there in 6.4. A quick troll through the RHEL 6.5 and 6.6 release notes finds something about better hugetlb support for System Z processors, but what we're discussing here shouldn't be architecture-specific. You might try comparing /usr/include/sys/mman.h, /usr/include/bits/mman.h, and /usr/include/features.h between your 6.4 and 6.6 systems to see if you can spot any relevant differences. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin