Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 4AEC59FB30F for ; Sun, 28 Jan 2007 19:23:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 11378-10 for ; Sun, 28 Jan 2007 19:23:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by postgresql.org (Postfix) with ESMTP id D38EF9FB319 for ; Sun, 28 Jan 2007 19:23:44 -0400 (AST) X-EthosMedia-Virus-Scanned: no infections found Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 11292503; Sun, 28 Jan 2007 15:27:37 -0800 From: Josh Berkus Organization: PostgreSQL @ Sun To: pgsql-performance@postgresql.org Subject: Re: Tuning Date: Sun, 28 Jan 2007 15:24:24 -0800 User-Agent: KMail/1.8.2 Cc: "John Parnefjord" References: <76C73999206F3145A2E3046A5C32A103F02A5A@kibmail.kib.local> In-Reply-To: <76C73999206F3145A2E3046A5C32A103F02A5A@kibmail.kib.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701281524.24317.josh@agliodbs.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/397 X-Sequence-Number: 22998 John, > -work_mem Depends on the number of concurrent queries you expect to run and what size sorts you expect them to do. > -maintenance_work_mem - 50% of the largest table? Actually, in current code I've found that anything over 256mb doesn't actually get used. > -shared_buffers - max value 50000 Actually, I need to update that. On newer faster multi-core machines you may want to allocate up to 1GB of shared buffers. > -effective_cache_size - max 2/3 of available ram, ie 24GB on the > hardware described above Yes. > -shmmax - how large dare I set this value on dedicated postgres servers? Set it to 2GB and you'll be covered. > -checkpoint_segments - this is crucial as one of the server is > transaction heavy Well, it only helps you to raise this if you have a dedicated disk resource for the xlog. Otherwise having more segments doesn't help you much. > -vacuum_cost_delay Try 200ms to start. Also, set wal_buffers to 128. -- Josh Berkus PostgreSQL @ Sun San Francisco