Re: kHTTPd: Good or Bad

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 19 Jun 1999 12:27:48 +0100 (BST)


> Cache
> -----
> The point was made by an Apache developer that kHTTPd would do a better
> job if it was just caching requests and that userspace "commands" kHTTPd
> to send a certain file.

This is the model I like

> If this is true, Alan Cox is right and kHTTPd shouldn't be in the kernel,
> but the problem with the kernel should be fixed.
>
> I don't think this is true though:
> 1) There already is a cache in the kernel, the buffercache. Caching things
> twice is insane

So don't cache the data twice, use the page cache. The page cache wants to
be you friend. I'd agree caching twice is stupid.

Basically instead of khttpd getting requests khttpd sits waiting to be told
"here is a socket, here is a file, do your stuff then kick me."

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/