Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9165B632896 for ; Wed, 16 Jun 2010 16:43:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 21473-03 for ; Wed, 16 Jun 2010 19:43:40 +0000 (UTC) X-Greylist: delayed 00:07:00.438627 by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id BE600632E57 for ; Wed, 16 Jun 2010 16:43:39 -0300 (ADT) Received: by pva4 with SMTP id 4so831081pva.19 for ; Wed, 16 Jun 2010 12:43:37 -0700 (PDT) Received: by 10.142.247.24 with SMTP id u24mr6781786wfh.313.1276716995463; Wed, 16 Jun 2010 12:36:35 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local ([70.167.124.126]) by mx.google.com with ESMTPS id x35sm3603229wfh.6.2010.06.16.12.36.33 (version=SSLv3 cipher=RC4-MD5); Wed, 16 Jun 2010 12:36:34 -0700 (PDT) Message-ID: <4C1927BF.9030708@emolecules.com> Date: Wed, 16 Jun 2010 12:36:31 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Josh Berkus CC: pgsql-performance@postgresql.org Subject: Re: PostgreSQL as a local in-memory cache References: <87bpbcpabg.fsf@cbbrowne-laptop.afilias-int.info> <4C17A417.2040600@noao.edu> <87ocfcnqmk.fsf@cbbrowne-laptop.afilias-int.info> <4C180A3B.7090905@agliodbs.com> <4634b12c-749f-4605-9d95-121b8e2bd9e4@k17g2000pro.googlegroups.com> <4C191F46.4060408@agliodbs.com> In-Reply-To: <4C191F46.4060408@agliodbs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/296 X-Sequence-Number: 39152 On 6/16/10 12:00 PM, Josh Berkus wrote: > >> * fsync=off => 5,100 >> * fsync=off and synchronous_commit=off => 5,500 > > Now, this *is* interesting ... why should synch_commit make a difference > if fsync is off? > > Anyone have any ideas? I found that pgbench has "noise" of about 20% (I posted about this a couple days ago using data from 1000 identical pgbench runs). Unless you make a bunch of runs and average them, a difference of 5,100 to 5,500 appears to be meaningless. Craig > >> tmpfs, WAL on same tmpfs: >> * Default config: 5,200 >> * full_page_writes=off => 5,200 >> * fsync=off => 5,250 >> * synchronous_commit=off => 5,200 >> * fsync=off and synchronous_commit=off => 5,450 >> * fsync=off and full_page_writes=off => 5,250 >> * fsync=off, synchronous_commit=off and full_page_writes=off => 5,500 > > So, in this test, it seems like having WAL on tmpfs doesn't make a > significant difference for everything == off. > > I'll try running some tests on Amazon when I have a chance. It would be > worthwhile to get figures without Python's "ceiling". >