Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id AD1B265014C for ; Wed, 26 Nov 2008 18:58:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85257-01 for ; Wed, 26 Nov 2008 18:58:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 0E5D16504F2 for ; Wed, 26 Nov 2008 18:58:35 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id mAQMwXCq026200; Wed, 26 Nov 2008 17:58:33 -0500 (EST) To: "Ryan Hansen" cc: pgsql-performance@postgresql.org Subject: Re: Memory Allocation In-reply-to: <011101c95013$b6fca0a0$24f5e1e0$@hansen@brightbuilders.com> References: <011101c95013$b6fca0a0$24f5e1e0$@hansen@brightbuilders.com> Comments: In-reply-to "Ryan Hansen" message dated "Wed, 26 Nov 2008 15:09:55 -0700" Date: Wed, 26 Nov 2008 17:58:33 -0500 Message-ID: <26199.1227740313@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/275 X-Sequence-Number: 32006 "Ryan Hansen" writes: > I have a fairly robust server running Ubuntu Hardy Heron, 24 GB of memory, > and I've tried to commit half the memory to PG's shared buffer, but it seems > to fail. I'm setting the kernel shared memory accordingly using sysctl, > which seems to work fine, but when I set the shared buffer in PG and restart > the service, it fails if it's above about 8 GB. Fails how? And what PG version is that? FWIW, while there are various schools of thought on how large to make shared_buffers, pretty much everybody agrees that half of physical RAM is not the sweet spot. What you're likely to get is maximal inefficiency with every active disk page cached twice --- once in kernel space and once in shared_buffers. regards, tom lane