* Socket options
@ 2001-08-17 2:01 Kalpesh Shah
2001-08-17 2:11 ` Philippe Troin
2001-08-17 2:40 ` David Schwartz
0 siblings, 2 replies; 4+ messages in thread
From: Kalpesh Shah @ 2001-08-17 2:01 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Socket options
2001-08-17 2:01 Socket options Kalpesh Shah
@ 2001-08-17 2:11 ` Philippe Troin
2001-08-17 2:15 ` Kalpesh Shah
2001-08-17 2:40 ` David Schwartz
1 sibling, 1 reply; 4+ messages in thread
From: Philippe Troin @ 2001-08-17 2:11 UTC (permalink / raw)
To: Kalpesh Shah; +Cc: linux-kernel
Kalpesh Shah <kalpesh@cs.utexas.edu> writes:
> 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 ????
To remain BSD-compatible.
There was a thread about this on lkml one week ago. Check the
archives.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Socket options
2001-08-17 2:11 ` Philippe Troin
@ 2001-08-17 2:15 ` Kalpesh Shah
0 siblings, 0 replies; 4+ messages in thread
From: Kalpesh Shah @ 2001-08-17 2:15 UTC (permalink / raw)
To: linux-kernel
I am running a linux 2.4.6 kernel...any suggestions for that??
kalpesh
On 16 Aug 2001, Philippe Troin wrote:
> Kalpesh Shah <kalpesh@cs.utexas.edu> writes:
>
> > 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 ????
>
> To remain BSD-compatible.
>
> There was a thread about this on lkml one week ago. Check the
> archives.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Socket options
2001-08-17 2:01 Socket options Kalpesh Shah
2001-08-17 2:11 ` Philippe Troin
@ 2001-08-17 2:40 ` David Schwartz
1 sibling, 0 replies; 4+ messages in thread
From: David Schwartz @ 2001-08-17 2:40 UTC (permalink / raw)
To: Kalpesh Shah, linux-kernel
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-08-17 2:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-17 2:01 Socket options Kalpesh Shah
2001-08-17 2:11 ` Philippe Troin
2001-08-17 2:15 ` Kalpesh Shah
2001-08-17 2:40 ` David Schwartz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®