Re: TCP memory pressure question

From: David Schwartz (davids@webmaster.com)
Date: Fri Nov 22 2002 - 15:28:54 EST


On 22 Nov 2002 12:06:29 +0000, Gianni Tedesco wrote:

>On Thu, 2002-11-21 at 21:34, David Schwartz wrote:

>> When a Linux machine has reached the tcp_mem limit, what will happen to
>>'write's on non-blocking sockets? Will they block until more TCP memory is
>>available? Will they return an error code? ENOMEM?

>from write(2) man page.

>EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and the write
>would block.

        So this would be a case where 'poll' or 'select' would return a write hit
for a socket but 'write' would return -1 and set errno to EAGAIN.

        DS

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



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:41 EST