netdev
[Top] [All Lists]

Re: many outgoing tcp sockets are slower than a few

To: bert hubert <ahu@xxxxxxx>, Christian Schmid <webmaster@xxxxxxxxxxxxxx>, Nivedita Singhvi <niv@xxxxxxxxxx>, netdev@xxxxxxxxxxx
Subject: Re: many outgoing tcp sockets are slower than a few
From: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx>
Date: Mon, 21 Feb 2005 13:36:53 +0100
In-reply-to: <20050221122540.GA13973@xxxxxxxxxxxxxxx>
References: <421925DB.2060602@xxxxxxxxxxxxxx> <42192AAF.8020609@xxxxxxxxxx> <42192CD5.5090401@xxxxxxxxxxxxxx> <20050221090121.GA7478@xxxxxxxxxxxxxxx> <4219B99E.1000603@xxxxxxxxxxxxxx> <20050221120223.GA30348@xxxxxxxxxxxxxxxxx> <20050221122540.GA13973@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Mon, Feb 21, 2005 at 01:25:41PM +0100, bert hubert wrote:

> > O_NONBLOCK send() is really nonblocking, but O_NONBLOCK sendfile()
> 
> It is? So it returns EAGAIN if the data to be sent is not in the
> page cache?

No, it just blocks.  It only returns EAGAIN if the data is in the
page cache but the socket TX queue doesn't have enough space.  (At
least, when I last tried it.)


--L

<Prev in Thread] Current Thread [Next in Thread>