From owner-freebsd-hackers Tue Feb 19 1:15:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.infowest.com (ns1.infowest.com [204.17.177.10]) by hub.freebsd.org (Postfix) with ESMTP id 2CA7437B400 for ; Tue, 19 Feb 2002 01:15:47 -0800 (PST) Received: from there (208.186.107.222.dsl.infowest.net [208.186.107.222]) by ns1.infowest.com (Postfix) with SMTP id 26578219D4; Tue, 19 Feb 2002 02:15:46 -0700 (MST) Content-Type: text/plain; charset="iso-8859-1" From: Samuel J.Greear Organization: GetMegabits, Inc. To: Peter Wemm , Mike Silbersack Subject: Re: In-Kernel HTTP Server (name preference) Date: Wed, 20 Feb 2002 02:09:12 -0700 X-Mailer: KMail [version 1.3] Cc: Hiten Pandya , freebsd-hackers@FreeBSD.ORG References: <20020219025401.C1B013A9A@overcee.wemm.org> In-Reply-To: <20020219025401.C1B013A9A@overcee.wemm.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020219091546.26578219D4@ns1.infowest.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 18 February 2002 07:54 pm, Peter Wemm wrote: > Mike Silbersack wrote: > > On Mon, 18 Feb 2002, Hiten Pandya wrote: > > > hi all, > > > > > > As to conclude this thread (for me.), I have come to the decision of > > > actually starting a project for making a BSD Licensed in-kernel HTTPd > > > server. The project will be on SourceForge.net. > > > > > > As you all know, that when starting a project, a name is needed for > > > project; I completely out of ideas, and I have literally no creative > > > skills. :) > > > > If you want to be really useful, I have a better first step for you. :) > > > > Common wisdom seems to be that Apache is slow, other httpds are faster, > > custom ones are fastest. However, I don't think I've actually seen any > > comparisons since this one of thttpd vs others: > > > > http://www.acme.com/software/thttpd/benchmarks.html > > > > Before starting work on a kernel httpd, you might wish to run similar > > benchmarks (with perhaps only 5 different httpds) to see what the current > > performance of FreeBSD is; it may turn out that some limitation in the > > TCP stack is hit even by userland httpds, and your effort would be better > > spent on fixing that first. > > The problem is that our threads implementation sucks. The moment that > thttpd has to do an actual disk read on freebsd, the whole thing comes to a > screeching halt. > > Threaded http servers do not stand up to real-world loads on freebsd, > unless there are very specially constructred scenarios in place.. ie: > everything is in ram, no FS calls ever block, etc. > > Cheers, > -Peter I don't suppose it matters much than thttpd isn't threaded. It's a non-blocking server that uses it's own abstraction layer over select/poll/kevent called fdevent. It also maintains an mmap'd cache of frequently accessed files. Sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message