X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 63734D1B542 for ; Fri, 10 Oct 2003 21:15:25 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 05796-06 for ; Fri, 10 Oct 2003 18:14:40 -0300 (ADT) Received: from yertle.kcilink.com (yertle.kcilink.com [216.194.193.105]) by svr1.postgresql.org (Postfix) with ESMTP id 6607FD1B528 for ; Fri, 10 Oct 2003 18:14:38 -0300 (ADT) Received: by yertle.kcilink.com (Postfix, from userid 100) id 33F422178C; Fri, 10 Oct 2003 17:14:25 -0400 (EDT) From: Vivek Khera MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16263.8497.95525.673249@yertle.int.kciLink.com> Date: Fri, 10 Oct 2003 17:14:25 -0400 To: Josh Berkus Cc: pgsql-performance@postgresql.org Subject: Re: go for a script! / ex: PostgreSQL vs. MySQL In-Reply-To: <200310101339.48392.josh@agliodbs.com> References: <007901c38f2b$0b585590$2802a8c0@webbased10> <3F86F5BB.90605@chuckie.co.uk> <200310101339.48392.josh@agliodbs.com> X-Mailer: VM 7.14 under 21.4 (patch 12) "Portable Code" XEmacs Lucid X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/370 X-Sequence-Number: 4118 >>>>> "JB" == Josh Berkus writes: JB> Vivek, NB> shared_buffers = 1/16th of total memory NB> effective_cache_size = 80% of the supposed kernel cache. >> >> Please take into account the blocksize compiled into PG, too... JB> We can;t change the blocksize in a script that only does the .conf JB> file. Or are you suggesting something else? when you compute optimal shared buffers and effective cache size, these are in terms of blocksize. so if I have 16k block size, you can't compute based on default 8k blocksize. at worst, it would have to be a parameter you pass to the tuning script.