pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Chittenden <sean@chittenden.org>
To: Marc G. Fournier <scrappy@hub.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...
Date: Mon, 10 Mar 2003 20:11:33 -0800
Message-ID: <20030311041133.GC79234@perrin.int.nxad.com> (raw)
In-Reply-To: <20030310224706.T35660@hub.org>
References: <20030306031656.1876F4762E0@postgresql.org>
	<032f01c2e390$b1842b20$6500a8c0@fhp.internal>
	<11077.1046921667@sss.pgh.pa.us>
	<033f01c2e392$71476570$6500a8c0@fhp.internal>
	<12228.1046922471@sss.pgh.pa.us>
	<20030306094117.GA79234@perrin.int.nxad.com>
	<20030310224706.T35660@hub.org>

> > Heh, kqueue is _the_ reason to use FreeBSD.
> >
> > http://www.kegel.com/dkftpbench/Poller_bench.html#results
> >
> > 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.
> 
> I would personally be interested in seeing patches ... what would be
> involved?

Whoa!  Surprisingly, much less than I expected!!!  A small shim would
have to be put in place to abstract away returning valid file
descriptors that are ready to be read()/write().  What's really cool,
is there are only a handful of places that'd have to be updated (as
far as I can tell):

src/backend/access/transam/xact.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/storage/lmgr/s_lock.c
src/bin/pg_dump/pg_dump.c
src/interfaces/libpq/fe-misc.c

Then it'd be possible to have clients/servers switch between kqueue,
poll, select, or whatever the new flavor of alerting from available IO
fd's.  I've added it to my personal TODO list of things to work on.
If someone beats me to it, cool, it's just something that one day I'll
get to (hopefully).  -sc

-- 
Sean Chittenden



view thread (22+ messages)  latest in thread

Message-ID: <20030311041133.GC79234@perrin.int.nxad.com>
Permalink:  ../20030311041133.GC79234@perrin.int.nxad.com/
Also on:    postgresql.org/message-id/20030311041133.GC79234@perrin.int.nxad.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: sean@chittenden.org, scrappy@hub.org, tgl@sss.pgh.pa.us, chriskl@familyhealth.com.au, pgsql-committers@postgresql.org
  Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...
  In-Reply-To: <20030311041133.GC79234@perrin.int.nxad.com>
  References: <20030306031656.1876F4762E0@postgresql.org> <032f01c2e390$b1842b20$6500a8c0@fhp.internal> <11077.1046921667@sss.pgh.pa.us> <033f01c2e392$71476570$6500a8c0@fhp.internal> <12228.1046922471@sss.pgh.pa.us> <20030306094117.GA79234@perrin.int.nxad.com> <20030310224706.T35660@hub.org> <20030311041133.GC79234@perrin.int.nxad.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox