On Fri, Apr 20, 2001, Alfred Perlstein wrote:
> * Alfred Perlstein <[EMAIL PROTECTED]> [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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message