From owner-freebsd-stable Thu Jul 27 17:30:45 2000 Delivered-To: freebsd-stable@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 6C29B37C178; Thu, 27 Jul 2000 17:30:39 -0700 (PDT) (envelope-from fanf@hand.dotat.at) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13Hy1R-0000jK-00; Fri, 28 Jul 2000 00:29:05 +0000 Date: Fri, 28 Jul 2000 00:29:05 +0000 From: Tony Finch To: Andrew Reilly Cc: Kris Kennaway , ym g , freebsd-stable@FreeBSD.ORG Subject: Re: Which applications are using kqueue ? Message-ID: <20000728002905.D426@hand.dotat.at> References: <20000727143650.29162.qmail@graffiti.net> <20000728092433.A12228@gurney.reilly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000728092433.A12228@gurney.reilly.home> Organization: Covalent Technologies, Inc Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrew Reilly wrote: >On Thu, Jul 27, 2000 at 03:24:27PM -0700, Kris Kennaway wrote: >> On Thu, 27 Jul 2000, ym g wrote: >> > Are there plans for any apps like thin/fast [maybe in kernel] >> > webserver which uses kqueue >> >> I've been tinkering with kq'ing thttpd - in fact I have it working (which >> was trivial), although it's not optimized yet so I don't expect major >> performance changes - thttpd is still querying each FD individually for >> status, instead of just using the next ones kq tells it about. I just need >> to figure out how to benchmark it effectively - httperf is running into >> client limitations so far. > >The boa HTTP server might be as good a place to start too: it >doesn't fork either (except to run CGI scripts). Actually, thttpd >sounds pretty similar. I hadn't looked at it before. Have you >compared them at all? There's a slightly elderly comparison of various web servers hanging off the thttpd web site: http://www.acme.com/software/thttpd/benchmarks.html It doesn't go up to a very high concurrency which is where the kqueue stuff will really win. I've been meaning to start looking at altering Flash to use kqueue. Flash is much better at handling large data sets (bigger than the amount of RAM) than other select()-based web servers because it has a load of hacks to avoid blocking on disk (lots of stat() cacheing and a combination of mmap and mincore). It was originally derived from thttpd, but unfortunately Flash doesn't have such a free license :-( Tony. -- f.a.n.finch fanf@covalent.net dot@dotat.at 481 therapeutic body-temp sump dunk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message