Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 0E1E29FB65F for ; Thu, 26 Apr 2007 13:47:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 11868-02 for ; Thu, 26 Apr 2007 13:47:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from oxford.xeocode.com (unknown [62.232.55.118]) by postgresql.org (Postfix) with ESMTP id D36E89FB5C7 for ; Thu, 26 Apr 2007 13:47:40 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.63) (envelope-from ) id 1Hh77y-00017W-5h; Thu, 26 Apr 2007 17:47:30 +0100 From: Gregory Stark To: "Craig A. James" Cc: "Bill Moran" , "Heikki Linnakangas" , "Postgresql list Performance" Subject: Re: Filesystem fragmentation (Re: Fragmentation of WAL files) In-Reply-To: <4630D4B6.9040802@modgraph-usa.com> (Craig A. James's message of "Thu, 26 Apr 2007 09:35:02 -0700") Organization: EnterpriseDB References: <3BD44C5D-E402-43EB-8FFD-1A4BC97AFD0C@decibel.org> <20070426080050.522ef7b5.wmoran@collaborativefusion.com> <463096AD.4020707@enterprisedb.com> <20070426091432.274977fe.wmoran@collaborativefusion.com> <4630D4B6.9040802@modgraph-usa.com> X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 42) Date: Thu, 26 Apr 2007 17:47:29 +0100 Message-ID: <87wszz6q1q.fsf@oxford.xeocode.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/431 X-Sequence-Number: 24308 "Craig A. James" writes: > More specifically, this problem was solved on UNIX file systems way back in the > 1970's and 1980's. No UNIX file system (including Linux) since then has had > significant fragmentation problems, unless the file system gets close to 100% > full. If you run below 90% full, fragmentation shouldn't ever be a significant > performance problem. Note that the main technique used to avoid fragmentation -- paradoxically -- is to break the file up into reasonable sized chunks. This allows the filesystem the flexibility to place the chunks efficiently. In the case of a performance-critical file like the WAL that's always read sequentially it may be to our advantage to defeat this technique and force it to be allocated sequentially. I'm not sure whether any filesystems provide any option to do so. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com