X-Original-To: pgsql-committers@postgresql.org Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by postgresql.org (Postfix) with ESMTP id D4082475E82 for ; Tue, 11 Mar 2003 00:30:54 -0500 (EST) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id A7BA42105B; Mon, 10 Mar 2003 21:30:33 -0800 (PST) Date: Mon, 10 Mar 2003 21:30:33 -0800 From: Sean Chittenden To: Tom Lane Cc: Neil Conway , Christopher Kings-Lynne , "Marc G. Fournier" , pgsql-committers@postgresql.org Subject: Re: pgsql-server/ /configure /configure.in rc/incl ... Message-ID: <20030311053033.GH79234@perrin.int.nxad.com> References: <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> <018201c2e785$2c12c750$6500a8c0@fhp.internal> <1047357755.357.1.camel@tokyo> <20030311045610.GF79234@perrin.int.nxad.com> <2773.1047359174@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2773.1047359174@sss.pgh.pa.us> User-Agent: Mutt/1.4i X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ X-Archive-Number: 200303/63 X-Sequence-Number: 9306 > > That said, what was the performance gain of moving from select() > > to poll()? It wasn't the biggest optimization in PostgreSQL > > history, nor the smallest, but it was a step forward. -sc > > That change was not sold as a performance improvement; I doubt that > it is one. It was sold as not failing when libpq runs inside an > application that has thousands of open files (i.e., more than > select() can cope with). "Faster" is debatable, "fails" is not... Well, I've only heard through 2nd hand sources (dillion) the kind of hellish conditions that Mark has on his boxen, but "faster and more efficient in the kernel" is "faster and more efficient in the kernel" no matter how 'ya slice it and I know that every last bit helps a loaded system. I'm not stating that most people, or even 90% of people, will notice. Hopefully 100% of the universe runs their boxen under ideal conditions (like most databases should, right? ::wink wink, nudge nudge:: For those that don't, however, and get to watch things run in the red with a load average over 20, the use of kqueue or more efficient system calls is likely very appreciated. -sc -- Sean Chittenden