Re: PostgreSQL disk fragmentation causes performance problems on Windows

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Jan Gunnar Dyrset <jan(dot)g(dot)dyrset(at)cybernetica(dot)no>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: PostgreSQL disk fragmentation causes performance problems on Windows
Date: 2015-05-21 18:54:40
Message-ID: 555E29F0.5030907@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andres Freund 2015-05-21 20:39:13 Re: PostgreSQL disk fragmentation causes performance problems on Windows
Previous Message David G. Johnston 2015-05-21 16:50:04 Re: Fastest way / best practice to calculate "next birthdays"