Re: Filesystem fragmentation (Re: Fragmentation of WAL files) - Mailing list pgsql-performance

From Florian Weimer
Subject Re: Filesystem fragmentation (Re: Fragmentation of WAL files)
Date
Msg-id 82d51q9sgf.fsf@mid.bfk.de
Whole thread Raw
In response to Filesystem fragmentation (Re: Fragmentation of WAL files)  (Bill Moran <wmoran@collaborativefusion.com>)
List pgsql-performance
* 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.

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

pgsql-performance by date:

Previous
From: Arjen van der Meijden
Date:
Subject: Re: index structure for 114-dimension vector
Next
From: Magnus Hagander
Date:
Subject: Re: Usage up to 50% CPU