Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id C43009FC08A for ; Fri, 27 Apr 2007 04:39:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 87774-06 for ; Fri, 27 Apr 2007 04:39:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mx01.bfk.de (mx01.bfk.de [193.227.124.2]) by postgresql.org (Postfix) with ESMTP id 062A09FB9B1 for ; Fri, 27 Apr 2007 04:39:40 -0300 (ADT) Received: from mx00.int.bfk.de ([10.119.110.2]) by mx01.bfk.de with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) id 1HhL3H-00089S-Vy; Fri, 27 Apr 2007 09:39:36 +0200 Received: from fweimer by bfk.de with local id 1HhL3A-00019v-AF; Fri, 27 Apr 2007 09:39:28 +0200 To: Bill Moran Cc: Heikki Linnakangas , Jim Nasby , Postgresql list Performance Subject: Re: Filesystem fragmentation (Re: Fragmentation of WAL files) References: <3BD44C5D-E402-43EB-8FFD-1A4BC97AFD0C@decibel.org> <20070426080050.522ef7b5.wmoran@collaborativefusion.com> <463096AD.4020707@enterprisedb.com> <20070426091432.274977fe.wmoran@collaborativefusion.com> From: Florian Weimer Date: Fri, 27 Apr 2007 09:39:28 +0200 In-Reply-To: <20070426091432.274977fe.wmoran@collaborativefusion.com> (Bill Moran's message of "Thu, 26 Apr 2007 09:14:32 -0400") Message-ID: <82d51q9sgf.fsf@mid.bfk.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/458 X-Sequence-Number: 24335 * Bill Moran: > To clarify my viewpoint: > To my knowledge, there is no Unix filesystem that _suffers_ from > fragmentation. Specifically, all filessytems have some degree of > fragmentation that occurs, but every Unix filesystem that I am aware of > has built-in mechanisms to mitigate this and prevent it from becoming > a performance issue. One database engine tends to create a huge number of fragments because the files are written with holes in them. There is a significant impact on sequential reads, but that doesn't matter much because the engine doesn't implement fast, out-of-order B-tree scans anyway. 8-/ I still think that preallocating in reasonably sized chunks is beneficial. --=20 Florian Weimer BFK edv-consulting GmbH http://www.bfk.de/ Kriegsstra=DFe 100 tel: +49-721-96201-1 D-76133 Karlsruhe fax: +49-721-96201-99