Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YCVj8-0002io-AV for pgsql-admin@arkaria.postgresql.org; Sat, 17 Jan 2015 15:55:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YCVj6-0003Dm-Uk for pgsql-admin@arkaria.postgresql.org; Sat, 17 Jan 2015 15:55:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YCVj4-0003Cp-N9 for pgsql-admin@postgresql.org; Sat, 17 Jan 2015 15:55:50 +0000 Received: from p01c11o143.mxlogic.net ([208.65.144.66]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YCVj1-00013F-AM for pgsql-admin@postgresql.org; Sat, 17 Jan 2015 15:55:48 +0000 Received: from unknown [192.207.234.194] (EHLO ExHubCas1.TIGR.ORG) by p01c11o143.mxlogic.net(mxl_mta-8.2.0-3) with ESMTP id 3068ab45.2af282a10940.306598.00-498.760449.p01c11o143.mxlogic.net (envelope-from ); Sat, 17 Jan 2015 08:55:47 -0700 (MST) X-MXL-Hash: 54ba86033109773e-0fc4187f31db6bd8904885aa92c2bc7f8df0616d Received: from unknown [192.207.234.194] (EHLO ExHubCas1.TIGR.ORG) by p01c11o143.mxlogic.net(mxl_mta-8.2.0-3) over TLS secured channel with ESMTP id fc58ab45.0.306476.00-315.760129.p01c11o143.mxlogic.net (envelope-from ); Sat, 17 Jan 2015 08:55:00 -0700 (MST) X-MXL-Hash: 54ba85d425b38af7-e7d3b231082b33cb4cde06449ea41f061631bbce Received: from [172.18.5.242] (172.18.5.242) by ExHubCas1.TIGR.ORG (172.17.5.94) with Microsoft SMTP Server id 8.3.389.2; Sat, 17 Jan 2015 10:54:54 -0500 Message-ID: <54BA85D5.90505@jcvi.org> Date: Sat, 17 Jan 2015 10:55:01 -0500 From: Michael Heaney User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Tom Lane CC: "pgsql-admin@postgresql.org" Subject: Re: Huge pages not working on PG 9.4 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> <2824.1421466757@sss.pgh.pa.us> In-Reply-To: <2824.1421466757@sss.pgh.pa.us> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-AnalysisOut: [v=2.1 cv=O5otvXNW c=1 sm=1 tr=0 a=w1dbv1SI/ukx7BArlIOzxg==] X-AnalysisOut: [:117 a=w1dbv1SI/ukx7BArlIOzxg==:17 a=DgqbUt__V68A:10 a=BLc] X-AnalysisOut: [eEmwcHowA:10 a=N659UExz7-8A:10 a=QWZKEEUnAAAA:8 a=HpMKyOHa] X-AnalysisOut: [AAAA:8 a=YlVTAMxIAAAA:8 a=YNv0rlydsVwA:10 a=RpumMVl6fGg5VK] X-AnalysisOut: [vvDKUA:9 a=pILNOxqGKmIA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2015011710); S=0.200(2014051901)] X-MAIL-FROM: X-SOURCE-IP: [192.207.234.194] X-Pg-Spam-Score: -2.6 (--) 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 On 1/16/2015 10:52 PM, Tom Lane wrote: > 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 Nice catch! The following line was missing from /usr/include/bits/mman.h on CentOS 6.4: # define MAP_HUGETLB 0x40000 /* Create huge page mapping. */ I added it to a test 6.4 box, and the rebuilt Postgres was then able to use huge pages. I'm leery about adding this to all the 6.4 boxes, though, without some reassurance that it won't break something. I'll bring it up with my Linux SA's next week. Thanks again for your help! -- Michael Heaney JCVI -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin