[lkml]   [1998]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Thread implementations...
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

 \ /
  Last update: 2005-03-22 13:43    [W:0.051 / U:35.644 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site