X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9A0CF9DCD50 for ; Tue, 6 Dec 2005 21:31:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55390-08 for ; Tue, 6 Dec 2005 21:31:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by postgresql.org (Postfix) with ESMTP id 3B31B9DCC07 for ; Tue, 6 Dec 2005 21:31:01 -0400 (AST) Received: from osgiliath.mathom.us ([70.108.82.27]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IR300EXITJTC9H5@vms044.mailsrvcs.net> for pgsql-performance@postgresql.org; Tue, 06 Dec 2005 19:31:05 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 425BE60263D; Tue, 06 Dec 2005 20:31:07 -0500 (EST) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12512-02-3; Tue, 06 Dec 2005 20:31:07 -0500 (EST) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 2871A60017F; Tue, 06 Dec 2005 20:31:07 -0500 (EST) Date: Tue, 06 Dec 2005 20:31:07 -0500 From: Michael Stone Subject: Re: LVM and Postgres In-reply-to: <33c6269f0512061652u73a690t8af8a276118b1a83@mail.gmail.com> To: Alex Turner Cc: pgsql-performance@postgresql.org Mail-followup-to: Alex Turner , pgsql-performance@postgresql.org Message-id: <20051207013107.GP7330@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us References: <20051206093818.GE6708@campbell-lange.net> <20051206213623.GD14427@campbell-lange.net> <20051207002537.GN7330@mathom.us> <33c6269f0512061652u73a690t8af8a276118b1a83@mail.gmail.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/210 X-Sequence-Number: 16031 On Tue, Dec 06, 2005 at 07:52:25PM -0500, Alex Turner wrote: >I would argue that almost certainly won't by doing that as you will >create a new place even further away for the disk head to seek to >instead of just another file on the same FS that is probably closer to >the current head position. I would argue that you should benchmark it instead of speculating. You are perhaps underestimating the effect of the xfs log. (Ordinarily xfs has great performance, but it seems to be fairly lousy at fsync/osync/etc operations in my benchmarks; my wild speculation is that the sync forces a log flush.) At any rate you're going to have a lot of head movement on any reasonably sized filesystem anyway, and I'm not convinced that hoping that your data will happen to land close to your log is a valid, repeatable optimization technique. Note that the WAL will wander around the disk as files are created and deleted, whereas tables are basically updated in place. Mike Stone