Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 314719FC027 for ; Thu, 12 Jul 2007 12:01:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 71506-05 for ; Thu, 12 Jul 2007 12:00:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from westnet.com (westnet.com [216.187.52.2]) by postgresql.org (Postfix) with ESMTP id 556259FC009 for ; Thu, 12 Jul 2007 12:00:59 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id l6CF0s83001135 for ; Thu, 12 Jul 2007 11:00:54 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id l6CF0s4C001132 for ; Thu, 12 Jul 2007 11:00:54 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Thu, 12 Jul 2007 11:00:54 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: pgsql-performance@postgresql.org Subject: Re: PostgreSQL publishes first real benchmark In-Reply-To: <87fy3tnbnn.fsf@oxford.xeocode.com> Message-ID: References: <46925AD9.9020208@sun.com> <4694FE64.8070407@enterprisedb.com> <4695063D.9040108@sun.com> <27436.1184173639@sss.pgh.pa.us> <469522A5.1070409@sun.com> <4695EF96.3060009@kaltenbrunner.cc> <87fy3tnbnn.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/144 X-Sequence-Number: 25828 On Thu, 12 Jul 2007, Gregory Stark wrote: > In any case I wouldn't think the use case for a feature like this would > actually apply in the case of a benchmark. I've also seen a tiny setting for commit_delay (like the 10 they used) as helping improve throughput under a heavy commit load with many processors. I'm not sure why a quick yield of the processor at that point helps, but there seem to be cases where it does. Don't think it has anything to do with the originally intended use for this parameter, probably some sort of OS scheduler quirk. > The use case where something like this is needed is where there are not > enough concurrent requests to keep the server busy during the fsync of > the wal. I've actually finished an long investigation of this recently that will be on my web page soon. On a non-caching controller where you'd think there's the most benefit here, I was only able to get about 10% more commits at low client loads by setting the delay to about 1/2 of the fsync time, and a few percent more at high loads by setting a delay longer than the fsync time. It's really a slippery setting though--very easy to set in a way that will degrade performance significantly if you're not very systematic about testing it many times at various client counts. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD