Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id E0C229FB562 for ; Wed, 10 Oct 2007 17:59:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 36013-09 for ; Wed, 10 Oct 2007 17:58:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id D4B779F9B7B for ; Wed, 10 Oct 2007 17:58:57 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so351137ugf for ; Wed, 10 Oct 2007 13:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=cvzEUtggIeg9zTspcgKNtzOkz3rKdOaS2vzTACjBBBY=; b=qqT5s97RP/c0DuTBMluDk2QTLsU9be6sDffg5U/ybPGKQK2OzqodPrFJrNy8xsbrK4VudHNAjET8tceRNzbltBakpGi5S9sMb1WcLjFHnr0jWvLxiF4kW33WE7zRQ7I/CXNmgChSHbhWhaDJ7uj3z1FIxQxSKGUhFdaYh7PN4BE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=G2V8cXUUc0GX+l7LxmGfGV7oTjr1hpnTpVGS1813ZbXMzAURv/fw3z+DFyNEtYtF1RtgBG8DZWXz8bHLy7NafxZduI3JnUv/m43ioovnreesnh61rIgclv8nCjB2yyL5JE9EBqHAsYheYqKrJ0Hhe5YF35iIYRt8j49M53Fj2cE= Received: by 10.67.86.19 with SMTP id o19mr2357023ugl.1192049934078; Wed, 10 Oct 2007 13:58:54 -0700 (PDT) Received: by 10.67.29.6 with HTTP; Wed, 10 Oct 2007 13:58:54 -0700 (PDT) Message-ID: Date: Wed, 10 Oct 2007 15:58:54 -0500 From: "Scott Marlowe" To: "Josh Trutwin" Subject: Re: Shared Buffer setting in postgresql.conf Cc: pgsql-performance@postgresql.org In-Reply-To: <20071010153201.65331672@joplin.trutwins.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071010153201.65331672@joplin.trutwins.homeip.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/114 X-Sequence-Number: 27136 On 10/10/07, Josh Trutwin wrote: > On Wed, 10 Oct 2007 10:20:02 -0500 > "Scott Marlowe" wrote: > > > In 7.4, using 25% is often too high a setting for it to handle well, > > and the practical useful maximum is usually under 10,000 > > shared_buffers, and often closer to 1,000 to 5,000 > > Scott - interesting reply. Is this also true for 8.1? I currently > have mine set to 16384 - server has 3.5 GB of total memory. No, starting with 8.0, the code to manage the shared_buffers is much more efficient with large numbers of shared buffers. With 8.0 and up the primary considerations are that the shared_buffers be big enough to hold your working set, but not so big as to run the system out of memory for other things, sorts, kernel caching, etc...