X-Original-To: pgsql-committers@postgresql.org Received: from hub.org (unknown [64.117.224.146]) by postgresql.org (Postfix) with ESMTP id 4421C475FC6 for ; Mon, 10 Mar 2003 21:51:04 -0500 (EST) Received: from [64.117.224.146] (unknown [64.117.224.146]) by hub.org (Postfix) with ESMTP id 23FD5103ADAD; Mon, 10 Mar 2003 22:51:02 -0400 (AST) Date: Mon, 10 Mar 2003 22:50:59 -0400 (AST) From: "Marc G. Fournier" To: Sean Chittenden Cc: Tom Lane , Christopher Kings-Lynne , pgsql-committers@postgresql.org Subject: Re: pgsql-server/ /configure /configure.in rc/incl ... In-Reply-To: <20030306094117.GA79234@perrin.int.nxad.com> Message-ID: <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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200303/57 X-Sequence-Number: 9300 yOn Thu, 6 Mar 2003, Sean Chittenden wrote: > > >>> Has anyone ever thought about adding kqueue (for *BSD) support to > > >>> Postgres, instead of using select? > > >> > > >> Why? poll() is standard. kqueue isn't, AFAIK. > > > > > It's supposed be a whole heap faster - there is no polling involved... > > > > Supposed by whom? Faster than what? And how would it not poll? > > > > The way libpq uses this call, it's either probing for current status > > (timeout=0) or it's willing to block, possibly indefinitely, until the > > desired condition arises. It does not sit there in a busy-wait loop. > > I can't see any reason to think that an OS-specific API would give > > any marked difference in performance. > > 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?