X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EC60AD1B49B for ; Thu, 4 Dec 2003 23:48:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 48633-07 for ; Thu, 4 Dec 2003 19:47:59 -0400 (AST) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id C1012D1B458 for ; Thu, 4 Dec 2003 19:47:55 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 1AS3CP-000F3J-0W; Thu, 04 Dec 2003 23:47:57 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id 9B17016C5B; Thu, 4 Dec 2003 23:47:56 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id ED8A515A6F; Thu, 4 Dec 2003 23:47:54 +0000 (GMT) From: Richard Huxton To: Jack Coates , josh@agliodbs.com Subject: Re: tuning questions Date: Thu, 4 Dec 2003 23:47:54 +0000 User-Agent: KMail/1.5 Cc: pgsql-performance References: <1070553983.6498.52.camel@cletus.lyris.com> <200312041324.37889.josh@agliodbs.com> <1070579771.18838.187.camel@cletus.lyris.com> In-Reply-To: <1070579771.18838.187.camel@cletus.lyris.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312042347.54461.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/111 X-Sequence-Number: 4971 On Thursday 04 December 2003 23:16, Jack Coates wrote: > > > > effective_cache_size = 10000 > > > > This is way the heck too low. it's supposed to be the size of all > > available RAM; I'd set it to 2GB*65% as a start. > > This makes a little bit of difference. I set it to 65% (15869 pages). That's still only about 127MB (15869 * 8KB). > Now we have some real disk IO: > procs memory swap io > system cpu > r b w swpd free buff cache si so bi bo in cs us > sy id > 0 3 1 2804 10740 40808 1899856 0 0 26624 0 941 4144 According to this your cache is currently 1,899,856 KB which in 8KB blocks is 237,482 - be frugal and say effective_cache_size = 200000 (or even 150000 if the trace above isn't typical). -- Richard Huxton Archonet Ltd