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 BEFBBD1B4F6 for ; Fri, 10 Oct 2003 20:41:14 +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 01863-08 for ; Fri, 10 Oct 2003 17:40:29 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 4136DD1B4F0 for ; Fri, 10 Oct 2003 17:40:27 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3750938; Fri, 10 Oct 2003 13:41:03 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Nick Barr Subject: Re: go for a script! / ex: PostgreSQL vs. MySQL Date: Fri, 10 Oct 2003 13:38:18 -0700 User-Agent: KMail/1.4.3 Cc: pgsql-performance@postgresql.org References: <007901c38f2b$0b585590$2802a8c0@webbased10> <200310101034.52073.josh@agliodbs.com> <3F86F5BB.90605@chuckie.co.uk> In-Reply-To: <3F86F5BB.90605@chuckie.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310101338.18167.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/364 X-Sequence-Number: 4112 Nick, > Sounds good to me. I will carry on working on it but I would definitely > need some help, or at least a list of parameters to tweak, and some > recomended values based on data about the puter in question. > shared_buffers = 1/16th of total memory > effective_cache_size = 80% of the supposed kernel cache. But only if it's a dedicated DB machine. If it's not, all memory values should be cut in half. > I guess we also may be able to offer a simple and advanced mode. Simple > mode would work on these recomended values, but kick it into advanced > mode and the user can tweak things more finely. This would only be > recomended for the Guru's out there of course. This may take a bit more > time to do though. What I would prefer would be an interactive script which would, by asking the user simple questions and system scanning, collect all the information necessary to set: max_connections shared_buffers sort_mem vacuum_mem effective_cache_size random_page_cost max_fsm_pages checkpoint_segments & checkpoint_timeout tcp_ip and on the OS, it should set: shmmax & shmmall and should offer to create a chron job which does appropriate frequency VACUUM ANALYZE. > As I said in the previous email I have only got access to Linux, so > cross-platform help would be good too. I will try to make it as easy to > do cross platform stuff as possible of course. Let's get it working on Linux; then we can rely on the community to port it to other platforms. I myself can work on the ports to Solaris and OS X. -- Josh Berkus Aglio Database Solutions San Francisco