From owner-freebsd-hackers Fri Apr 20 5:19: 4 2001 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 753) id 58CFA37B423; Fri, 20 Apr 2001 05:19:01 -0700 (PDT) Date: Fri, 20 Apr 2001 05:19:01 -0700 From: Adrian Chadd To: Alfred Perlstein Cc: hackers@FreeBSD.ORG Subject: Re: thttpd hack for sendfile and accept filters. Message-ID: <20010420051901.A66232@hub.freebsd.org> References: <20010420024700.E1790@fw.wintelcom.net> <20010420044402.L1790@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: <20010420044402.L1790@fw.wintelcom.net>; from bright@wintelcom.net on Fri, Apr 20, 2001 at 04:44:02AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Apr 20, 2001, Alfred Perlstein wrote: > * 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. A small async disk IO kit would be useful. the aio_ routines don't do async open, close, lseek. They could be implemented using threads, but since our threads aren't diskio-friendly.. :-) (squid gets around this by implementing something using sysv shm/msg.. its simple enough. You might wanna look into nabbing this. I can give you a hand if you'd like.) > .) kqueue. Ahahah. > So anyone working on this sort of stuff? Me. :-) Adrian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message