Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGtIY-0000Tz-Br for pgsql-admin@arkaria.postgresql.org; Thu, 29 Jan 2015 17:54:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YGtIX-0001bc-RF for pgsql-admin@arkaria.postgresql.org; Thu, 29 Jan 2015 17:54:33 +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 1YGtIW-0001Z8-GR for pgsql-admin@postgresql.org; Thu, 29 Jan 2015 17:54:32 +0000 Received: from mail-yk0-x235.google.com ([2607:f8b0:4002:c07::235]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YGtIT-00008D-JQ for pgsql-admin@postgresql.org; Thu, 29 Jan 2015 17:54:30 +0000 Received: by mail-yk0-f181.google.com with SMTP id 79so14484008ykr.12 for ; Thu, 29 Jan 2015 09:54:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=TizpxhiOKH0nC3MDRdVsfnlhkxOT8ZzAzKPBZF//VR4=; b=vwEz4JOagXU7eWbLK9cujNrvDuAPLHw8trRRCsET75JhatsYp39TGI2XRiUKgO3NbC c7EmCmPZ/aofXbjkxivOEpcyTUeERfeir8SRT6GW/wT8sSaWAv3gRBmOQct3zqo/hAoj 8T+h7y1Wu/0mR6mfToQ3W0tw+Fa1wLPvgkUV3iEolGRSxO1VlPPJRDhLlE2J+BeUryPr 8s5PLuFAVGUSE+ZHVabaMlphLCyfgO9aRM2uW+IrZknFnF2+vs25OjZgYJDW/Ot/XWt/ +HN9nhC3IJ1Lnj2/5dAF8rKzP6zoTdeudI2UI8qWL/wo1Az/nf6qBCa5CllJSCdLBGT8 dq6w== X-Received: by 10.236.39.33 with SMTP id c21mr1068503yhb.120.1422554068834; Thu, 29 Jan 2015 09:54:28 -0800 (PST) Received: from [192.168.254.3] (h77.89.102.166.static.ip.windstream.net. [166.102.89.77]) by mx.google.com with ESMTPSA id s63sm4970084yhf.7.2015.01.29.09.54.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jan 2015 09:54:28 -0800 (PST) Message-ID: <54CA73CE.1050503@gmail.com> Date: Thu, 29 Jan 2015 12:54:22 -0500 From: John Scalia User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: hugepage configuration for V.9.4.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 I'm certain that I'm no expert for this one, as I've never had to configure this parameter for anything prior, but I continue to get a startup error when I try to use this. The server is a VM running CentOS 6.5 with 4 Gb allocated to it. When I started setting "huge_pages = on", the server reported: %FATAL: could not map anonymous shared memory: Cannot allocate memory %HINT: this error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 1124876288 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections. Further research showed that server's /sys/kernel/mm/transparent_hugepage/enabled file contained "[always] madvise never" As I was concerned about the "always" setting, I used "cat madvise > " to the file so it reported "always [madvise] never" I even set this in /etc/rc.local and performed a reboot. Regardless of which setting, however, I receive the same failure message. Per its suggestions, my settings are shared_buffers = 1024Mb and max_connections = 100. Should I reduce these values? Is a 4 Gb test server too small to use huge_pages? The server does run just fine with "huge_pages = try" or "off". What else should I be checking? -- Jay -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin