Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2001 05:19:01 -0700
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: thttpd hack for sendfile and accept filters.
Message-ID:  <20010420051901.A66232@hub.freebsd.org>
In-Reply-To: <20010420044402.L1790@fw.wintelcom.net>; from bright@wintelcom.net on Fri, Apr 20, 2001 at 04:44:02AM -0700
References:  <20010420024700.E1790@fw.wintelcom.net> <20010420044402.L1790@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 20, 2001, Alfred Perlstein wrote:
> * Alfred Perlstein <bright@wintelcom.net> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010420051901.A66232>