Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A5FE8B60F78 for ; Tue, 31 May 2011 10:57:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 69514-01 for ; Tue, 31 May 2011 13:57:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) by mail.postgresql.org (Postfix) with ESMTP id 9AE43B5F7CC for ; Tue, 31 May 2011 10:57:43 -0300 (ADT) Received: by qyg14 with SMTP id 14so2412104qyg.19 for ; Tue, 31 May 2011 06:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Rh6WQFj36xfpM/7tiYsf/MDZG9vCI4J+GhGf4WxB8YU=; b=IS3ggjP+ltv/c01hRmWZwgt8THpn6CAz8iwskb4NSmk/nZe3FOZcn0QwURYss/LmEK jki1Ue4MI36ba/EuFZ41YOMsgdEGimJwBRCu0o5BuiRabcbhkyysadgmcENbDi1IScND 3q6JILxU74LtgCbl3zhTgk0c2dr0LWINEr1G4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TgiM6PTdTCK21yz783UBtdZSGlVHQBt6R6vmOUtRtN4xfJL3fsWIZ6AwPGg1zG6eCf kPjdxOqmxFAIKqVS+hLau9S2o+tIedq+WGEwoLSkpRDHE7ZqWRaXqvurB5iW4kN7EjXw pwrsQpZImetSirQsJFTclcz95ln0oA2cWw6tc= MIME-Version: 1.0 Received: by 10.224.140.146 with SMTP id i18mr4335791qau.33.1306850263623; Tue, 31 May 2011 06:57:43 -0700 (PDT) Received: by 10.224.54.147 with HTTP; Tue, 31 May 2011 06:57:43 -0700 (PDT) In-Reply-To: <1306541941.32559.119.camel@jdavis-ux.asterdata.local> References: <1306541941.32559.119.camel@jdavis-ux.asterdata.local> Date: Tue, 31 May 2011 08:57:43 -0500 Message-ID: Subject: Re: The shared buffers challenge From: Merlin Moncure To: Jeff Davis Cc: postgres performance list Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/415 X-Sequence-Number: 43924 On Fri, May 27, 2011 at 7:19 PM, Jeff Davis wrote: > On Thu, 2011-05-26 at 09:31 -0500, Merlin Moncure wrote: >> Where they are most helpful is for masking of i/o if >> a page gets dirtied >1 times before it's written out to the heap > > Another possible benefit of higher shared_buffers is that it may reduce > WAL flushes. A page cannot be evicted from shared_buffers until the WAL > has been flushed up to the page's LSN ("WAL before data"); so if there > is memory pressure to evict dirty buffers, it may cause extra WAL > flushes. > > I'm not sure what the practical effects of this are, however, but it > might be an interesting thing to test. Hm, I bet it could make a fairly big difference if wal data is not on a separate volume. merlin