Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C40BD650EA2 for ; Mon, 30 Jun 2008 15:28:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 26865-03 for ; Mon, 30 Jun 2008 15:28:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from easy2.in-chemnitz.de (easy2.in-chemnitz.de [88.198.17.232]) by postgresql.org (Postfix) with ESMTP id ED9DE650EA0 for ; Mon, 30 Jun 2008 15:28:31 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by easy2.in-chemnitz.de (Postfix) with ESMTP id 56E5D47000B for ; Mon, 30 Jun 2008 20:28:30 +0200 (CEST) Received: from easy2.in-chemnitz.de ([127.0.0.1]) by localhost (easy.in-chemnitz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0K5mySE+IGVh for ; Mon, 30 Jun 2008 20:28:30 +0200 (CEST) Received: by easy2.in-chemnitz.de (Postfix, from userid 1013) id 474E9470009; Mon, 30 Jun 2008 20:28:30 +0200 (CEST) Date: Mon, 30 Jun 2008 20:28:30 +0200 From: Tino Schwarze To: pgsql-admin@postgresql.org Subject: Re: Configuring Shared Buffers Message-ID: <20080630182830.GA5358@easy2.in-chemnitz.de> References: <3a0028490806301052y193a4aeayfcc6deafdeb1cdb2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3a0028490806301052y193a4aeayfcc6deafdeb1cdb2@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/251 X-Sequence-Number: 29589 On Mon, Jun 30, 2008 at 02:52:05PM -0300, Rafael Domiciano wrote: > Folks, I am configuring a new Postgres Server, that's gonna substitute the > critical server of the enterprise. > I have a good machine: > Quad-Core 2.5 Ghz > 4 Gb RAM > 1 Dedicated HD 300 Gb Sata for the PostgreSQL Directory If it's the "critical server", you'd want to use a RAID1 for the disk so your server and data survives a harddisk crash. > My question is: > How much I could assign for the "Shared Buffers" parameter? > > The default assigned now is 24 Mb. That's rather low. I suppose, you may safely say 200Mb here (check that you don't run into OS limits, they might need raising). You may also want to increase work_mem, but it depends on what the DB does, how many concurrent connections you have etc. pp. maintenance_work_mem may safely be set rather high - it speeds up vacuum etc. and is only used during such operations. Also look for effective_cache_size and max_fsm_pages. BTW: What version are you going to use? Tino. -- "What we nourish flourishes." - "Was wir nähren erblüht." www.craniosacralzentrum.de www.forteego.de