Re: PostgreSQL disk fragmentation causes performance problems on Windows - Mailing list pgsql-performance

From Josh Berkus
Subject Re: PostgreSQL disk fragmentation causes performance problems on Windows
Date
Msg-id 555E29F0.5030907@agliodbs.com
Whole thread Raw
In response to PostgreSQL disk fragmentation causes performance problems on Windows  (Jan Gunnar Dyrset <jan.g.dyrset@cybernetica.no>)
Responses Re: PostgreSQL disk fragmentation causes performance problems on Windows  (Andres Freund <andres@anarazel.de>)
List pgsql-performance
On 04/23/2015 12:47 PM, Jan Gunnar Dyrset wrote:
> I think that preallocating lumps of a given, configurable size, say 4
> MB, for the tables would remove this problem. The max number of
> fragments on a 1 GB file would then be  250, which is no problem. Is
> this possible to configure in PostgreSQL? If not, how difficult is it to
> implement in the database?

It is not currently possible to configure.

This has been talked about as a feature, but would require major work on
PostgreSQL to make it possible.  You'd be looking at several months of
effort by a really good hacker, and then a whole bunch of performance
testing.  If you have the budget for this, then please let's talk about
it because right now nobody is working on it.

Note that this could be a dead end; it's possible that preallocating
large extents could cause worse problems than the current fragmentation
issues.

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


pgsql-performance by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Fastest way / best practice to calculate "next birthdays"
Next
From: Andres Freund
Date:
Subject: Re: PostgreSQL disk fragmentation causes performance problems on Windows