lkml.org 
[lkml]   [2001]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Socket options
Date

> I would like to be CC'ed any answers/comments to my question.
>
> are /proc/sys/net/ipv4/tcp_rmem and /proc/sys/net/ipv4/tcp_wmem the socket
> Buffer (receive and send respectively) Sizes in the linux kernel.
>
> If yes then how come when I try to set these buffer sizes by using the
> SO_RCVBUFF and SO_SNDBUFF variables it automatically multiplies the values
> by 2 ????
>
> -kalpesh

The kernel is trying to give you what it thinks you want. The general idea
behind setting these buffers is that you want about that many actual bytes
of data from the stream to be buffered. But the memory is used for things
other than stream data. So to try to give it room for, say 10Kb of stream
data, it allocates 20Kb of memory.

DS

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

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.111 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site