Re: Tuning linux-2.1.107

From: Alan Cox ([email protected])
Date: Thu Jul 02 1998 - 08:41:23 EDT


> Now I want to tune the send and receive sicket buffer size via sysctl.
> I searched in the source code for the default settings for SO_SNDBUF and
> SO_RCVBUF, but I could not find it. I only know, the buffer sizes are set
> to 65535 Bytes. I know I can change it in my application via setsockbuf, =
> but
> I want to do it in the kernel.

/proc/sys/net/core/rmem_default
/proc/sys/net/core/wmem_default

(and ditto for _max for the max setsockopt can select)

> I have set the MAX_WINDOW in the tcp.h file to 262144 Bytes,
> but it has no effect to throughput and the send / receive bufer size.

The tcp window is actually bounded by the memory limit on the socket
so until you use above 64K buffers your window wont rise.

> Socket Socket Message Elapsed =20
> Size Size Size Time Throughput =20
> bytes bytes bytes secs. 10^3bits/sec =20
>
> 262144 65535 65535 30.59 1304.39 =20

 ^^^^^^^ if you look at the Linux one that was not changing as it was
outside the rmem/wmem_max ranges.

Alan



This archive was generated by hypermail 2b29 : Mon Feb 14 2000 - 16:14:45 EST