From owner-freebsd-hackers Fri Apr 20 4:44: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id B1AAD37B424 for ; Fri, 20 Apr 2001 04:44:02 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f3KBi2107670 for hackers@FreeBSD.ORG; Fri, 20 Apr 2001 04:44:02 -0700 (PDT) Date: Fri, 20 Apr 2001 04:44:02 -0700 From: Alfred Perlstein To: hackers@FreeBSD.ORG Subject: Re: thttpd hack for sendfile and accept filters. Message-ID: <20010420044402.L1790@fw.wintelcom.net> References: <20010420024700.E1790@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010420024700.E1790@fw.wintelcom.net>; from bright@wintelcom.net on Fri, Apr 20, 2001 at 02:47:00AM -0700 X-all-your-base: are belong to us. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Alfred Perlstein [010420 02:47] wrote: > http://people.freebsd.org/~alfred/thttpd/thttpd-sendfile-acceptfilter.diff > > foo. :) First off the initial patch I put up was broken, but it now seems to work, so if you've downloaded it you might want to make sure you got the right version. Second, it looks like there's a few things in thttpd that could be optimized further. .) an access cache, it stat(2)s each file request that comes in, it could keep a short lived (one or two seconds) cache of stat() requests .) pre-forking, this would help with stalling on disk IO. .) kqueue. So anyone working on this sort of stuff? -- -Alfred Perlstein - [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message