Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E9EE063285F for ; Fri, 12 Feb 2010 16:11:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15641-02 for ; Fri, 12 Feb 2010 20:11:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 842586326D5 for ; Fri, 12 Feb 2010 16:11:10 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 3939134803D; Fri, 12 Feb 2010 12:11:09 -0800 (PST) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id edftYbGihhw4; Fri, 12 Feb 2010 12:11:09 -0800 (PST) Received: from perhan.alvh.no-ip.org (190-95-31-230.bk17-dsl.surnet.cl [190.95.31.230]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id C8B47348034; Fri, 12 Feb 2010 12:11:08 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D05C46E557; Fri, 12 Feb 2010 17:11:06 -0300 (CLST) Date: Fri, 12 Feb 2010 17:11:06 -0300 From: Alvaro Herrera To: Kevin Grittner Cc: aidan@highrise.ca, jesper@krogh.cc, hannu@krosing.net, pgsql-performance@postgresql.org Subject: Re: moving pg_xlog -- yeah, it's worth it! Message-ID: <20100212201106.GH3737@alvh.no-ip.org> References: <4B750193020000250002F22D@gw.wicourts.gov> <20100212140348.GA3737@alvh.no-ip.org> <20100212141036.GB3737@alvh.no-ip.org> <4B75162E020000250002F235@gw.wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B75162E020000250002F235@gw.wicourts.gov> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/213 X-Sequence-Number: 37634 Kevin Grittner wrote: > Alvaro Herrera wrote: > > Actually, a transaction that performed no writes doesn't get a > > commit WAL record written, so it shouldn't make any difference at > > all. > > Well, concurrent to the web application is the replication. Would > asynchronous commit of that potentially alter the pattern of writes > such that it had less impact on the reads? Well, certainly async commit would completely change the pattern of writes: it would give the controller an opportunity to reorder them according to some scheduler. Otherwise they are strictly serialized. > I'm thinking, again, of > why the placement of the pg_xlog on a separate file system made such > a dramatic difference to the read-only response time -- might it > make less difference if the replication was using asynchronous > commit? Yeah, I think it would have been less notorious, but this is all theoretical. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.