Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1ACDF6340AB for ; Mon, 15 Mar 2010 18:13:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27832-03-5 for ; Mon, 15 Mar 2010 21:13:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id A62EE643E1B for ; Mon, 15 Mar 2010 18:01:04 -0300 (ADT) Received: by pva4 with SMTP id 4so181626pva.19 for ; Mon, 15 Mar 2010 14:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=75zzphi0TJIl78kmIEm5wQOH9NDj4mHk30tSXetJLVk=; b=w0FZQghjoCMkTfazv66a/JYcq+3Cu84Aoqvm0jfGGp0jm3qlW3D7hH/65kSwIpL8Rx 7cXlIHY0ouOhpOaeNZ82sLtn8bsVsOUyKV0N6Ct8bxmX2Am+0ONcTWHROVsJZOBXr2Q1 x7Q0joxibb4p1jkmBAlXE169+kYH0sHrkDOko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pmNK2axbOuO02LPn52m7MdzaLwX9/eGW4Lg0I/l35FUo2CGsoISt5YwPu0GbUbZ2Tk QWzrXrFq1phntxsym39SBqu7ZEI7VaqNeoMkN+Ycj4SFcSxQiSPWGLzgv2zE6YX6Fvf4 AWU6l90U9W7pVpI4e3Q/ftzlFgcKLPmP7q1x4= MIME-Version: 1.0 Received: by 10.141.88.17 with SMTP id q17mr3340399rvl.170.1268686862705; Mon, 15 Mar 2010 14:01:02 -0700 (PDT) In-Reply-To: References: <8F346004-F0FB-440F-8627-0F2B8FAE53D9@silentmedia.com> Date: Mon, 15 Mar 2010 14:01:02 -0700 Message-ID: Subject: Re: shared_buffers advice From: Scott Marlowe To: Paul McGarry Cc: Ben Chobot , Postgresql Performance list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/157 X-Sequence-Number: 37982 On Thu, Mar 11, 2010 at 5:19 PM, Paul McGarry wrote: > On 11 March 2010 16:16, Ben Chobot wrote: > >> I *can* say a 10GB shared_buffer value is working "well" with my 128GB o= f RAM..... whether or not it's "optimal," I couldn't say without a lot of e= xperimentation I can't afford to do right now. You might have a look at the= pg_buffercache contrib module. It can tell you how utilized your shared bu= ffers are. > > Thanks Ben and Greg, > > I shall start with something relatively sane (such as 10GB) and then > see how we go from there. > > Once this server has brought online and bedded in I will be updating > our other three servers which are identical in hardware spec and all > have the same replicated data so I'll be able to do some real world > tests with different settings withn the same load. > > (Currently one is currently running postgresql 8.1 on 32bit OS under a > VM, the other two running 8.3 on 64bit OS with 64gig of memory but > with Postgres still tuned for the 8 gigs the servers originally had > and under a VM). Definitely look at lowering the swappiness setting. On a db server I go for a swappiness of 1