Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 277912E01C8 for ; Fri, 15 Feb 2008 09:46:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 59906-01-4 for ; Fri, 15 Feb 2008 09:46:38 -0400 (AST) Received: from is.rice.edu (is.rice.edu [128.42.42.24]) by postgresql.org (Postfix) with ESMTP id 9A7392E01D9 for ; Fri, 15 Feb 2008 09:37:37 -0400 (AST) Received: from scan1.mail.rice.edu (scan1.mail.rice.edu [128.42.58.160]) by is.rice.edu (Postfix) with ESMTP id 433BC4182E; Fri, 15 Feb 2008 07:37:35 -0600 (CST) Received: from is.rice.edu ([128.42.42.24]) by scan1.mail.rice.edu (scan1.mail.rice.edu [128.42.58.160]) (amavisd-new, port 10024) with ESMTP id 00516-01; Fri, 15 Feb 2008 07:37:34 -0600 (CST) Received: by is.rice.edu (Postfix, from userid 18612) id 853D74182B; Fri, 15 Feb 2008 07:37:34 -0600 (CST) Date: Fri, 15 Feb 2008 07:37:34 -0600 From: Kenneth Marshall To: Peter Schuller Cc: pgsql-performance@postgresql.org Subject: Re: shared_buffers in 8.3 w/ lots of RAM on dedicated PG machine Message-ID: <20080215133734.GU12156@it.is.rice.edu> References: <20080215123528.GA16532@hyperion.scode.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080215123528.GA16532@hyperion.scode.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by amavis-2.2.1 at scan1.mail.rice.edu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/177 X-Sequence-Number: 28719 On Fri, Feb 15, 2008 at 01:35:29PM +0100, Peter Schuller wrote: > Hello, > > my impression has been that in the past, there has been a general > semi-consensus that upping shared_buffers to use the majority of RAM > has not generally been recommended, with reliance on the buffer cache > instead being the recommendation. > > Given the changes that have gone into 8.3, in particular with regards > to minimizing the impact of large sequential scans, would it be > correct to say that given that > > - enough memory is left for other PG bits (sort mems and whatnot else) > - only PG is running on the machine > - you're on 64 bit so do not run into address space issues > - the database working set is larger than RAM > > it would be generally advisable to pump up shared_buffers pretty much > as far as possible instead of relying on the buffer cache? > > -- > / Peter Schuller > > PGP userID: 0xE9758B7D or 'Peter Schuller ' > Key retrieval: Send an E-Mail to getpgpkey@scode.org > E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org > Peter, PostgreSQL still depends on the OS for file access and caching. I think that the current recommendation is to have up to 25% of your RAM in the shared buffer cache. Ken