Re: Thread implementations...

Marc Slemko (marcs@znep.com)
Sun, 28 Jun 1998 08:31:37 -0700 (PDT)


On Sun, 28 Jun 1998, MOLNAR Ingo wrote:

>
> On 28 Jun 1998, Michael O'Reilly wrote:
>
> > Please reconsider this? There are some things that do a LOT of
> > network-to-network copies (i.e. proxy servers), [...]
> [...]
>
> nope, this is not how squid works. It wants a local copy of fetched
> documents as well. So squid wants to use sendfile() this way:
>
> sendfile(outsidesocket,localfile);
> sendfile(localfile,clientsocket);

In addition to what other people have said about what squid does, remember
that, in general, you normally don't want your proxy to buffer the entire
file locally before it starts sending it to the client. That is horrible
for large files over slow links. So in this case you really do either
need a tee in the kernel or to do it in chunks in userspace; you can still
use something that does copy avoidence, but it won't be as efficient as
just one big syscall.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu