X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8EC8CD9D19 for ; Thu, 6 Oct 2005 09:56:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04134-02 for ; Thu, 6 Oct 2005 12:56:26 +0000 (GMT) Received: from mailhost.intellivid.com (mailhost.intellivid.com [64.32.200.11]) by svr1.postgresql.org (Postfix) with ESMTP id 97E2FD6E83 for ; Thu, 6 Oct 2005 09:56:27 -0300 (ADT) Received: from [192.168.2.68] (spectre.intellivid.com [192.168.2.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by newmail.intellivid.com (Postfix) with ESMTP id 3AC1BF18107; Thu, 6 Oct 2005 08:56:31 -0400 (EDT) Subject: Re: wal_buffers From: Ian Westmacott To: "Thomas F. O'Connell" Cc: pgsql-performance@postgresql.org In-Reply-To: References: <1128518624.15795.28.camel@spectre.intellivid.com> Content-Type: text/plain Organization: Intellivid Corp. Message-Id: <1128603390.18319.16.camel@spectre.intellivid.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 06 Oct 2005 08:56:31 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/123 X-Sequence-Number: 14891 On Thu, 2005-10-06 at 02:39, Thomas F. O'Connell wrote: > The WAL Configuration chapter (25.2) has a pretty good discussion of > how wal_buffers is used: > > http://www.postgresql.org/docs/8.0/static/wal-configuration.html > > You might also take a look at Josh Berkus' recent testing on this > setting: > > http://www.powerpostgresql.com/ Thanks; I'd seen the documentation, but not Josh Berkus' testing. For my part, I don't have a large number of concurrent connections, only one. But it is doing large writes, and XLogInsert is number 2 on the profile (with LWLockAcquire and LWLockRelease close behind). I suppose that is expected, but lead by the documentation I wanted to make sure XLogInsert always had some buffer space to play with. --Ian