Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!umcp-cs!chris
From: chris@umcp-cs.UUCP (Chris Torek)
Newsgroups: net.unix-wizards
Subject: Re: Help: socket buffer size
Message-ID: <815@umcp-cs.UUCP>
Date: Thu, 11-Jul-85 20:16:06 EDT
Article-I.D.: umcp-cs.815
Posted: Thu Jul 11 20:16:06 1985
Date-Received: Sat, 13-Jul-85 12:06:37 EDT
References: <400@cheviot.uucp>
Organization: U of Maryland, Computer Science Dept., College Park, MD
Lines: 20

> I am going to increase the size of socket buffers on 4.2BSD.
> Before doing it, I would like to ask advice of wizards in netlands:
>    i) what is the limit of the socket buffer size?
>   ii) if I increase the size, does it affect the kernel operation?

There isn't really *a* "socket buffer size".  There are a bunch of
places that have various "recvspace" and "sendspace" variables
(look for calls to soreserve()).  These can be increased (and in
fact many of them have been increased in 4.3) without affecting
much other than the number of mbufs in use.  I have heard somewhere
that increasing tcp_sendspace and tcp_recvspace above about 12K
causes a crash, but I haven't seen it happen (then again we haven't
been running "plain" 4.2 for a long time).  You might have problems
if they are >16K, since things like windows are kept in shorts and
signs of differences determine whether one number is "greater" or
"less" than another... but 4K is lots anyway.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland