RE: Re[2]: sendfile to nonblocking socket

2007-04-24 Thread David Schwartz
> DS> Threads plus epoll is another. > 20k threads and maybe more is too much :). Look at http://nginx.net/ > senction "Architecture and scalability" for example. > DS> It really depends upon how much performance you need > all, that hardware can take and hold :) Why would you want 20k threads?

Re: Re[2]: sendfile to nonblocking socket

2007-04-24 Thread Eric Dumazet
On Tue, 24 Apr 2007 14:33:48 +0400 Alex Vorona <[EMAIL PROTECTED]> wrote: > Hello David, > > Tuesday, April 24, 2007, 1:19:49 PM, you wrote: > > >> sendfile function is not just a more efficient version of a read > >> followed by a write. It reads from one fd and write to another at tha > >> s

Re[2]: sendfile to nonblocking socket

2007-04-24 Thread Alex Vorona
Hello David, Tuesday, April 24, 2007, 1:19:49 PM, you wrote: >> sendfile function is not just a more efficient version of a read >> followed by a write. It reads from one fd and write to another at tha >> same time. Please try to read 2G, and then write 2G - and how much >> memory you will be