Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9950A64FC18 for ; Mon, 22 Dec 2008 23:30:10 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90264-04 for ; Mon, 22 Dec 2008 23:30:07 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.236]) by mail.postgresql.org (Postfix) with ESMTP id 6CF2F64FD44 for ; Mon, 22 Dec 2008 23:30:07 -0400 (AST) Received: by rv-out-0506.google.com with SMTP id b25so3693088rvf.43 for ; Mon, 22 Dec 2008 19:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fgX75SEwtxTh7P33G+sJ3D9UkYGt4Bm+JAsqDpTpRvc=; b=u8JQSAX2IO6c9d3xKEF/u59NHWtt4woFS+G4BTHDCd3qlWbyRU8FspMhMvqXrv6kHs EB8YUmujniAQcort9ic48Rq5Dc1ufu1e79ykvsRysFzf1XNXjNWryvA5evtVifREM21v jjFW4ZBesKQnBtqvEN2dWV9AIEjMwtuapg8SI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=mfs3tUptVhlfHGgqdenFFQGBCIRblScN9syAfkJ/nGCxd6LFBZIg1pOFtWLtxCqwt5 Yxs8XDrKNKxh0/5rIEJQgv+sEPCB7aITYvYfK+lPxHOs9f24aS1JURGNhWkU7rEBb4gc uaZueF6WNGG1hwkunPH3BPamqf0sNAi0m/ShM= Received: by 10.141.99.2 with SMTP id b2mr2967055rvm.3.1230003005840; Mon, 22 Dec 2008 19:30:05 -0800 (PST) Received: by 10.141.87.11 with HTTP; Mon, 22 Dec 2008 19:30:05 -0800 (PST) Message-ID: <70c01d1d0812221930t6a9bdd9aw8dcfe14761a340bd@mail.gmail.com> Date: Mon, 22 Dec 2008 19:30:05 -0800 From: "Mark Wong" To: "Greg Smith" Subject: Re: dbt-2 tuning results with postgresql-8.3.5 Cc: "pgsql-performance@postgresql.org" , "Selena Deckelmann" , "Gabrielle Roth" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <70c01d1d0812201654i5f55150ep619a6c7ff094470@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=NORMAL_HTTP_TO_IP=0.001 X-Spam-Level: X-Archive-Number: 200812/197 X-Sequence-Number: 32233 On Mon, Dec 22, 2008 at 12:59 AM, Greg Smith wrote: > On Sat, 20 Dec 2008, Mark Wong wrote: > >> Here are links to how the throughput changes when increasing >> shared_buffers: http://pugs.postgresql.org/node/505 My first glance takes >> tells me that the system performance is quite erratic when increasing the >> shared_buffers. > > If you smooth that curve out a bit, you have to throw out the 22528MB figure > as meaningless--particularly since it's way too close to the cliff where > performance dives hard. The sweet spot looks to me like 11264MB to 17408MB. > I'd say 14336MB is the best performing setting that's in the middle of a > stable area. > >> And another series of tests to show how throughput changes when >> checkpoint_segments are increased: http://pugs.postgresql.org/node/503 I'm >> also not what to gather from increasing the checkpoint_segments. > > What was shared_buffers set to here? Those two settings are not completely > independent, for example at a tiny buffer size it's not as obvious there's a > win in spreading the checkpoints out more. It's actually a 3-D graph, with > shared_buffers and checkpoint_segments as two axes and the throughput as the > Z value. The shared_buffers are the default, 24MB. The database parameters are saved, probably unclearly, here's an example link: http://207.173.203.223/~markwkm/community6/dbt2/baseline.1000.1/db/param.out > Since that's quite time consuming to map out in its entirety, the way I'd > suggest navigating the territory more efficiently is to ignore the defaults > altogether. Start with a configuration that someone familiar with tuning > the database would pick for this hardware: 8192MB for shared_buffers and > 100 checkpoint segments would be a reasonable base point. Run the same > tests you did here, but with the value you're not changing set to those much > larger values rather than the database defaults, and then I think you'd end > with something more interesting. Also, I think the checkpoint_segments > values >500 are a bit much, given what level of recovery time would come > with a crash at that setting. Smaller steps from a smaller range would be > better there I think. I should probably run your pgtune script, huh? Regards, Mark