Re: [BUG] socket buffer size different then set

From: Andi Kleen (ak@suse.de)
Date: Sat Apr 22 2000 - 15:18:25 EDT

  • Next message: Ricky Beam: "Re: [RFC] Flat /lib/modules/`uname -r`"

    On Sat, Apr 22, 2000 at 08:28:56PM +0200, Kurt Roeckx wrote:
    > On Sat, Apr 22, 2000 at 10:18:19AM +0200, Andi Kleen wrote:
    > >
    > > Linux reserves half of the socket buffer for metadata (skbuff headers etc.)
    > > BSD doesn't do that. Most programs using SO_SNDBUF/SO_RCVBUF didn't expect
    > > this, because traditional BSD does not do metadata accounting, and on Linux
    > > they ended up with too small effective buffers. To fix this Linux always
    > > doubles the buffer internally to stay compatible.
    >
    > If you're "reserving" half, then why don't you report half back? Now I
    > think I have a buffer that is twice the size I have.

    Reporting half back is not needed for compatibility, so it is better not
    to lie here.

    -Andi

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



    This archive was generated by hypermail 2b29 : Sat Apr 22 2000 - 15:22:28 EDT