Re: [PERFORM] A Better External Sort?

From: Gregory Maxwell <gmaxwell(at)gmail(dot)com>
To: Ron Peacetree <rjpeace(at)earthlink(dot)net>
Cc: josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] A Better External Sort?
Date: 2005-10-01 01:44:26
Message-ID: e692861c0509301844w51280e3axbf8ba0a276f27856@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On 9/30/05, Ron Peacetree <rjpeace(at)earthlink(dot)net> wrote:
> 4= I'm sure we are paying all sorts of nasty overhead for essentially
> emulating the pg "filesystem" inside another filesystem. That means
> ~2x as much overhead to access a particular piece of data.
>
> The simplest solution is for us to implement a new VFS compatible
> filesystem tuned to exactly our needs: pgfs.
>
> We may be able to avoid that by some amount of hacking or
> modifying of the current FSs we use, but I suspect it would be more
> work for less ROI.

On this point, Reiser4 fs already implements a number of things which
would be desirable for PostgreSQL. For example: write()s to reiser4
filesystems are atomic, so there is no risk of torn pages (this is
enabled because reiser4 uses WAFL like logging where data is not
overwritten but rather relocated). The filesystem is modular and
extensible so it should be easy to add whatever additional semantics
are needed. I would imagine that all that would be needed is some
more atomicity operations (single writes are already atomic, but I'm
sure it would be useful to batch many writes into a transaction),some
layout and packing controls, and some flush controls. A step further
would perhaps integrate multiversioning directly into the FS (the
wandering logging system provides the write side of multiversioning, a
little read side work would be required.). More importantly: the file
system was intended to be extensible for this sort of application.

It might make a good 'summer of code' project for someone next year,
... presumably by then reiser4 will have made it into the mainline
kernel by then. :)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Maxwell 2005-10-01 02:07:16 Re: [PERFORM] A Better External Sort?
Previous Message David Fetter 2005-10-01 01:24:17 Re: On Logging

Browse pgsql-performance by date

  From Date Subject
Next Message Gregory Maxwell 2005-10-01 02:07:16 Re: [PERFORM] A Better External Sort?
Previous Message Dann Corbit 2005-09-30 23:52:42 Re: [PERFORM] A Better External Sort?