Skip site navigation (1) Skip section navigation (2)

Re: pgsql-server/ /configure /configure.in rc/incl ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sean Chittenden <sean(at)chittenden(dot)org>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>,pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...
Date: 2003-03-06 15:25:36
Message-ID: 15071.1046964336@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-performance
Sean Chittenden <sean(at)chittenden(dot)org> writes:
> I've toyed with the idea of adding this because it is monstrously more
> efficient than select()/poll() in basically every way, shape, and
> form.

From what I've looked at, kqueue only wins when you are watching a large
number of file descriptors at the same time; which is an operation done
nowhere in Postgres.  I think the above would be a complete waste of
effort.

> Is this one of the areas of
> PostgreSQL that just needs to get slowly migrated to use mmap() or are
> there any gaping reasons why to not use the family of system calls?

There has been much speculation on this, and no proof that it actually
buys us anything to justify the portability hit.  There would be some
nontrivial problems to solve, such as the mechanics of accessing a
large number of files from a large number of backends without running
out of virtual memory.  Also, is it guaranteed that multiple backends
mmap'ing the same block will access the very same physical buffer, and
not multiple copies?  Multiple copies would be fatal.  See the acrhives
for more discussion.

			regards, tom lane

In response to

Responses

pgsql-performance by date

Next:From: Oliver ElphickDate: 2003-03-06 16:01:24
Subject: Re: How to notice column changes in trigger
Previous:From: Andreas PflugDate: 2003-03-06 15:00:58
Subject: How to notice column changes in trigger

pgsql-committers by date

Next:From: Bruce Momjian - CVSDate: 2003-03-06 18:05:01
Subject: pgsql-server/doc TODO
Previous:From: Sean ChittendenDate: 2003-03-06 09:41:17
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group