Skip to contentSkip to conversation

TCP memory pressure question

DISCUSSION Nivedita Singhvi 2 participants 2 messages Nov 22, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines

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?

If it varies by kernel version, details about different versions would be
extremely helpful. I'm most interested in late 2.4 kernels.

Thanks in advance.

Returns EAGAIN.
Fairly static ~late 2.4.

thanks,
Nivedita

#1 lore raw
Quoted 10 lines · Nivedita Singhvi
Quoted 8 lines

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?

If it varies by kernel version, details about different versions would be extremely helpful. I'm most interested in late 2.4 kernels.

Thanks in advance.

Returns EAGAIN.
Fairly static ~late 2.4.

returns number of bytes sent and sets errno to EAGAIN.

-alex