Re: UDP bugs

David S. Miller (davem@dm.cobaltmicro.com)
Mon, 14 Dec 1998 09:58:48 -0800


Date: Mon, 14 Dec 1998 14:23:03 +0000
From: Jamie Lokier <lkd@tantalophile.demon.co.uk>

On Mon, Dec 14, 1998 at 12:53:33PM +1100, Richard Gooch wrote:
> and now I can send and receive packets with payload size of 65507
> bytes with Linux 2.1.126+.

I would have expected SO_RCVBUF to adjust the application-visible buffer
size for a UDP socket, the TCP window size for a TCP socket, and the raw
buffer size for a raw socket.

There have been several discussions about increasing the default send
and receive buffer high water marks for several other reasons such as:

1) To reflect the reality that the common amount of memory in
a Linux machine has increased.

2) Because it makes TCP SACK more effective over large delay paths,
the environment it was designed for in the first place.

But we still need to make this decision with caution, because it
determines how much memory an application can tie up with each
and every socket it opens. This is denial of service implications
which is why the setting is where it is right now.

Later,
David S. Miller
davem@dm.cobaltmicro.com

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