Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 940B22E0038 for ; Fri, 6 Jun 2008 16:23:12 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83346-07 for ; Fri, 6 Jun 2008 16:23:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from westnet.com (westnet.com [216.187.52.2]) by developer.postgresql.org (Postfix) with ESMTP id E375F2E0035 for ; Fri, 6 Jun 2008 16:23:08 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id m56JMxcu019167; Fri, 6 Jun 2008 15:22:59 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id m56JMwkV019161; Fri, 6 Jun 2008 15:22:58 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Fri, 6 Jun 2008 15:22:58 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: Peter Eisentraut cc: pgsql-hackers@postgresql.org, Josh Berkus Subject: Re: Overhauling GUCS In-Reply-To: <200806061435.01196.peter_e@gmx.net> Message-ID: References: <48409D1E.3070208@agliodbs.com> <29525.1212613052@sss.pgh.pa.us> <200806061435.01196.peter_e@gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/312 X-Sequence-Number: 119425 On Fri, 6 Jun 2008, Peter Eisentraut wrote: > - What settings do "newbies" (or anyone else) typically need to change? > Please post a list. > - What values would you set those settings to? Please provide a description > for arriving at a value, which can later be transformed into code. Note that > in some cases, not even the documentation provides more than handwaving help. Josh's spreadsheet at http://pgfoundry.org/docman/view.php/1000106/84/calcfactors.sxc provides five different models for setting the most critical parameters based on different types of workloads. Everyone can quibble over the fine tuning, but having a good starter set of reasonable settings for these parameters is a solved problem. It's just painful to build a tool to apply the available expert knowledge that is already around. > - If we know better values, why don't we set them by default? Because there's not enough information available; the large differences between how you tune for different workloads is one example. Another is that people tune for peak and projected activity rather than just what's happening right now. Every model suggested for a tuning wizard recognizes you need to ask some set of questions to nail things down. I continue to repeat in broken-record style, exactly what a tuning tool will ask about and what settings it will suggest is not important, and getting into that is an entirely different discussion (one that gets hashed out every single day on pgsql-performance). The fact that writing such a tool is harder than it should be is the issue here. > Another orthogonal stumbling block on the way to making all of this > automatic is that the surely criticial shared_buffers setting will in > any useful configuration require messing around with kernel settings > that no PostgreSQL tool can really help with. Yes. So? All you can do is point this out to users. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD