Re: SO_RCVBUF

Andi Kleen (ak@muc.de)
24 Mar 1999 16:31:55 +0100


pete@oz.net (Pete Schwamb) writes:

> I am running a 2.2.3 kernel and am seeing the following, which I believe to
> be a disparity, or at least deserves an explanation.
>
> First, I've increased /proc/sys/net/core/rmem_max to 1048560, for my udp
> application which receives a large amount of packets.
>
> I use setsockopt(SO_RCVBUF) with an argument of 524280 to increase the
> amount of backlog my application can handle while it is off doing other
> things.
>
> getsockopt(SO_RCVBUF) returns 262140. Shouldn't it return 524280?

I cannot reproduce it here. What Linux does is to return _twice_ the amount
of rmem/wmem you set (this is because of the internal heuristic used
to account for skbuff headers)

-Andi

-- 
This is like TV. I don't like TV.

- 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/